Skip to content

Commit 65c8127

Browse files
committed
Atualiza configuração e segurança de credenciais
- Reorganiza `ConsoleApp1.csproj` com novas referências e arquivos. - Adiciona `XmlConfig\ConfigHelper.cs` e `XmlConfig\UserConfig.xml` para gerenciar credenciais. - Substitui credenciais codificadas em `RefreshSPOLists.cs`, `RefreshSQLLists.cs` e `SQLInteraction.cs` por leitura do novo arquivo de configuração. - Melhora a segurança ao evitar a exposição de credenciais sensíveis.
1 parent 041ca49 commit 65c8127

6 files changed

Lines changed: 179 additions & 134 deletions

File tree

Lines changed: 105 additions & 100 deletions
Original file line numberDiff line numberDiff line change
@@ -1,103 +1,108 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3-
<!--Project was exported from assembly: C:\Users\KEVIN\Desktop\Visual Studio\SPtoSP\ConsoleApp1.exe-->
4-
<PropertyGroup>
5-
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6-
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7-
<ProjectGuid>{2F127D05-3822-4C73-840C-0BF0D7EBBF8C}</ProjectGuid>
8-
<OutputType>Exe</OutputType>
9-
<AssemblyName>ConsoleApp1</AssemblyName>
10-
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
11-
<ApplicationVersion>1.0.0.0</ApplicationVersion>
12-
<FileAlignment>512</FileAlignment>
13-
<RootNamespace>Bring</RootNamespace>
14-
</PropertyGroup>
15-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
16-
<PlatformTarget>AnyCPU</PlatformTarget>
17-
<DebugSymbols>true</DebugSymbols>
18-
<DebugType>full</DebugType>
19-
<Optimize>false</Optimize>
20-
<OutputPath>bin\Debug\</OutputPath>
21-
<DefineConstants>DEBUG;TRACE</DefineConstants>
22-
<ErrorReport>prompt</ErrorReport>
23-
<WarningLevel>4</WarningLevel>
24-
</PropertyGroup>
25-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
26-
<PlatformTarget>AnyCPU</PlatformTarget>
27-
<DebugType>pdbonly</DebugType>
28-
<Optimize>true</Optimize>
29-
<OutputPath>bin\Release\</OutputPath>
30-
<DefineConstants>TRACE</DefineConstants>
31-
<ErrorReport>prompt</ErrorReport>
32-
<WarningLevel>4</WarningLevel>
33-
</PropertyGroup>
34-
<ItemGroup>
35-
<Reference Include="Microsoft.Office.Client.Policy, Version=16.1.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c, processorArchitecture=MSIL">
36-
<HintPath>packages\Microsoft.SharePointOnline.CSOM.16.1.19814.12000\lib\net45\Microsoft.Office.Client.Policy.dll</HintPath>
37-
</Reference>
38-
<Reference Include="Microsoft.Office.Client.TranslationServices, Version=16.1.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c, processorArchitecture=MSIL">
39-
<HintPath>packages\Microsoft.SharePointOnline.CSOM.16.1.19814.12000\lib\net45\Microsoft.Office.Client.TranslationServices.dll</HintPath>
40-
</Reference>
41-
<Reference Include="Microsoft.Office.SharePoint.Tools, Version=16.1.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c, processorArchitecture=MSIL">
42-
<HintPath>packages\Microsoft.SharePointOnline.CSOM.16.1.19814.12000\lib\net45\Microsoft.Office.SharePoint.Tools.dll</HintPath>
43-
</Reference>
44-
<Reference Include="Microsoft.Online.SharePoint.Client.Tenant, Version=16.1.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c, processorArchitecture=MSIL">
45-
<HintPath>packages\Microsoft.SharePointOnline.CSOM.16.1.19814.12000\lib\net45\Microsoft.Online.SharePoint.Client.Tenant.dll</HintPath>
46-
</Reference>
47-
<Reference Include="Microsoft.ProjectServer.Client, Version=16.1.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c, processorArchitecture=MSIL">
48-
<HintPath>packages\Microsoft.SharePointOnline.CSOM.16.1.19814.12000\lib\net45\Microsoft.ProjectServer.Client.dll</HintPath>
49-
</Reference>
50-
<Reference Include="Microsoft.SharePoint.Client, Version=16.1.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c, processorArchitecture=MSIL">
51-
<HintPath>packages\Microsoft.SharePointOnline.CSOM.16.1.19814.12000\lib\net45\Microsoft.SharePoint.Client.dll</HintPath>
52-
</Reference>
53-
<Reference Include="Microsoft.SharePoint.Client.DocumentManagement, Version=16.1.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c, processorArchitecture=MSIL">
54-
<HintPath>packages\Microsoft.SharePointOnline.CSOM.16.1.19814.12000\lib\net45\Microsoft.SharePoint.Client.DocumentManagement.dll</HintPath>
55-
</Reference>
56-
<Reference Include="Microsoft.SharePoint.Client.Publishing, Version=16.1.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c, processorArchitecture=MSIL">
57-
<HintPath>packages\Microsoft.SharePointOnline.CSOM.16.1.19814.12000\lib\net45\Microsoft.SharePoint.Client.Publishing.dll</HintPath>
58-
</Reference>
59-
<Reference Include="Microsoft.SharePoint.Client.Runtime, Version=16.1.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c, processorArchitecture=MSIL">
60-
<HintPath>packages\Microsoft.SharePointOnline.CSOM.16.1.19814.12000\lib\net45\Microsoft.SharePoint.Client.Runtime.dll</HintPath>
61-
</Reference>
62-
<Reference Include="Microsoft.SharePoint.Client.Runtime.Windows, Version=16.1.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c, processorArchitecture=MSIL">
63-
<HintPath>packages\Microsoft.SharePointOnline.CSOM.16.1.19814.12000\lib\net45\Microsoft.SharePoint.Client.Runtime.Windows.dll</HintPath>
64-
</Reference>
65-
<Reference Include="Microsoft.SharePoint.Client.Search, Version=16.1.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c, processorArchitecture=MSIL">
66-
<HintPath>packages\Microsoft.SharePointOnline.CSOM.16.1.19814.12000\lib\net45\Microsoft.SharePoint.Client.Search.dll</HintPath>
67-
</Reference>
68-
<Reference Include="Microsoft.SharePoint.Client.Search.Applications, Version=16.1.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c, processorArchitecture=MSIL">
69-
<HintPath>packages\Microsoft.SharePointOnline.CSOM.16.1.19814.12000\lib\net45\Microsoft.SharePoint.Client.Search.Applications.dll</HintPath>
70-
</Reference>
71-
<Reference Include="Microsoft.SharePoint.Client.Taxonomy, Version=16.1.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c, processorArchitecture=MSIL">
72-
<HintPath>packages\Microsoft.SharePointOnline.CSOM.16.1.19814.12000\lib\net45\Microsoft.SharePoint.Client.Taxonomy.dll</HintPath>
73-
</Reference>
74-
<Reference Include="Microsoft.SharePoint.Client.UserProfiles, Version=16.1.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c, processorArchitecture=MSIL">
75-
<HintPath>packages\Microsoft.SharePointOnline.CSOM.16.1.19814.12000\lib\net45\Microsoft.SharePoint.Client.UserProfiles.dll</HintPath>
76-
</Reference>
77-
<Reference Include="Microsoft.SharePoint.Client.WorkflowServices, Version=16.1.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c, processorArchitecture=MSIL">
78-
<HintPath>packages\Microsoft.SharePointOnline.CSOM.16.1.19814.12000\lib\net45\Microsoft.SharePoint.Client.WorkflowServices.dll</HintPath>
79-
</Reference>
80-
<Reference Include="System" />
81-
<Reference Include="System.Configuration" />
82-
<Reference Include="System.Core" />
83-
<Reference Include="System.Data" />
84-
</ItemGroup>
85-
<ItemGroup>
86-
<Compile Include="SPODataQuality\RefreshSPOLists.cs" />
87-
<Compile Include="Sqlserver\RefreshSQLLists.cs" />
88-
<Compile Include="Sqlserver\SQLInteraction.cs" />
89-
<Compile Include="Sharepoint\ActivitiesDQ.cs" />
90-
<Compile Include="Sharepoint\GetallLists.cs" />
91-
<Compile Include="Sharepoint\InvoiceRequestDQ.cs" />
92-
<Compile Include="Sharepoint\Constants.cs" />
93-
<Compile Include="Sharepoint\Context.cs" />
94-
<Compile Include="Sharepoint\SPOList.cs" />
95-
<Compile Include="Sharepoint\SPOUser.cs" />
96-
<Compile Include="Sharepoint\TimesheetDQ.cs" />
97-
<Compile Include="AssemblyInfo.cs" />
98-
</ItemGroup>
99-
<ItemGroup>
100-
<None Include="packages.config" />
101-
</ItemGroup>
102-
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
3+
<!--Project was exported from assembly: C:\Users\KEVIN\Desktop\Visual Studio\SPtoSP\ConsoleApp1.exe-->
4+
<PropertyGroup>
5+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7+
<ProjectGuid>{2F127D05-3822-4C73-840C-0BF0D7EBBF8C}</ProjectGuid>
8+
<OutputType>Exe</OutputType>
9+
<AssemblyName>ConsoleApp1</AssemblyName>
10+
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
11+
<ApplicationVersion>1.0.0.0</ApplicationVersion>
12+
<FileAlignment>512</FileAlignment>
13+
<RootNamespace>Bring</RootNamespace>
14+
</PropertyGroup>
15+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
16+
<PlatformTarget>AnyCPU</PlatformTarget>
17+
<DebugSymbols>true</DebugSymbols>
18+
<DebugType>full</DebugType>
19+
<Optimize>false</Optimize>
20+
<OutputPath>bin\Debug\</OutputPath>
21+
<DefineConstants>DEBUG;TRACE</DefineConstants>
22+
<ErrorReport>prompt</ErrorReport>
23+
<WarningLevel>4</WarningLevel>
24+
</PropertyGroup>
25+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
26+
<PlatformTarget>AnyCPU</PlatformTarget>
27+
<DebugType>pdbonly</DebugType>
28+
<Optimize>true</Optimize>
29+
<OutputPath>bin\Release\</OutputPath>
30+
<DefineConstants>TRACE</DefineConstants>
31+
<ErrorReport>prompt</ErrorReport>
32+
<WarningLevel>4</WarningLevel>
33+
</PropertyGroup>
34+
<ItemGroup>
35+
<Reference Include="Microsoft.Office.Client.Policy, Version=16.1.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c, processorArchitecture=MSIL">
36+
<HintPath>packages\Microsoft.SharePointOnline.CSOM.16.1.19814.12000\lib\net45\Microsoft.Office.Client.Policy.dll</HintPath>
37+
</Reference>
38+
<Reference Include="Microsoft.Office.Client.TranslationServices, Version=16.1.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c, processorArchitecture=MSIL">
39+
<HintPath>packages\Microsoft.SharePointOnline.CSOM.16.1.19814.12000\lib\net45\Microsoft.Office.Client.TranslationServices.dll</HintPath>
40+
</Reference>
41+
<Reference Include="Microsoft.Office.SharePoint.Tools, Version=16.1.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c, processorArchitecture=MSIL">
42+
<HintPath>packages\Microsoft.SharePointOnline.CSOM.16.1.19814.12000\lib\net45\Microsoft.Office.SharePoint.Tools.dll</HintPath>
43+
</Reference>
44+
<Reference Include="Microsoft.Online.SharePoint.Client.Tenant, Version=16.1.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c, processorArchitecture=MSIL">
45+
<HintPath>packages\Microsoft.SharePointOnline.CSOM.16.1.19814.12000\lib\net45\Microsoft.Online.SharePoint.Client.Tenant.dll</HintPath>
46+
</Reference>
47+
<Reference Include="Microsoft.ProjectServer.Client, Version=16.1.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c, processorArchitecture=MSIL">
48+
<HintPath>packages\Microsoft.SharePointOnline.CSOM.16.1.19814.12000\lib\net45\Microsoft.ProjectServer.Client.dll</HintPath>
49+
</Reference>
50+
<Reference Include="Microsoft.SharePoint.Client, Version=16.1.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c, processorArchitecture=MSIL">
51+
<HintPath>packages\Microsoft.SharePointOnline.CSOM.16.1.19814.12000\lib\net45\Microsoft.SharePoint.Client.dll</HintPath>
52+
</Reference>
53+
<Reference Include="Microsoft.SharePoint.Client.DocumentManagement, Version=16.1.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c, processorArchitecture=MSIL">
54+
<HintPath>packages\Microsoft.SharePointOnline.CSOM.16.1.19814.12000\lib\net45\Microsoft.SharePoint.Client.DocumentManagement.dll</HintPath>
55+
</Reference>
56+
<Reference Include="Microsoft.SharePoint.Client.Publishing, Version=16.1.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c, processorArchitecture=MSIL">
57+
<HintPath>packages\Microsoft.SharePointOnline.CSOM.16.1.19814.12000\lib\net45\Microsoft.SharePoint.Client.Publishing.dll</HintPath>
58+
</Reference>
59+
<Reference Include="Microsoft.SharePoint.Client.Runtime, Version=16.1.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c, processorArchitecture=MSIL">
60+
<HintPath>packages\Microsoft.SharePointOnline.CSOM.16.1.19814.12000\lib\net45\Microsoft.SharePoint.Client.Runtime.dll</HintPath>
61+
</Reference>
62+
<Reference Include="Microsoft.SharePoint.Client.Runtime.Windows, Version=16.1.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c, processorArchitecture=MSIL">
63+
<HintPath>packages\Microsoft.SharePointOnline.CSOM.16.1.19814.12000\lib\net45\Microsoft.SharePoint.Client.Runtime.Windows.dll</HintPath>
64+
</Reference>
65+
<Reference Include="Microsoft.SharePoint.Client.Search, Version=16.1.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c, processorArchitecture=MSIL">
66+
<HintPath>packages\Microsoft.SharePointOnline.CSOM.16.1.19814.12000\lib\net45\Microsoft.SharePoint.Client.Search.dll</HintPath>
67+
</Reference>
68+
<Reference Include="Microsoft.SharePoint.Client.Search.Applications, Version=16.1.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c, processorArchitecture=MSIL">
69+
<HintPath>packages\Microsoft.SharePointOnline.CSOM.16.1.19814.12000\lib\net45\Microsoft.SharePoint.Client.Search.Applications.dll</HintPath>
70+
</Reference>
71+
<Reference Include="Microsoft.SharePoint.Client.Taxonomy, Version=16.1.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c, processorArchitecture=MSIL">
72+
<HintPath>packages\Microsoft.SharePointOnline.CSOM.16.1.19814.12000\lib\net45\Microsoft.SharePoint.Client.Taxonomy.dll</HintPath>
73+
</Reference>
74+
<Reference Include="Microsoft.SharePoint.Client.UserProfiles, Version=16.1.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c, processorArchitecture=MSIL">
75+
<HintPath>packages\Microsoft.SharePointOnline.CSOM.16.1.19814.12000\lib\net45\Microsoft.SharePoint.Client.UserProfiles.dll</HintPath>
76+
</Reference>
77+
<Reference Include="Microsoft.SharePoint.Client.WorkflowServices, Version=16.1.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c, processorArchitecture=MSIL">
78+
<HintPath>packages\Microsoft.SharePointOnline.CSOM.16.1.19814.12000\lib\net45\Microsoft.SharePoint.Client.WorkflowServices.dll</HintPath>
79+
</Reference>
80+
<Reference Include="System" />
81+
<Reference Include="System.Configuration" />
82+
<Reference Include="System.Core" />
83+
<Reference Include="System.Data" />
84+
<Reference Include="System.Xml" />
85+
</ItemGroup>
86+
<ItemGroup>
87+
<Compile Include="SPODataQuality\RefreshSPOLists.cs" />
88+
<Compile Include="Sqlserver\RefreshSQLLists.cs" />
89+
<Compile Include="Sqlserver\SQLInteraction.cs" />
90+
<Compile Include="Sharepoint\ActivitiesDQ.cs" />
91+
<Compile Include="Sharepoint\GetallLists.cs" />
92+
<Compile Include="Sharepoint\InvoiceRequestDQ.cs" />
93+
<Compile Include="Sharepoint\Constants.cs" />
94+
<Compile Include="Sharepoint\Context.cs" />
95+
<Compile Include="Sharepoint\SPOList.cs" />
96+
<Compile Include="Sharepoint\SPOUser.cs" />
97+
<Compile Include="Sharepoint\TimesheetDQ.cs" />
98+
<Compile Include="XmlConfig\ConfigHelper.cs" />
99+
<Compile Include="AssemblyInfo.cs" />
100+
</ItemGroup>
101+
<ItemGroup>
102+
<None Include="packages.config" />
103+
<None Include="XmlConfig\UserConfig.xml">
104+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
105+
</None>
106+
</ItemGroup>
107+
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
103108
</Project>

0 commit comments

Comments
 (0)