Skip to content

Commit feeda32

Browse files
committed
Update WCF Samples
1 parent 5efcdd2 commit feeda32

File tree

676 files changed

+4761
-18202
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

676 files changed

+4761
-18202
lines changed

framework/wcf/Basic/Ajax/ComplexTypeAjaxService/CS/service/service.csproj

+10-20
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,22 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="12.0">
2+
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="15.0">
33
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
44
<PropertyGroup>
55
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
66
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7-
<SchemaVersion>2.0</SchemaVersion>
87
<ProjectGuid>{D067DEE6-D9F3-4169-981E-02732E8ABA72}</ProjectGuid>
98
<ProjectTypeGuids>{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
109
<OutputType>Library</OutputType>
1110
<AppDesignerFolder>Properties</AppDesignerFolder>
12-
<RootNamespace>
13-
</RootNamespace>
1411
<AssemblyName>service</AssemblyName>
15-
<UpgradeBackupLocation>
16-
</UpgradeBackupLocation>
17-
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
18-
<FileUpgradeFlags>
19-
</FileUpgradeFlags>
20-
<OldToolsVersion>4.0</OldToolsVersion>
12+
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>
2113
<UseIISExpress>true</UseIISExpress>
2214
<Use64BitIISExpress />
2315
<IISExpressSSLPort />
2416
<IISExpressAnonymousAuthentication />
2517
<IISExpressWindowsAuthentication />
2618
<IISExpressUseClassicPipelineMode />
2719
<UseGlobalApplicationHostFile />
28-
<TargetFrameworkProfile />
2920
</PropertyGroup>
3021
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
3122
<DebugSymbols>true</DebugSymbols>
@@ -75,18 +66,15 @@
7566
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
7667
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
7768
</PropertyGroup>
78-
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
79-
<Import Project="$(VSToolsPath)\WebApplications\Microsoft.WebApplication.targets" Condition="'$(VSToolsPath)' != ''" />
80-
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" Condition="false" />
8169
<PropertyGroup>
8270
<PostBuildEvent>
8371
mkdir %SystemDrive%\inetpub\wwwroot\servicemodelsamples
8472
mkdir %SystemDrive%\inetpub\wwwroot\servicemodelsamples\bin
8573
copy "$(TargetDir)service.dll" %SystemDrive%\inetpub\wwwroot\servicemodelsamples\bin
86-
copy "$(ProjectDir)service.svc" %SystemDrive%\inetpub\wwwroot\servicemodelsamples
87-
copy "$(ProjectDir)web.config" %SystemDrive%\inetpub\wwwroot\servicemodelsamples
74+
copy "$(MSBuildProjectDirectory)\service.svc" %SystemDrive%\inetpub\wwwroot\servicemodelsamples
75+
copy "$(MSBuildProjectDirectory)\web.config" %SystemDrive%\inetpub\wwwroot\servicemodelsamples
8876
del %SystemDrive%\inetpub\wwwroot\ServiceModelSamples\*ClientPage*
89-
copy "$(ProjectDir)ComplexTypeClientPage.aspx" %SystemDrive%\inetpub\wwwroot\ServiceModelSamples
77+
copy "$(MSBuildProjectDirectory)\ComplexTypeClientPage.aspx" %SystemDrive%\inetpub\wwwroot\ServiceModelSamples
9078
</PostBuildEvent>
9179
</PropertyGroup>
9280
<ProjectExtensions>
@@ -100,11 +88,13 @@
10088
<IISUrl>http://localhost:65189/</IISUrl>
10189
<NTLMAuthentication>False</NTLMAuthentication>
10290
<UseCustomServer>False</UseCustomServer>
103-
<CustomServerUrl>
104-
</CustomServerUrl>
91+
<CustomServerUrl></CustomServerUrl>
10592
<SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile>
10693
</WebProjectProperties>
10794
</FlavorProperties>
10895
</VisualStudio>
10996
</ProjectExtensions>
110-
</Project>
97+
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
98+
<Import Project="$(VSToolsPath)\WebApplications\Microsoft.WebApplication.targets" Condition="'$(VSToolsPath)' != ''" />
99+
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" Condition="false" />
100+
</Project>

framework/wcf/Basic/Ajax/ConfigFreeAjaxService/CS/service/service.csproj

+14-24
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,21 @@
1-
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="12.0">
1+
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="15.0">
22
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
33
<PropertyGroup>
44
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
55
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
6-
<SchemaVersion>2.0</SchemaVersion>
76
<ProjectGuid>{D067DEE6-D9F3-4169-981E-02732E8ABA72}</ProjectGuid>
87
<ProjectTypeGuids>{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
98
<OutputType>Library</OutputType>
109
<AppDesignerFolder>Properties</AppDesignerFolder>
11-
<RootNamespace>
12-
</RootNamespace>
1310
<AssemblyName>service</AssemblyName>
14-
<UpgradeBackupLocation>
15-
</UpgradeBackupLocation>
16-
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
17-
<FileUpgradeFlags>
18-
</FileUpgradeFlags>
19-
<OldToolsVersion>4.0</OldToolsVersion>
11+
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>
2012
<UseIISExpress>true</UseIISExpress>
2113
<Use64BitIISExpress />
2214
<IISExpressSSLPort />
2315
<IISExpressAnonymousAuthentication />
2416
<IISExpressWindowsAuthentication />
2517
<IISExpressUseClassicPipelineMode />
2618
<UseGlobalApplicationHostFile />
27-
<TargetFrameworkProfile />
2819
</PropertyGroup>
2920
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
3021
<DebugSymbols>true</DebugSymbols>
@@ -73,18 +64,15 @@
7364
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
7465
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
7566
</PropertyGroup>
76-
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
77-
<Import Project="$(VSToolsPath)\WebApplications\Microsoft.WebApplication.targets" Condition="'$(VSToolsPath)' != ''" />
78-
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" Condition="false" />
7967
<PropertyGroup>
8068
<PostBuildEvent>
81-
mkdir %SystemDrive%\inetpub\wwwroot\servicemodelsamples
82-
mkdir %SystemDrive%\inetpub\wwwroot\servicemodelsamples\bin
83-
copy "$(TargetDir)service.dll" %SystemDrive%\inetpub\wwwroot\servicemodelsamples\bin
84-
copy "$(ProjectDir)service.svc" %SystemDrive%\inetpub\wwwroot\servicemodelsamples
85-
copy "$(ProjectDir)web.config" %SystemDrive%\inetpub\wwwroot\servicemodelsamples
86-
del %SystemDrive%\inetpub\wwwroot\ServiceModelSamples\*ClientPage*
87-
copy "$(ProjectDir)ConfigFreeClientPage.aspx" %SystemDrive%\inetpub\wwwroot\ServiceModelSamples
69+
mkdir %SystemDrive%\inetpub\wwwroot\servicemodelsamples
70+
mkdir %SystemDrive%\inetpub\wwwroot\servicemodelsamples\bin
71+
copy "$(TargetDir)service.dll" %SystemDrive%\inetpub\wwwroot\servicemodelsamples\bin
72+
copy "$(MSBuildProjectDirectory)\service.svc" %SystemDrive%\inetpub\wwwroot\servicemodelsamples
73+
copy "$(MSBuildProjectDirectory)\web.config" %SystemDrive%\inetpub\wwwroot\servicemodelsamples
74+
del %SystemDrive%\inetpub\wwwroot\ServiceModelSamples\*ClientPage*
75+
copy "$(MSBuildProjectDirectory)\ConfigFreeClientPage.aspx" %SystemDrive%\inetpub\wwwroot\ServiceModelSamples
8876
</PostBuildEvent>
8977
</PropertyGroup>
9078
<ProjectExtensions>
@@ -98,11 +86,13 @@
9886
<IISUrl>http://localhost:65254/</IISUrl>
9987
<NTLMAuthentication>False</NTLMAuthentication>
10088
<UseCustomServer>False</UseCustomServer>
101-
<CustomServerUrl>
102-
</CustomServerUrl>
89+
<CustomServerUrl></CustomServerUrl>
10390
<SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile>
10491
</WebProjectProperties>
10592
</FlavorProperties>
10693
</VisualStudio>
10794
</ProjectExtensions>
108-
</Project>
95+
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
96+
<Import Project="$(VSToolsPath)\WebApplications\Microsoft.WebApplication.targets" Condition="'$(VSToolsPath)' != ''" />
97+
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" Condition="false" />
98+
</Project>

framework/wcf/Basic/Ajax/JSONP/CS/service/Service.csproj

+5-13
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,14 @@
1010
<AppDesignerFolder>Properties</AppDesignerFolder>
1111
<RootNamespace>Microsoft.Samples.Jsonp</RootNamespace>
1212
<AssemblyName>JsonpServiceSample</AssemblyName>
13-
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
14-
<FileUpgradeFlags>
15-
</FileUpgradeFlags>
16-
<UpgradeBackupLocation>
17-
</UpgradeBackupLocation>
18-
<OldToolsVersion>4.0</OldToolsVersion>
13+
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>
1914
<UseIISExpress>false</UseIISExpress>
2015
<Use64BitIISExpress />
2116
<IISExpressSSLPort />
2217
<IISExpressAnonymousAuthentication />
2318
<IISExpressWindowsAuthentication />
2419
<IISExpressUseClassicPipelineMode />
2520
<UseGlobalApplicationHostFile />
26-
<TargetFrameworkProfile />
2721
</PropertyGroup>
2822
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
2923
<DebugSymbols>true</DebugSymbols>
@@ -83,7 +77,7 @@
8377
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
8478
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
8579
</PropertyGroup>
86-
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
80+
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
8781
<Import Project="$(VSToolsPath)\WebApplications\Microsoft.WebApplication.targets" Condition="'$(VSToolsPath)' != ''" />
8882
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" Condition="false" />
8983
<ProjectExtensions>
@@ -94,12 +88,10 @@
9488
<AutoAssignPort>True</AutoAssignPort>
9589
<DevelopmentServerPort>33695</DevelopmentServerPort>
9690
<DevelopmentServerVPath>/</DevelopmentServerVPath>
97-
<IISUrl>
98-
</IISUrl>
91+
<IISUrl></IISUrl>
9992
<NTLMAuthentication>False</NTLMAuthentication>
10093
<UseCustomServer>False</UseCustomServer>
101-
<CustomServerUrl>
102-
</CustomServerUrl>
94+
<CustomServerUrl></CustomServerUrl>
10395
<SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile>
10496
</WebProjectProperties>
10597
</FlavorProperties>
@@ -112,4 +104,4 @@
112104
<Target Name="AfterBuild">
113105
</Target>
114106
-->
115-
</Project>
107+
</Project>

framework/wcf/Basic/Ajax/JSONP/CS/website/Website.csproj

+6-16
Original file line numberDiff line numberDiff line change
@@ -4,29 +4,21 @@
44
<PropertyGroup>
55
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
66
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7-
<ProductVersion>
8-
</ProductVersion>
9-
<SchemaVersion>2.0</SchemaVersion>
7+
<ProductVersion></ProductVersion>
108
<ProjectGuid>{850BE9C8-B7C5-4A04-8E0B-3E43407F9E18}</ProjectGuid>
119
<ProjectTypeGuids>{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
1210
<OutputType>Library</OutputType>
1311
<AppDesignerFolder>Properties</AppDesignerFolder>
1412
<RootNamespace>website</RootNamespace>
1513
<AssemblyName>website</AssemblyName>
16-
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
17-
<FileUpgradeFlags>
18-
</FileUpgradeFlags>
19-
<UpgradeBackupLocation>
20-
</UpgradeBackupLocation>
21-
<OldToolsVersion>4.0</OldToolsVersion>
14+
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>
2215
<UseIISExpress>false</UseIISExpress>
2316
<Use64BitIISExpress />
2417
<IISExpressSSLPort />
2518
<IISExpressAnonymousAuthentication />
2619
<IISExpressWindowsAuthentication />
2720
<IISExpressUseClassicPipelineMode />
2821
<UseGlobalApplicationHostFile />
29-
<TargetFrameworkProfile />
3022
</PropertyGroup>
3123
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
3224
<DebugSymbols>true</DebugSymbols>
@@ -84,7 +76,7 @@
8476
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
8577
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
8678
</PropertyGroup>
87-
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
79+
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
8880
<Import Project="$(VSToolsPath)\WebApplications\Microsoft.WebApplication.targets" Condition="'$(VSToolsPath)' != ''" />
8981
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" Condition="false" />
9082
<ProjectExtensions>
@@ -95,12 +87,10 @@
9587
<AutoAssignPort>True</AutoAssignPort>
9688
<DevelopmentServerPort>26648</DevelopmentServerPort>
9789
<DevelopmentServerVPath>/</DevelopmentServerVPath>
98-
<IISUrl>
99-
</IISUrl>
90+
<IISUrl></IISUrl>
10091
<NTLMAuthentication>False</NTLMAuthentication>
10192
<UseCustomServer>False</UseCustomServer>
102-
<CustomServerUrl>
103-
</CustomServerUrl>
93+
<CustomServerUrl></CustomServerUrl>
10494
<SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile>
10595
</WebProjectProperties>
10696
</FlavorProperties>
@@ -113,4 +103,4 @@
113103
<Target Name="AfterBuild">
114104
</Target>
115105
-->
116-
</Project>
106+
</Project>
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
<?xml version="1.0" encoding="utf-8"?>
2-
<configuration>
3-
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/></startup></configuration>
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<configuration></configuration>

framework/wcf/Basic/Ajax/JsonSerialization/CS/client/client.csproj

+5-10
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,13 @@
1-
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="12.0">
1+
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="15.0">
2+
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
23
<PropertyGroup>
34
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
45
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
5-
<SchemaVersion>2.0</SchemaVersion>
66
<ProjectGuid>{F6D8FC2E-62D0-4554-AC3E-1964042590E3}</ProjectGuid>
77
<OutputType>Exe</OutputType>
8-
<RootNamespace>
9-
</RootNamespace>
108
<AssemblyName>client</AssemblyName>
119
<WarningLevel>4</WarningLevel>
12-
<UpgradeBackupLocation>
13-
</UpgradeBackupLocation>
14-
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
15-
<TargetFrameworkProfile />
10+
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>
1611
</PropertyGroup>
1712
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
1813
<DebugSymbols>true</DebugSymbols>
@@ -45,5 +40,5 @@
4540
<ItemGroup>
4641
<None Include="app.config" />
4742
</ItemGroup>
48-
<Import Project="$(MSBuildBinPath)\Microsoft.CSHARP.Targets" />
49-
</Project>
43+
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
44+
</Project>
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
<?xml version="1.0" encoding="utf-8"?>
1+
<?xml version="1.0" encoding="utf-8"?>
22
<configuration>
3-
<system.diagnostics>
4-
<sources>
5-
<!-- This section defines the logging configuration for My.Application.Log -->
6-
<source name="DefaultSource" switchName="DefaultSwitch">
7-
<listeners>
8-
<add name="FileLog"/>
9-
<!-- Uncomment the below section to write to the Application Event Log -->
10-
<!--<add name="EventLog"/>-->
11-
</listeners>
12-
</source>
13-
</sources>
14-
<switches>
15-
<add name="DefaultSwitch" value="Information"/>
16-
</switches>
17-
<sharedListeners>
18-
<add name="FileLog" type="Microsoft.VisualBasic.Logging.FileLogTraceListener, Microsoft.VisualBasic, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" initializeData="FileLogWriter"/>
19-
<!-- Uncomment the below section and replace APPLICATION_NAME with the name of your application to write to the Application Event Log -->
20-
<!--<add name="EventLog" type="System.Diagnostics.EventLogTraceListener" initializeData="APPLICATION_NAME"/> -->
21-
</sharedListeners>
22-
</system.diagnostics>
23-
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/></startup></configuration>
3+
<system.diagnostics>
4+
<sources>
5+
<!-- This section defines the logging configuration for My.Application.Log -->
6+
<source name="DefaultSource" switchName="DefaultSwitch">
7+
<listeners>
8+
<add name="FileLog" />
9+
<!-- Uncomment the below section to write to the Application Event Log -->
10+
<!--<add name="EventLog"/>-->
11+
</listeners>
12+
</source>
13+
</sources>
14+
<switches>
15+
<add name="DefaultSwitch" value="Information" />
16+
</switches>
17+
<sharedListeners>
18+
<add name="FileLog" type="Microsoft.VisualBasic.Logging.FileLogTraceListener, Microsoft.VisualBasic, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" initializeData="FileLogWriter" />
19+
<!-- Uncomment the below section and replace APPLICATION_NAME with the name of your application to write to the Application Event Log -->
20+
<!--<add name="EventLog" type="System.Diagnostics.EventLogTraceListener" initializeData="APPLICATION_NAME"/> -->
21+
</sharedListeners>
22+
</system.diagnostics>
23+
</configuration>

0 commit comments

Comments
 (0)