Skip to content

Commit 327e415

Browse files
committed
build(Weasel.Setup): migrate csproj to SDK style
1 parent 8d8f53c commit 327e415

File tree

5 files changed

+20
-190
lines changed

5 files changed

+20
-190
lines changed

Weasel.Setup/App.config

Lines changed: 0 additions & 6 deletions
This file was deleted.

Weasel.Setup/Properties/AssemblyInfo.cs

Lines changed: 0 additions & 33 deletions
This file was deleted.

Weasel.Setup/Properties/Settings.Designer.cs

Lines changed: 0 additions & 30 deletions
This file was deleted.

Weasel.Setup/Properties/Settings.settings

Lines changed: 0 additions & 7 deletions
This file was deleted.

Weasel.Setup/Weasel.Setup.csproj

Lines changed: 20 additions & 114 deletions
Original file line numberDiff line numberDiff line change
@@ -1,115 +1,21 @@
1-
<?xml version="1.0" encoding="utf-8"?>
2-
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3-
<Import Project="..\packages\ILRepack.2.0.36\build\ILRepack.props" Condition="Exists('..\packages\ILRepack.2.0.36\build\ILRepack.props')" />
4-
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
5-
<PropertyGroup>
6-
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
7-
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
8-
<ProjectGuid>{2D028423-929D-4555-A61E-245BD9EC7383}</ProjectGuid>
9-
<OutputType>WinExe</OutputType>
10-
<RootNamespace>Weasel.Setup</RootNamespace>
11-
<AssemblyName>Weasel.Setup</AssemblyName>
12-
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
13-
<FileAlignment>512</FileAlignment>
14-
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
15-
<Deterministic>true</Deterministic>
16-
<NuGetPackageImportStamp>
17-
</NuGetPackageImportStamp>
18-
</PropertyGroup>
19-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
20-
<PlatformTarget>AnyCPU</PlatformTarget>
21-
<DebugSymbols>true</DebugSymbols>
22-
<DebugType>full</DebugType>
23-
<Optimize>false</Optimize>
24-
<OutputPath>$(SolutionDir)output\</OutputPath>
25-
<DefineConstants>DEBUG;TRACE</DefineConstants>
26-
<ErrorReport>prompt</ErrorReport>
27-
<WarningLevel>4</WarningLevel>
28-
<Prefer32Bit>false</Prefer32Bit>
29-
<PreferNativeArm64>true</PreferNativeArm64>
30-
</PropertyGroup>
31-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
32-
<PlatformTarget>AnyCPU</PlatformTarget>
33-
<DebugType>pdbonly</DebugType>
34-
<Optimize>true</Optimize>
35-
<OutputPath>$(SolutionDir)output\</OutputPath>
36-
<DefineConstants>TRACE</DefineConstants>
37-
<ErrorReport>prompt</ErrorReport>
38-
<WarningLevel>4</WarningLevel>
39-
<Prefer32Bit>false</Prefer32Bit>
40-
<PreferNativeArm64>true</PreferNativeArm64>
41-
</PropertyGroup>
42-
<PropertyGroup>
43-
<ApplicationManifest>app.manifest</ApplicationManifest>
44-
</PropertyGroup>
45-
<ItemGroup>
46-
<Reference Include="Microsoft.Build.Framework" />
47-
<Reference Include="Microsoft.Build.Utilities.v4.0" />
48-
<Reference Include="System" />
49-
<Reference Include="System.Core" />
50-
<Reference Include="System.Xml.Linq" />
51-
<Reference Include="System.Data.DataSetExtensions" />
52-
<Reference Include="Microsoft.CSharp" />
53-
<Reference Include="System.Data" />
54-
<Reference Include="System.Deployment" />
55-
<Reference Include="System.Drawing" />
56-
<Reference Include="System.Net.Http" />
57-
<Reference Include="System.Windows.Forms" />
58-
<Reference Include="System.Xml" />
59-
</ItemGroup>
60-
<ItemGroup>
61-
<Compile Include="Localization\Resources.Designer.cs">
62-
<AutoGen>True</AutoGen>
63-
<DesignTime>True</DesignTime>
64-
<DependentUpon>Resources.resx</DependentUpon>
65-
</Compile>
66-
<Compile Include="SetupOptionDialog.cs">
67-
<SubType>Form</SubType>
68-
</Compile>
69-
<Compile Include="SetupOptionDialog.Designer.cs">
70-
<DependentUpon>SetupOptionDialog.cs</DependentUpon>
71-
</Compile>
72-
<Compile Include="PInvoke.cs" />
73-
<Compile Include="Program.cs" />
74-
<Compile Include="Properties\AssemblyInfo.cs" />
75-
<Compile Include="Setup.cs" />
76-
<Compile Include="Utils.cs" />
77-
<EmbeddedResource Include="Localization\Resources.resx">
78-
<Generator>ResXFileCodeGenerator</Generator>
79-
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
80-
</EmbeddedResource>
81-
<EmbeddedResource Include="Localization\Resources.zh-Hans.resx" />
82-
<EmbeddedResource Include="Localization\Resources.zh-Hant.resx" />
83-
<EmbeddedResource Include="SetupOptionDialog.resx">
84-
<DependentUpon>SetupOptionDialog.cs</DependentUpon>
85-
</EmbeddedResource>
86-
<EmbeddedResource Include="SetupOptionDialog.zh-Hans.resx">
87-
<DependentUpon>SetupOptionDialog.cs</DependentUpon>
88-
</EmbeddedResource>
89-
<EmbeddedResource Include="SetupOptionDialog.zh-Hant.resx">
90-
<DependentUpon>SetupOptionDialog.cs</DependentUpon>
91-
</EmbeddedResource>
92-
<None Include="app.manifest" />
93-
<None Include="Properties\Settings.settings">
94-
<Generator>SettingsSingleFileGenerator</Generator>
95-
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
96-
</None>
97-
<Compile Include="Properties\Settings.Designer.cs">
98-
<AutoGen>True</AutoGen>
99-
<DependentUpon>Settings.settings</DependentUpon>
100-
<DesignTimeSharedInput>True</DesignTimeSharedInput>
101-
</Compile>
102-
</ItemGroup>
103-
<ItemGroup>
104-
<None Include="App.config" />
105-
</ItemGroup>
106-
<ItemGroup>
107-
<PackageReference Include="Resource.Embedder">
108-
<Version>2.2.0</Version>
109-
</PackageReference>
110-
<PackageReference Include="TSF.TypeLib.Update">
111-
<Version>1.0.4</Version>
112-
</PackageReference>
113-
</ItemGroup>
114-
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
1+
<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop">
2+
<PropertyGroup>
3+
<TargetFramework>net48</TargetFramework>
4+
<UseWindowsForms>true</UseWindowsForms>
5+
<OutputType>WinExe</OutputType>
6+
<PlatformTarget>AnyCPU</PlatformTarget>
7+
<OutputPath>$(SolutionDir)output\</OutputPath>
8+
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
9+
<ApplicationManifest>app.manifest</ApplicationManifest>
10+
</PropertyGroup>
11+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
12+
<PreferNativeArm64>True</PreferNativeArm64>
13+
</PropertyGroup>
14+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
15+
<PreferNativeArm64>True</PreferNativeArm64>
16+
</PropertyGroup>
17+
<ItemGroup>
18+
<PackageReference Include="Resource.Embedder" Version="2.2.0" />
19+
<PackageReference Include="TSF.TypeLib.Update" Version="1.0.4" />
20+
</ItemGroup>
11521
</Project>

0 commit comments

Comments
 (0)