Extract .props for executable projects

This commit is contained in:
YoshiRulz 2020-09-22 07:35:54 +10:00
parent da26a18bf5
commit 000e2af543
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
3 changed files with 14 additions and 11 deletions

View File

@ -1,12 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="../MainSlnCommon.props" />
<Import Project="../MainSlnExecutable.props" />
<PropertyGroup>
<ApplicationIcon>discohawk.ico</ApplicationIcon>
<DefineConstants>$(DefineConstants);WINDOWS</DefineConstants>
<OutputPath>$(ProjectDir)../../output</OutputPath>
<OutputType>Exe</OutputType>
<TargetFramework>net48</TargetFramework>
<TargetName>DiscoHawk</TargetName>
</PropertyGroup>
<!--
<PropertyGroup>

View File

@ -1,21 +1,14 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="../MainSlnCommon.props" />
<Import Project="../MainSlnExecutable.props" />
<PropertyGroup>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<ApplicationIcon>images/logo.ico</ApplicationIcon>
<ApplicationManifest>app.manifest</ApplicationManifest>
<DefineConstants>$(DefineConstants);EXE_PROJECT</DefineConstants>
<OutputPath>$(ProjectDir)../../output</OutputPath>
<TargetFramework>net48</TargetFramework>
<TargetName>EmuHawk</TargetName>
<ResolveAssemblyWarnOrErrorOnTargetArchitectureMismatch>None</ResolveAssemblyWarnOrErrorOnTargetArchitectureMismatch>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
<OutputType>Exe</OutputType>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
<OutputType>WinExe</OutputType>
</PropertyGroup>
<!--
<PropertyGroup>
<AppDesignerFolder>Properties</AppDesignerFolder>

View File

@ -0,0 +1,12 @@
<Project>
<PropertyGroup>
<OutputPath>$(ProjectDir)../../output</OutputPath>
<TargetName>$(MSBuildProjectName.Substring($([MSBuild]::Add($(MSBuildProjectName.LastIndexOf('.')), 1))))</TargetName>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
<OutputType>Exe</OutputType>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
<OutputType>WinExe</OutputType>
</PropertyGroup>
</Project>