Skip to content

Commit 2b459e2

Browse files
committed
Updated samples to build and link to CDSWebApiService project
1 parent 34be303 commit 2b459e2

File tree

14 files changed

+231
-11
lines changed

14 files changed

+231
-11
lines changed

cds/webapi/C#/App.config

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<configuration>
3+
<startup>
4+
<supportedRuntime version="v4.0"
5+
sku=".NETFramework,Version=v4.7.2" />
6+
</startup>
7+
<connectionStrings>
8+
9+
<!--
10+
11+
** !IMPORTANT! **
12+
13+
Be mindful that the connection information you enter here will be available to anyone with access to this file.
14+
15+
Do not push changes to this file to a cloned GitHub repository.
16+
17+
-->
18+
19+
20+
21+
<add name="Connect"
22+
connectionString="Url=https://{myorg}.api.crm.dynamics.com;
23+
Authority=null;
24+
ClientId=51f81489-12ee-4a9e-aaae-a2591f45987d;
25+
RedirectUrl=app://58145B91-0C36-4500-8554-080854F2AC97;
26+
UserPrincipalName={user}@{myorg}.onmicrosoft.com;
27+
Password={password};
28+
CallerObjectId=null;
29+
Version=9.1;
30+
MaxRetries=3;
31+
TimeoutInSeconds=180;
32+
"/>
33+
34+
</connectionStrings>
35+
</configuration>

cds/webapi/C#/AsyncParallelOperations/AsyncParallelOperations.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
<ItemGroup>
5757
<None Include="..\App.config">
5858
<Link>App.config</Link>
59+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
5960
</None>
6061
<None Include="packages.config" />
6162
<None Include="README.md" />
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 16
4+
VisualStudioVersion = 16.0.30225.117
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AsyncParallelOperations", "AsyncParallelOperations.csproj", "{CB194775-BAB4-49F1-8CF5-EEAEBB3C2FA9}"
7+
EndProject
8+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CDSWebApiService", "..\CDSWebApiService\CDSWebApiService.csproj", "{E8C225D3-F15A-417C-AA4A-9114C0F2BDF4}"
9+
EndProject
10+
Global
11+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
12+
Debug|Any CPU = Debug|Any CPU
13+
Release|Any CPU = Release|Any CPU
14+
EndGlobalSection
15+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
16+
{CB194775-BAB4-49F1-8CF5-EEAEBB3C2FA9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
17+
{CB194775-BAB4-49F1-8CF5-EEAEBB3C2FA9}.Debug|Any CPU.Build.0 = Debug|Any CPU
18+
{CB194775-BAB4-49F1-8CF5-EEAEBB3C2FA9}.Release|Any CPU.ActiveCfg = Release|Any CPU
19+
{CB194775-BAB4-49F1-8CF5-EEAEBB3C2FA9}.Release|Any CPU.Build.0 = Release|Any CPU
20+
{E8C225D3-F15A-417C-AA4A-9114C0F2BDF4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
21+
{E8C225D3-F15A-417C-AA4A-9114C0F2BDF4}.Debug|Any CPU.Build.0 = Debug|Any CPU
22+
{E8C225D3-F15A-417C-AA4A-9114C0F2BDF4}.Release|Any CPU.ActiveCfg = Release|Any CPU
23+
{E8C225D3-F15A-417C-AA4A-9114C0F2BDF4}.Release|Any CPU.Build.0 = Release|Any CPU
24+
EndGlobalSection
25+
GlobalSection(SolutionProperties) = preSolution
26+
HideSolutionNode = FALSE
27+
EndGlobalSection
28+
GlobalSection(ExtensibilityGlobals) = postSolution
29+
SolutionGuid = {D6CFEF98-E971-4C15-B4C7-088385D9E7A1}
30+
EndGlobalSection
31+
EndGlobal

cds/webapi/C#/BasicOperations/BasicOperations.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
<ItemGroup>
5454
<None Include="..\App.config">
5555
<Link>App.config</Link>
56+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
5657
</None>
5758
<None Include="packages.config" />
5859
<None Include="README.md" />
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 16
4+
VisualStudioVersion = 16.0.30225.117
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BasicOperations", "BasicOperations.csproj", "{DEF5DD26-C911-40A7-A249-7728D360FB1A}"
7+
EndProject
8+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CDSWebApiService", "..\CDSWebApiService\CDSWebApiService.csproj", "{E8C225D3-F15A-417C-AA4A-9114C0F2BDF4}"
9+
EndProject
10+
Global
11+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
12+
Debug|Any CPU = Debug|Any CPU
13+
Release|Any CPU = Release|Any CPU
14+
EndGlobalSection
15+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
16+
{DEF5DD26-C911-40A7-A249-7728D360FB1A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
17+
{DEF5DD26-C911-40A7-A249-7728D360FB1A}.Debug|Any CPU.Build.0 = Debug|Any CPU
18+
{DEF5DD26-C911-40A7-A249-7728D360FB1A}.Release|Any CPU.ActiveCfg = Release|Any CPU
19+
{DEF5DD26-C911-40A7-A249-7728D360FB1A}.Release|Any CPU.Build.0 = Release|Any CPU
20+
{E8C225D3-F15A-417C-AA4A-9114C0F2BDF4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
21+
{E8C225D3-F15A-417C-AA4A-9114C0F2BDF4}.Debug|Any CPU.Build.0 = Debug|Any CPU
22+
{E8C225D3-F15A-417C-AA4A-9114C0F2BDF4}.Release|Any CPU.ActiveCfg = Release|Any CPU
23+
{E8C225D3-F15A-417C-AA4A-9114C0F2BDF4}.Release|Any CPU.Build.0 = Release|Any CPU
24+
EndGlobalSection
25+
GlobalSection(SolutionProperties) = preSolution
26+
HideSolutionNode = FALSE
27+
EndGlobalSection
28+
GlobalSection(ExtensibilityGlobals) = postSolution
29+
SolutionGuid = {C9F35D5A-9543-476B-85F1-AAF0D1ED3864}
30+
EndGlobalSection
31+
EndGlobal

cds/webapi/C#/CDSWebApiService/CDSWebApiService.csproj

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,49 +31,49 @@
3131
<WarningLevel>4</WarningLevel>
3232
</PropertyGroup>
3333
<ItemGroup>
34-
<Reference Include="Microsoft.IdentityModel.Clients.ActiveDirectory, Version=5.2.7.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
35-
<HintPath>..\packages\Microsoft.IdentityModel.Clients.ActiveDirectory.5.2.7\lib\net45\Microsoft.IdentityModel.Clients.ActiveDirectory.dll</HintPath>
34+
<Reference Include="Microsoft.IdentityModel.Clients.ActiveDirectory, Version=5.2.8.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
35+
<HintPath>packages\Microsoft.IdentityModel.Clients.ActiveDirectory.5.2.8\lib\net45\Microsoft.IdentityModel.Clients.ActiveDirectory.dll</HintPath>
3636
</Reference>
3737
<Reference Include="Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
38-
<HintPath>..\packages\Newtonsoft.Json.12.0.3\lib\net45\Newtonsoft.Json.dll</HintPath>
38+
<HintPath>packages\Newtonsoft.Json.12.0.3\lib\net45\Newtonsoft.Json.dll</HintPath>
3939
</Reference>
4040
<Reference Include="System" />
4141
<Reference Include="System.ComponentModel.Composition" />
4242
<Reference Include="System.Core" />
4343
<Reference Include="System.Drawing" />
4444
<Reference Include="System.IdentityModel" />
4545
<Reference Include="System.IO, Version=4.1.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
46-
<HintPath>..\packages\System.IO.4.3.0\lib\net462\System.IO.dll</HintPath>
46+
<HintPath>packages\System.IO.4.3.0\lib\net462\System.IO.dll</HintPath>
4747
<Private>True</Private>
4848
<Private>True</Private>
4949
</Reference>
5050
<Reference Include="System.Net.Http, Version=4.1.1.3, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
51-
<HintPath>..\packages\System.Net.Http.4.3.4\lib\net46\System.Net.Http.dll</HintPath>
51+
<HintPath>packages\System.Net.Http.4.3.4\lib\net46\System.Net.Http.dll</HintPath>
5252
<Private>True</Private>
5353
<Private>True</Private>
5454
</Reference>
5555
<Reference Include="System.Runtime, Version=4.1.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
56-
<HintPath>..\packages\System.Runtime.4.3.0\lib\net462\System.Runtime.dll</HintPath>
56+
<HintPath>packages\System.Runtime.4.3.0\lib\net462\System.Runtime.dll</HintPath>
5757
<Private>True</Private>
5858
<Private>True</Private>
5959
</Reference>
6060
<Reference Include="System.Security.Cryptography.Algorithms, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
61-
<HintPath>..\packages\System.Security.Cryptography.Algorithms.4.3.0\lib\net463\System.Security.Cryptography.Algorithms.dll</HintPath>
61+
<HintPath>packages\System.Security.Cryptography.Algorithms.4.3.0\lib\net463\System.Security.Cryptography.Algorithms.dll</HintPath>
6262
<Private>True</Private>
6363
<Private>True</Private>
6464
</Reference>
6565
<Reference Include="System.Security.Cryptography.Encoding, Version=4.0.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
66-
<HintPath>..\packages\System.Security.Cryptography.Encoding.4.3.0\lib\net46\System.Security.Cryptography.Encoding.dll</HintPath>
66+
<HintPath>packages\System.Security.Cryptography.Encoding.4.3.0\lib\net46\System.Security.Cryptography.Encoding.dll</HintPath>
6767
<Private>True</Private>
6868
<Private>True</Private>
6969
</Reference>
7070
<Reference Include="System.Security.Cryptography.Primitives, Version=4.0.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
71-
<HintPath>..\packages\System.Security.Cryptography.Primitives.4.3.0\lib\net46\System.Security.Cryptography.Primitives.dll</HintPath>
71+
<HintPath>packages\System.Security.Cryptography.Primitives.4.3.0\lib\net46\System.Security.Cryptography.Primitives.dll</HintPath>
7272
<Private>True</Private>
7373
<Private>True</Private>
7474
</Reference>
7575
<Reference Include="System.Security.Cryptography.X509Certificates, Version=4.1.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
76-
<HintPath>..\packages\System.Security.Cryptography.X509Certificates.4.3.0\lib\net461\System.Security.Cryptography.X509Certificates.dll</HintPath>
76+
<HintPath>packages\System.Security.Cryptography.X509Certificates.4.3.0\lib\net461\System.Security.Cryptography.X509Certificates.dll</HintPath>
7777
<Private>True</Private>
7878
<Private>True</Private>
7979
</Reference>
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 16
4+
VisualStudioVersion = 16.0.30225.117
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CDSWebApiService", "CDSWebApiService.csproj", "{E8C225D3-F15A-417C-AA4A-9114C0F2BDF4}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|Any CPU = Debug|Any CPU
11+
Release|Any CPU = Release|Any CPU
12+
EndGlobalSection
13+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14+
{E8C225D3-F15A-417C-AA4A-9114C0F2BDF4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{E8C225D3-F15A-417C-AA4A-9114C0F2BDF4}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{E8C225D3-F15A-417C-AA4A-9114C0F2BDF4}.Release|Any CPU.ActiveCfg = Release|Any CPU
17+
{E8C225D3-F15A-417C-AA4A-9114C0F2BDF4}.Release|Any CPU.Build.0 = Release|Any CPU
18+
EndGlobalSection
19+
GlobalSection(SolutionProperties) = preSolution
20+
HideSolutionNode = FALSE
21+
EndGlobalSection
22+
GlobalSection(ExtensibilityGlobals) = postSolution
23+
SolutionGuid = {AE5631A3-9374-4CF1-AFEB-FB2BD966F141}
24+
EndGlobalSection
25+
EndGlobal

cds/webapi/C#/CDSWebApiService/packages.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
3-
<package id="Microsoft.IdentityModel.Clients.ActiveDirectory" version="5.2.7" targetFramework="net472" />
3+
<package id="Microsoft.IdentityModel.Clients.ActiveDirectory" version="5.2.8" targetFramework="net472" />
44
<package id="Newtonsoft.Json" version="12.0.3" targetFramework="net472" />
55
<package id="System.IO" version="4.3.0" targetFramework="net472" />
66
<package id="System.Net.Http" version="4.3.4" targetFramework="net472" />

cds/webapi/C#/ConditionalOperations/ConditionalOperations.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
<ItemGroup>
5454
<None Include="..\App.config">
5555
<Link>App.config</Link>
56+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
5657
</None>
5758
<None Include="packages.config" />
5859
<None Include="README.md" />
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 16
4+
VisualStudioVersion = 16.0.30225.117
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConditionalOperations", "ConditionalOperations.csproj", "{40D728D9-3698-45CB-A02E-6F8FBAA65826}"
7+
EndProject
8+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CDSWebApiService", "..\CDSWebApiService\CDSWebApiService.csproj", "{E8C225D3-F15A-417C-AA4A-9114C0F2BDF4}"
9+
EndProject
10+
Global
11+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
12+
Debug|Any CPU = Debug|Any CPU
13+
Release|Any CPU = Release|Any CPU
14+
EndGlobalSection
15+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
16+
{40D728D9-3698-45CB-A02E-6F8FBAA65826}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
17+
{40D728D9-3698-45CB-A02E-6F8FBAA65826}.Debug|Any CPU.Build.0 = Debug|Any CPU
18+
{40D728D9-3698-45CB-A02E-6F8FBAA65826}.Release|Any CPU.ActiveCfg = Release|Any CPU
19+
{40D728D9-3698-45CB-A02E-6F8FBAA65826}.Release|Any CPU.Build.0 = Release|Any CPU
20+
{E8C225D3-F15A-417C-AA4A-9114C0F2BDF4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
21+
{E8C225D3-F15A-417C-AA4A-9114C0F2BDF4}.Debug|Any CPU.Build.0 = Debug|Any CPU
22+
{E8C225D3-F15A-417C-AA4A-9114C0F2BDF4}.Release|Any CPU.ActiveCfg = Release|Any CPU
23+
{E8C225D3-F15A-417C-AA4A-9114C0F2BDF4}.Release|Any CPU.Build.0 = Release|Any CPU
24+
EndGlobalSection
25+
GlobalSection(SolutionProperties) = preSolution
26+
HideSolutionNode = FALSE
27+
EndGlobalSection
28+
GlobalSection(ExtensibilityGlobals) = postSolution
29+
SolutionGuid = {FECFB31B-1ED6-4C27-BE53-52E7A7F860C0}
30+
EndGlobalSection
31+
EndGlobal

0 commit comments

Comments
 (0)