Novetus_src/Novetus/NovetusLauncher/Novetus.Launcher.Net6.csproj

24 lines
1.9 KiB
XML

<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net6.0-windows</TargetFramework>
<UseWindowsForms>true</UseWindowsForms>
<UseWpf>true</UseWpf>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<AssemblyName>$(MSBuildProjectName.Replace(".Net6", "").Replace(".Launcher", ""))</AssemblyName>
<RootNamespace>$(MSBuildProjectName.Replace(".Net6", "").Replace(".", ""))</RootNamespace>
<ApplicationIcon>NovetusIcon.ico</ApplicationIcon>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<DefineConstants>$(DefineConstants);LAUNCHER;NOVETUS_APPS</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<DefineConstants>$(DefineConstants);LAUNCHER;NOVETUS_APPS</DefineConstants>
</PropertyGroup>
<ItemGroup>
<Content Include="NovetusIcon.ico" />
</ItemGroup>
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
<Exec Command="SET path=$(SolutionDir)build&#xD;&#xA;if not exist &quot;%25path%25&quot; mkdir &quot;%25path%25&quot;&#xD;&#xA;SET path2=%25path%25\net6&#xD;&#xA;if not exist &quot;%25path2%25&quot; mkdir &quot;%25path2%25&#xD;&#xA;SET path3=%25path2%25\Launcher&#xD;&#xA;if not exist &quot;%25path3%25&quot; mkdir &quot;%25path3%25&#xD;&#xA;copy $(ProjectDir)$(OutDir) &quot;%25path3%25&quot;\*&#xD;&#xA;del &quot;%25path%25&quot;\$(TargetName).vshost.exe&#xD;&#xA;del &quot;%25path%25&quot;\$(TargetName).vshost.exe.config&#xD;&#xA;del &quot;%25path%25&quot;\$(TargetName).vshost.exe.manifest&#xD;&#xA;del &quot;%25path%25&quot;\$(TargetName).xml&#xD;&#xA;if not exist &quot;%25path2%25&quot;\bin mkdir &quot;%25path2%25&quot;\bin&#xD;&#xA;move &quot;%25path3%25&quot;\* &quot;%25path2%25&quot;\bin&#xD;&#xA;rd /s /q &quot;%25path3%25&quot;" />
</Target>
</Project>