Skip to content

Instantly share code, notes, and snippets.

@BicycleMark
Last active July 3, 2020 18:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BicycleMark/8870c630a1fb77a66df1213d81f08f12 to your computer and use it in GitHub Desktop.
Save BicycleMark/8870c630a1fb77a66df1213d81f08f12 to your computer and use it in GitHub Desktop.
A simple csproj for moving WPF Framework Apps to .Net Core 3.1
<Project>
<PropertyGroup>
<BaseIntermediateOutputPath>obj_core</BaseIntermediateOutputPath>
</PropertyGroup>
<Import Sdk="Microsoft.NET.Sdk.WindowsDesktop" Project="Sdk.props" />
<ItemGroup>
<Compile Remove="obj\**" />
<EmbeddedResource Remove="obj\**" />
<None Remove="obj\**" />
<Page Remove="obj\**" />
</ItemGroup>
<!-- *************************************************** -->
<!-- Customize Resource Statements For your Project Start-->
<ItemGroup>
<None Remove="Resources\**\*.png" />
<None Remove="Resources\**\*.ico" />
</ItemGroup>
<ItemGroup>
<Resource Include="Resources\**\*.png" />
<Resource Include="Resources\**\*.ico" />
</ItemGroup>
<!-- Customize For your Projec End -->
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>netcoreapp3.1</TargetFramework>
<!-- ********************************************** -->
<!-- Set these values same as Framework Values Start -->
<AssemblyName>Sweeper</AssemblyName>
<RootNamespace>Sweeper</RootNamespace>
<!-- Set these values same as Framework Values End -->
<GenerateTargetFrameworkAttribute>false</GenerateTargetFrameworkAttribute>
<GenerateAssemblyDescriptionAttribute>false</GenerateAssemblyDescriptionAttribute>
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>
<GenerateAssemblyTitleAttribute>false</GenerateAssemblyTitleAttribute>
<GenerateAssemblyVersionAttribute>false</GenerateAssemblyVersionAttribute>
<GenerateFileVersionAttribute>false</GenerateFileVersionAttribute>
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute>
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute>
<GenerateAssemblyFileVersionAttribute>false</GenerateAssemblyFileVersionAttribute>
<UseWPF>true</UseWPF>
<OutputPath>bin_core\Debug\</OutputPath>
<IntermediateOutputPath>out_core\Debug\</IntermediateOutputPath>
</PropertyGroup>
<Import Sdk="Microsoft.NET.Sdk.WindowsDesktop" Project="Sdk.targets" />
</Project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment