mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-01 06:00:46 +00:00
59 lines
3.0 KiB
XML
59 lines
3.0 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
<Choose>
|
|
<When Condition="$(NCrunchOriginalSolutionDir) != '' And $(NCrunchOriginalSolutionDir) != '*Undefined*'">
|
|
<PropertyGroup>
|
|
<EmbedderSolutionDir>$(NCrunchOriginalSolutionDir)</EmbedderSolutionDir>
|
|
</PropertyGroup>
|
|
</When>
|
|
<When Condition="$(SolutionDir) != '' And $(SolutionDir) != '*Undefined*'">
|
|
<PropertyGroup>
|
|
<EmbedderSolutionDir>$(SolutionDir)</EmbedderSolutionDir>
|
|
</PropertyGroup>
|
|
</When>
|
|
<When Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">
|
|
<PropertyGroup>
|
|
<EmbedderSolutionDir>$(MSBuildProjectDirectory)..\..\..\</EmbedderSolutionDir>
|
|
</PropertyGroup>
|
|
</When>
|
|
</Choose>
|
|
<Choose>
|
|
<When Condition="$(KeyOriginatorFile) != '' And $(KeyOriginatorFile) != '*Undefined*'">
|
|
<PropertyGroup>
|
|
<EmbedderKeyFilePath>$(KeyOriginatorFile)</EmbedderKeyFilePath>
|
|
</PropertyGroup>
|
|
</When>
|
|
<When Condition="$(AssemblyOriginatorKeyFile) != '' And $(AssemblyOriginatorKeyFile) != '*Undefined*'">
|
|
<PropertyGroup>
|
|
<EmbedderKeyFilePath>$(AssemblyOriginatorKeyFile)</EmbedderKeyFilePath>
|
|
</PropertyGroup>
|
|
</When>
|
|
<Otherwise>
|
|
<PropertyGroup>
|
|
<EmbedderKeyFilePath></EmbedderKeyFilePath>
|
|
</PropertyGroup>
|
|
</Otherwise>
|
|
</Choose>
|
|
<PropertyGroup>
|
|
<IntermediateDir>$(ProjectDir)$(IntermediateOutputPath)</IntermediateDir>
|
|
<EmbedderSignAssembly Condition="$(EmbedderSignAssembly) == '' Or $(EmbedderSignAssembly) == '*Undefined*'">$(SignAssembly)</EmbedderSignAssembly>
|
|
<EmbedderPath Condition="$(EmbedderPath) == '' Or $(EmbedderPath) == '*Undefined*'">$(MSBuildThisFileDirectory)..\</EmbedderPath>
|
|
</PropertyGroup>
|
|
<UsingTask TaskName="ResourceEmbedder.MsBuild.SatelliteAssemblyEmbedderTask" AssemblyFile="$(EmbedderPath)ResourceEmbedder.MsBuild.dll" />
|
|
<UsingTask TaskName="ResourceEmbedder.MsBuild.SatelliteAssemblyCleanupTask" AssemblyFile="$(EmbedderPath)ResourceEmbedder.MsBuild.dll" />
|
|
<!-- We want to run as soon as the satellite assemblies are generated -->
|
|
<Target AfterTargets="GenerateSatelliteAssemblies" Name="EmbedderTarget" DependsOnTargets="$(EmbedderDependsOnTargets)">
|
|
<ResourceEmbedder.MsBuild.SatelliteAssemblyEmbedderTask AssemblyPath="@(IntermediateAssembly)" KeyFilePath="$(EmbedderKeyFilePath)"
|
|
ProjectDirectory="$(ProjectDir)" TargetPath="$(TargetPath)" SignAssembly="$(EmbedderSignAssembly)" References="@(ReferencePath)"/>
|
|
</Target>
|
|
<!--Cleanup after generating -->
|
|
<Target AfterTargets="AfterBuild" Name="CleanupTarget" DependsOnTargets="$(EmbedderDependsOnTargets)">
|
|
<ResourceEmbedder.MsBuild.SatelliteAssemblyCleanupTask AssemblyPath="@(IntermediateAssembly)" KeyFilePath="$(EmbedderKeyFilePath)"
|
|
ProjectDirectory="$(ProjectDir)" TargetPath="$(TargetPath)" SignAssembly="$(EmbedderSignAssembly)"/>
|
|
</Target>
|
|
<!--Support for ncrunch-->
|
|
<ItemGroup Condition="'$(NCrunch)' == '1'">
|
|
<None Include="$(EmbedderPath)\*.*" />
|
|
</ItemGroup>
|
|
|
|
</Project> |