Skip to content

Commit

Permalink
build(Weasel.Setup): migrate csproj to SDK style
Browse files Browse the repository at this point in the history
  • Loading branch information
WhiredPlanck committed Jan 12, 2025
1 parent 8d8f53c commit 327e415
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 190 deletions.
6 changes: 0 additions & 6 deletions Weasel.Setup/App.config

This file was deleted.

33 changes: 0 additions & 33 deletions Weasel.Setup/Properties/AssemblyInfo.cs

This file was deleted.

30 changes: 0 additions & 30 deletions Weasel.Setup/Properties/Settings.Designer.cs

This file was deleted.

7 changes: 0 additions & 7 deletions Weasel.Setup/Properties/Settings.settings

This file was deleted.

134 changes: 20 additions & 114 deletions Weasel.Setup/Weasel.Setup.csproj
Original file line number Diff line number Diff line change
@@ -1,115 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="..\packages\ILRepack.2.0.36\build\ILRepack.props" Condition="Exists('..\packages\ILRepack.2.0.36\build\ILRepack.props')" />
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{2D028423-929D-4555-A61E-245BD9EC7383}</ProjectGuid>
<OutputType>WinExe</OutputType>
<RootNamespace>Weasel.Setup</RootNamespace>
<AssemblyName>Weasel.Setup</AssemblyName>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<Deterministic>true</Deterministic>
<NuGetPackageImportStamp>
</NuGetPackageImportStamp>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>$(SolutionDir)output\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
<PreferNativeArm64>true</PreferNativeArm64>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>$(SolutionDir)output\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
<PreferNativeArm64>true</PreferNativeArm64>
</PropertyGroup>
<PropertyGroup>
<ApplicationManifest>app.manifest</ApplicationManifest>
</PropertyGroup>
<ItemGroup>
<Reference Include="Microsoft.Build.Framework" />
<Reference Include="Microsoft.Build.Utilities.v4.0" />
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Deployment" />
<Reference Include="System.Drawing" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Localization\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<Compile Include="SetupOptionDialog.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="SetupOptionDialog.Designer.cs">
<DependentUpon>SetupOptionDialog.cs</DependentUpon>
</Compile>
<Compile Include="PInvoke.cs" />
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Setup.cs" />
<Compile Include="Utils.cs" />
<EmbeddedResource Include="Localization\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
</EmbeddedResource>
<EmbeddedResource Include="Localization\Resources.zh-Hans.resx" />
<EmbeddedResource Include="Localization\Resources.zh-Hant.resx" />
<EmbeddedResource Include="SetupOptionDialog.resx">
<DependentUpon>SetupOptionDialog.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="SetupOptionDialog.zh-Hans.resx">
<DependentUpon>SetupOptionDialog.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="SetupOptionDialog.zh-Hant.resx">
<DependentUpon>SetupOptionDialog.cs</DependentUpon>
</EmbeddedResource>
<None Include="app.manifest" />
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
<Compile Include="Properties\Settings.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Resource.Embedder">
<Version>2.2.0</Version>
</PackageReference>
<PackageReference Include="TSF.TypeLib.Update">
<Version>1.0.4</Version>
</PackageReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop">
<PropertyGroup>
<TargetFramework>net48</TargetFramework>
<UseWindowsForms>true</UseWindowsForms>
<OutputType>WinExe</OutputType>
<PlatformTarget>AnyCPU</PlatformTarget>
<OutputPath>$(SolutionDir)output\</OutputPath>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<ApplicationManifest>app.manifest</ApplicationManifest>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<PreferNativeArm64>True</PreferNativeArm64>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<PreferNativeArm64>True</PreferNativeArm64>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Resource.Embedder" Version="2.2.0" />
<PackageReference Include="TSF.TypeLib.Update" Version="1.0.4" />
</ItemGroup>
</Project>

0 comments on commit 327e415

Please sign in to comment.