Allow checked-in ext. tools to be copied into a separate install

This commit is contained in:
YoshiRulz 2022-01-14 10:24:05 +10:00
parent acbbd946e7
commit 29da927e73
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
1 changed files with 5 additions and 2 deletions

View File

@ -2,6 +2,9 @@
<PropertyGroup> <PropertyGroup>
<TargetFramework>net48</TargetFramework> <TargetFramework>net48</TargetFramework>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(BIZHAWK_DATA_HOME)' == '' ">
<BIZHAWK_DATA_HOME>$(ProjectDir)../../output/</BIZHAWK_DATA_HOME>
</PropertyGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.0" PrivateAssets="All" /> <PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.0" PrivateAssets="All" />
<Reference Include="System.Windows.Forms" /> <Reference Include="System.Windows.Forms" />
@ -28,7 +31,7 @@
Private="true" /> Private="true" />
</ItemGroup> </ItemGroup>
<Target Name="PostBuild" AfterTargets="PostBuildEvent"> <Target Name="PostBuild" AfterTargets="PostBuildEvent">
<Copy SourceFiles="$(OutputPath)$(MSBuildProjectName).dll" DestinationFolder="$(ProjectDir)../../output/ExternalTools" /> <Copy SourceFiles="$(OutputPath)$(MSBuildProjectName).dll" DestinationFolder="$(BIZHAWK_DATA_HOME)ExternalTools" />
<Copy SourceFiles="@(NET48ExternalToolFormDependency)" DestinationFolder="$(ProjectDir)../../output/ExternalTools" /> <Copy SourceFiles="@(NET48ExternalToolFormDependency)" DestinationFolder="$(BIZHAWK_DATA_HOME)ExternalTools" />
</Target> </Target>
</Project> </Project>