1- <?xml version =" 1.0" encoding =" utf-8" ?>
2- <Project DefaultTargets =" Build" xmlns =" http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion =" 4.0" >
1+ <Project Sdk =" Microsoft.NET.Sdk" >
32 <PropertyGroup >
4- <Configuration Condition =" '$(Configuration)' == '' " >Debug</Configuration >
5- <Platform Condition =" '$(Platform)' == '' " >AnyCPU</Platform >
6- <ProductVersion >8.0.50727</ProductVersion >
7- <SchemaVersion >2.0</SchemaVersion >
8- <ProjectGuid >{141A9C5A-0610-4F1B-BDD5-1EAF8416850E}</ProjectGuid >
3+ <TargetFrameworks >net462;net6.0</TargetFrameworks >
94 <OutputType >Exe</OutputType >
10- <AppDesignerFolder >Properties</AppDesignerFolder >
11- <RootNamespace >Microsoft.ServiceModel.Samples</RootNamespace >
12- <AssemblyName >Client</AssemblyName >
13- <TargetFrameworkVersion >v4.0</TargetFrameworkVersion >
14- <FileUpgradeFlags >
15- </FileUpgradeFlags >
16- <UpgradeBackupLocation >
17- </UpgradeBackupLocation >
18- <OldToolsVersion >2.0</OldToolsVersion >
19- <PublishUrl >publish\</PublishUrl >
20- <Install >true</Install >
21- <InstallFrom >Disk</InstallFrom >
22- <UpdateEnabled >false</UpdateEnabled >
23- <UpdateMode >Foreground</UpdateMode >
24- <UpdateInterval >7</UpdateInterval >
25- <UpdateIntervalUnits >Days</UpdateIntervalUnits >
26- <UpdatePeriodically >false</UpdatePeriodically >
27- <UpdateRequired >false</UpdateRequired >
28- <MapFileExtensions >true</MapFileExtensions >
29- <ApplicationRevision >0</ApplicationRevision >
30- <ApplicationVersion >1.0.0.%2a</ApplicationVersion >
31- <IsWebBootstrapper >false</IsWebBootstrapper >
32- <UseApplicationTrust >false</UseApplicationTrust >
33- <BootstrapperEnabled >true</BootstrapperEnabled >
34- <TargetFrameworkProfile />
5+ <Title >Client</Title >
6+ <Description >Lifetime sample</Description >
7+ <Company >Microsoft Corporation</Company >
8+ <Product >Windows Communication Foundation and Windows Workflow Foundation SDK</Product >
9+ <Copyright >Copyright (c) Microsoft Corporation</Copyright >
3510 </PropertyGroup >
36- <PropertyGroup Condition =" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' " >
37- <DebugSymbols >true</DebugSymbols >
38- <DebugType >full</DebugType >
39- <Optimize >false</Optimize >
40- <OutputPath >bin\</OutputPath >
41- <DefineConstants >DEBUG;TRACE</DefineConstants >
42- <ErrorReport >prompt</ErrorReport >
43- <WarningLevel >4</WarningLevel >
44- <CodeAnalysisRuleSet >AllRules.ruleset</CodeAnalysisRuleSet >
45- </PropertyGroup >
46- <PropertyGroup Condition =" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' " >
47- <DebugType >pdbonly</DebugType >
48- <Optimize >true</Optimize >
49- <OutputPath >bin\</OutputPath >
50- <DefineConstants >TRACE</DefineConstants >
51- <ErrorReport >prompt</ErrorReport >
52- <WarningLevel >4</WarningLevel >
53- <CodeAnalysisRuleSet >AllRules.ruleset</CodeAnalysisRuleSet >
54- </PropertyGroup >
55- <ItemGroup >
56- <Reference Include =" System" />
57- <Reference Include =" System.Data" />
58- <Reference Include =" System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL" >
59- <SpecificVersion >False</SpecificVersion >
60- </Reference >
61- <Reference Include =" System.Xml" />
62- </ItemGroup >
63- <ItemGroup >
64- <Compile Include =" Client.cs" />
65- <Compile Include =" Properties\AssemblyInfo.cs" />
11+
12+ <ItemGroup Condition =" '$(TargetFramework)' == 'net6.0' " >
13+ <None Remove =" App.config" />
6614 </ItemGroup >
67- <ItemGroup >
68- <None Include =" App.config" />
15+
16+ <ItemGroup Condition =" '$(TargetFramework)' == 'net462' " >
17+ <Reference Include =" System.ServiceModel" />
6918 </ItemGroup >
70- <ItemGroup >
71- <BootstrapperPackage Include =" Microsoft.Net.Client.3.5" >
72- <Visible >False</Visible >
73- <ProductName >.NET Framework 3.5 SP1 Client Profile</ProductName >
74- <Install >false</Install >
75- </BootstrapperPackage >
76- <BootstrapperPackage Include =" Microsoft.Net.Framework.3.5.SP1" >
77- <Visible >False</Visible >
78- <ProductName >.NET Framework 3.5 SP1</ProductName >
79- <Install >true</Install >
80- </BootstrapperPackage >
81- <BootstrapperPackage Include =" Microsoft.VisualBasic.PowerPacks.10.0" >
82- <Visible >False</Visible >
83- <ProductName >Microsoft Visual Basic PowerPacks 10.0</ProductName >
84- <Install >true</Install >
85- </BootstrapperPackage >
86- <BootstrapperPackage Include =" Microsoft.Windows.Installer.3.1" >
87- <Visible >False</Visible >
88- <ProductName >Windows Installer 3.1</ProductName >
89- <Install >true</Install >
90- </BootstrapperPackage >
19+
20+ <ItemGroup Condition =" '$(TargetFramework)' == 'net6.0' " >
21+ <PackageReference Include =" System.ServiceModel.Primitives" Version =" 6.*" />
22+ <PackageReference Include =" System.ServiceModel.NetTcp" Version =" 6.*" />
9123 </ItemGroup >
92- <Import Project =" $(MSBuildBinPath)\Microsoft.CSharp.targets" />
93- <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
94- Other similar extension points exist, see Microsoft.Common.targets.
95- <Target Name="BeforeBuild">
96- </Target>
97- <Target Name="AfterBuild">
98- </Target>
99- -->
100- </Project >
24+ </Project >
0 commit comments