Skip to content

Commit 9b920a5

Browse files
authored
Standardize sample projects, Part 12 (dotnet#19393)
* Standardize sample projects, Part 12 * Fix
1 parent a8c5820 commit 9b920a5

File tree

10 files changed

+87
-584
lines changed

10 files changed

+87
-584
lines changed
Lines changed: 10 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -1,76 +1,17 @@
1-
<?xml version="1.0" encoding="utf-8"?>
2-
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
33
<PropertyGroup>
4-
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
5-
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
6-
<ProductVersion>
7-
</ProductVersion>
8-
<SchemaVersion>
9-
</SchemaVersion>
10-
<ProjectGuid>{A95BA9CA-F687-49EB-8A3B-C8A65A2D4473}</ProjectGuid>
114
<OutputType>Exe</OutputType>
12-
<StartupObject>TemperatureMonitorVB.Module1</StartupObject>
5+
<TargetFramework>net48</TargetFramework>
136
<RootNamespace>TemperatureMonitorVB</RootNamespace>
147
<AssemblyName>TemperatureMonitorVB</AssemblyName>
15-
<FileAlignment>512</FileAlignment>
16-
<MyType>Console</MyType>
17-
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
18-
<TargetFrameworkProfile>Client</TargetFrameworkProfile>
198
</PropertyGroup>
20-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
21-
<PlatformTarget>x86</PlatformTarget>
22-
<DebugSymbols>true</DebugSymbols>
23-
<DebugType>full</DebugType>
24-
<DefineDebug>true</DefineDebug>
25-
<DefineTrace>true</DefineTrace>
26-
<OutputPath>bin\Debug\</OutputPath>
27-
<DocumentationFile>TemperatureMonitorVB.xml</DocumentationFile>
28-
<NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
29-
</PropertyGroup>
30-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
31-
<PlatformTarget>x86</PlatformTarget>
32-
<DebugType>pdbonly</DebugType>
33-
<DefineDebug>false</DefineDebug>
34-
<DefineTrace>true</DefineTrace>
35-
<Optimize>true</Optimize>
36-
<OutputPath>bin\Release\</OutputPath>
37-
<DocumentationFile>TemperatureMonitorVB.xml</DocumentationFile>
38-
<NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
39-
</PropertyGroup>
40-
<PropertyGroup>
41-
<OptionExplicit>On</OptionExplicit>
42-
</PropertyGroup>
43-
<PropertyGroup>
44-
<OptionCompare>Binary</OptionCompare>
45-
</PropertyGroup>
46-
<PropertyGroup>
47-
<OptionStrict>On</OptionStrict>
48-
</PropertyGroup>
49-
<PropertyGroup>
50-
<OptionInfer>On</OptionInfer>
51-
</PropertyGroup>
52-
<ItemGroup>
53-
<Reference Include="System" />
54-
<Reference Include="System.Core" />
55-
</ItemGroup>
56-
<ItemGroup>
57-
<Import Include="Microsoft.VisualBasic" />
58-
<Import Include="System" />
59-
<Import Include="System.Collections" />
60-
<Import Include="System.Collections.Generic" />
61-
</ItemGroup>
9+
6210
<ItemGroup>
63-
<Compile Include="Data.vb" />
64-
<Compile Include="Module1.vb" />
65-
<Compile Include="Observer.vb" />
66-
<Compile Include="Provider.vb" />
11+
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.0">
12+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
13+
<PrivateAssets>all</PrivateAssets>
14+
</PackageReference>
6715
</ItemGroup>
68-
<Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.targets" />
69-
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
70-
Other similar extension points exist, see Microsoft.Common.targets.
71-
<Target Name="BeforeBuild">
72-
</Target>
73-
<Target Name="AfterBuild">
74-
</Target>
75-
-->
76-
</Project>
16+
17+
</Project>
Lines changed: 10 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -1,74 +1,17 @@
1-
<?xml version="1.0" encoding="utf-8"?>
2-
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
33
<PropertyGroup>
4-
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
5-
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
6-
<ProductVersion>
7-
</ProductVersion>
8-
<SchemaVersion>
9-
</SchemaVersion>
10-
<ProjectGuid>{70C9F5DA-BB2B-4BFB-962E-33F5A19BD4EE}</ProjectGuid>
114
<OutputType>Exe</OutputType>
12-
<StartupObject>Sub Main</StartupObject>
5+
<TargetFramework>net48</TargetFramework>
136
<RootNamespace>BaggageInfo</RootNamespace>
147
<AssemblyName>BaggageInfo</AssemblyName>
15-
<FileAlignment>512</FileAlignment>
16-
<MyType>Console</MyType>
17-
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
18-
<TargetFrameworkProfile>Client</TargetFrameworkProfile>
198
</PropertyGroup>
20-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
21-
<PlatformTarget>x86</PlatformTarget>
22-
<DebugSymbols>true</DebugSymbols>
23-
<DebugType>full</DebugType>
24-
<DefineDebug>true</DefineDebug>
25-
<DefineTrace>true</DefineTrace>
26-
<OutputPath>bin\Debug\</OutputPath>
27-
<DocumentationFile>BaggageInfo.xml</DocumentationFile>
28-
<NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
29-
</PropertyGroup>
30-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
31-
<PlatformTarget>x86</PlatformTarget>
32-
<DebugType>pdbonly</DebugType>
33-
<DefineDebug>false</DefineDebug>
34-
<DefineTrace>true</DefineTrace>
35-
<Optimize>true</Optimize>
36-
<OutputPath>bin\Release\</OutputPath>
37-
<DocumentationFile>BaggageInfo.xml</DocumentationFile>
38-
<NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
39-
</PropertyGroup>
40-
<PropertyGroup>
41-
<OptionExplicit>On</OptionExplicit>
42-
</PropertyGroup>
43-
<PropertyGroup>
44-
<OptionCompare>Binary</OptionCompare>
45-
</PropertyGroup>
46-
<PropertyGroup>
47-
<OptionStrict>On</OptionStrict>
48-
</PropertyGroup>
49-
<PropertyGroup>
50-
<OptionInfer>On</OptionInfer>
51-
</PropertyGroup>
52-
<ItemGroup>
53-
<Reference Include="System" />
54-
<Reference Include="System.Core" />
55-
</ItemGroup>
56-
<ItemGroup>
57-
<Import Include="Microsoft.VisualBasic" />
58-
<Import Include="System" />
59-
<Import Include="System.Collections.Generic" />
60-
</ItemGroup>
9+
6110
<ItemGroup>
62-
<Compile Include="Module1.vb" />
63-
<Compile Include="Observer.vb" />
64-
<Compile Include="Provider.vb" />
11+
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.0">
12+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
13+
<PrivateAssets>all</PrivateAssets>
14+
</PackageReference>
6515
</ItemGroup>
66-
<Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.targets" />
67-
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
68-
Other similar extension points exist, see Microsoft.Common.targets.
69-
<Target Name="BeforeBuild">
70-
</Target>
71-
<Target Name="AfterBuild">
72-
</Target>
73-
-->
74-
</Project>
16+
17+
</Project>
Lines changed: 15 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -1,63 +1,25 @@
1-
<?xml version="1.0" encoding="utf-8"?>
2-
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
33
<PropertyGroup>
4-
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
5-
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
6-
<ProductVersion>9.0.20816</ProductVersion>
7-
<SchemaVersion>2.0</SchemaVersion>
8-
<ProjectGuid>{29785D26-DF14-4F6C-B2C1-A13ECAAD07DC}</ProjectGuid>
94
<OutputType>Exe</OutputType>
5+
<TargetFramework>net48</TargetFramework>
6+
107
<StartupObject>walk4.Form1</StartupObject>
11-
<RootNamespace>walk4</RootNamespace>
12-
<AssemblyName>walk4</AssemblyName>
13-
<FileAlignment>512</FileAlignment>
14-
<MyType>Console</MyType>
15-
<Nonshipping>true</Nonshipping>
16-
<OptionExplicit>On</OptionExplicit>
17-
<OptionCompare>Binary</OptionCompare>
18-
<OptionStrict>Off</OptionStrict>
19-
<OptionInfer>On</OptionInfer>
20-
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
21-
</PropertyGroup>
22-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
23-
<DebugSymbols>true</DebugSymbols>
24-
<DebugType>full</DebugType>
25-
<DefineDebug>true</DefineDebug>
26-
<DefineTrace>true</DefineTrace>
27-
<OutputPath>bin\Debug\</OutputPath>
28-
<NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
29-
</PropertyGroup>
30-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
31-
<DebugType>pdbonly</DebugType>
32-
<DefineDebug>false</DefineDebug>
33-
<DefineTrace>true</DefineTrace>
34-
<Optimize>true</Optimize>
35-
<OutputPath>bin\Release\</OutputPath>
36-
<NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
8+
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
379
</PropertyGroup>
10+
3811
<ItemGroup>
39-
<Reference Include="System" />
40-
<Reference Include="System.Core">
41-
<RequiredTargetFramework>3.5</RequiredTargetFramework>
42-
</Reference>
43-
<Reference Include="System.Data" />
44-
<Reference Include="System.Data.Linq">
45-
<RequiredTargetFramework>3.5</RequiredTargetFramework>
46-
</Reference>
47-
<Reference Include="System.Deployment" />
48-
<Reference Include="System.Drawing" />
12+
<Reference Include="System.Data.Linq" />
4913
<Reference Include="System.Windows.Forms" />
50-
<Reference Include="System.Xml" />
5114
</ItemGroup>
15+
5216
<ItemGroup>
53-
<Import Include="Microsoft.VisualBasic" />
54-
<Import Include="System" />
55-
<Import Include="System.Collections" />
56-
<Import Include="System.Collections.Generic" />
57-
<Import Include="System.Data" />
58-
<Import Include="System.Diagnostics" />
59-
<Import Include="System.Linq" />
17+
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.0">
18+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
19+
<PrivateAssets>all</PrivateAssets>
20+
</PackageReference>
6021
</ItemGroup>
22+
6123
<ItemGroup>
6224
<Compile Include="Form1.Designer.vb">
6325
<DependentUpon>Form1.vb</DependentUpon>
@@ -67,18 +29,5 @@
6729
</Compile>
6830
<Compile Include="northwind.vb" />
6931
</ItemGroup>
70-
<ItemGroup>
71-
<Folder Include="My Project\" />
72-
</ItemGroup>
73-
<Import Project="$(MSBuildBinPath)\Microsoft.VisualBasic.Targets" />
74-
<ProjectExtensions>
75-
<VisualStudio AllowExistingFolder="true" />
76-
</ProjectExtensions>
77-
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
78-
Other similar extension points exist, see Microsoft.Common.targets.
79-
<Target Name="BeforeBuild">
80-
</Target>
81-
<Target Name="AfterBuild">
82-
</Target>
83-
-->
84-
</Project>
32+
33+
</Project>
Lines changed: 10 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -1,75 +1,17 @@
1-
<?xml version="1.0" encoding="utf-8"?>
2-
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
33
<PropertyGroup>
4-
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
5-
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
6-
<ProductVersion>9.0.20718</ProductVersion>
7-
<SchemaVersion>2.0</SchemaVersion>
8-
<ProjectGuid>{CB3ECC2B-48E1-4CB8-9E88-AC4618E65F6A}</ProjectGuid>
94
<OutputType>Exe</OutputType>
10-
<StartupObject>JoinSamples.Module1</StartupObject>
5+
<TargetFramework>net48</TargetFramework>
116
<RootNamespace>JoinSamples</RootNamespace>
127
<AssemblyName>JoinSamples</AssemblyName>
13-
<FileAlignment>512</FileAlignment>
14-
<MyType>Console</MyType>
15-
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
16-
<OptionExplicit>On</OptionExplicit>
17-
<OptionCompare>Binary</OptionCompare>
18-
<OptionStrict>Off</OptionStrict>
19-
<OptionInfer>On</OptionInfer>
208
</PropertyGroup>
21-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
22-
<DebugSymbols>true</DebugSymbols>
23-
<DebugType>full</DebugType>
24-
<DefineDebug>true</DefineDebug>
25-
<DefineTrace>true</DefineTrace>
26-
<OutputPath>bin\Debug\</OutputPath>
27-
<DocumentationFile>JoinSamples.xml</DocumentationFile>
28-
<NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
29-
</PropertyGroup>
30-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
31-
<DebugType>pdbonly</DebugType>
32-
<DefineDebug>false</DefineDebug>
33-
<DefineTrace>true</DefineTrace>
34-
<Optimize>true</Optimize>
35-
<OutputPath>bin\Release\</OutputPath>
36-
<DocumentationFile>JoinSamples.xml</DocumentationFile>
37-
<NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
38-
</PropertyGroup>
39-
<ItemGroup>
40-
<Reference Include="System" />
41-
<Reference Include="System.Data" />
42-
<Reference Include="System.Deployment" />
43-
<Reference Include="System.Xml" />
44-
<Reference Include="System.Core">
45-
<RequiredTargetFramework>3.5</RequiredTargetFramework>
46-
</Reference>
47-
<Reference Include="System.Xml.Linq">
48-
<RequiredTargetFramework>3.5</RequiredTargetFramework>
49-
</Reference>
50-
<Reference Include="System.Data.DataSetExtensions">
51-
<RequiredTargetFramework>3.5</RequiredTargetFramework>
52-
</Reference>
53-
</ItemGroup>
54-
<ItemGroup>
55-
<Import Include="Microsoft.VisualBasic" />
56-
<Import Include="System" />
57-
<Import Include="System.Collections" />
58-
<Import Include="System.Collections.Generic" />
59-
<Import Include="System.Data" />
60-
<Import Include="System.Diagnostics" />
61-
<Import Include="System.Linq" />
62-
<Import Include="System.Xml.Linq" />
63-
</ItemGroup>
9+
6410
<ItemGroup>
65-
<Compile Include="Module1.vb" />
11+
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.0">
12+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
13+
<PrivateAssets>all</PrivateAssets>
14+
</PackageReference>
6615
</ItemGroup>
67-
<Import Project="$(MSBuildBinPath)\Microsoft.VisualBasic.targets" />
68-
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
69-
Other similar extension points exist, see Microsoft.Common.targets.
70-
<Target Name="BeforeBuild">
71-
</Target>
72-
<Target Name="AfterBuild">
73-
</Target>
74-
-->
75-
</Project>
16+
17+
</Project>

0 commit comments

Comments
 (0)