Retain `BizHawk.Client.` prefix in executables' assembly names
This commit is contained in:
parent
6d06dcd5d2
commit
7e8623fdda
|
@ -2,7 +2,7 @@
|
|||
<Import Project="MainSlnCommon.props" />
|
||||
<PropertyGroup>
|
||||
<OutputPath>$(MSBuildProjectDirectory)/../../output</OutputPath>
|
||||
<AssemblyName>$(MSBuildProjectName.Substring($([MSBuild]::Add($(MSBuildProjectName.LastIndexOf('.')), 1))))</AssemblyName>
|
||||
<ProjectNameTail>$(MSBuildProjectName.Substring($([MSBuild]::Add($(MSBuildProjectName.LastIndexOf('.')), 1))))</ProjectNameTail>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
|
||||
<OutputType>Exe</OutputType>
|
||||
|
@ -12,11 +12,13 @@
|
|||
</PropertyGroup>
|
||||
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
|
||||
<ItemGroup>
|
||||
<ExecutableAndConfigFromExecProj Include="$(OutputPath)$(MSBuildProjectName).exe*" />
|
||||
<NotExecFilesFromExecProj Include="$(OutputPath)*.deps.json" />
|
||||
<NotExecFilesFromExecProj Include="$(OutputPath)*.dll" />
|
||||
<NotExecFilesFromExecProj Include="$(OutputPath)*.pdb" Exclude="$(OutputPath)EmuHawk.pdb;$(OutputPath)DiscoHawk.pdb" />
|
||||
<NotExecFilesFromExecProj Include="$(OutputPath)*.xml" />
|
||||
</ItemGroup>
|
||||
<Move Condition=" $(IsTargetingNetFramework) " SourceFiles="@(NotExecFilesFromExecProj)" DestinationFolder="$(OutputPath)dll/" />
|
||||
<Move SourceFiles="@(ExecutableAndConfigFromExecProj)" DestinationFiles="@(ExecutableAndConfigFromExecProj->Replace($(MSBuildProjectName), $(ProjectNameTail)))" /> <!-- keep assembly name as e.g. `BizHawk.Client.EmuHawk`, but rename file to simply `EmuHawk.exe` as we've been doing -->
|
||||
</Target>
|
||||
</Project>
|
||||
|
|
Loading…
Reference in New Issue