Merge pull request #11973 from Phrohdoh/csproj-afterbuild-targets
Fix AfterBuild tasks in csprojs
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -21,6 +21,7 @@ _ReSharper.*/
|
|||||||
# binaries
|
# binaries
|
||||||
mods/*/*.dll
|
mods/*/*.dll
|
||||||
mods/*/*.mdb
|
mods/*/*.mdb
|
||||||
|
mods/*/*.pdb
|
||||||
/*.dll
|
/*.dll
|
||||||
/*.dll.config
|
/*.dll.config
|
||||||
/*.so
|
/*.so
|
||||||
|
|||||||
@@ -36,7 +36,7 @@
|
|||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
|
||||||
<DebugSymbols>true</DebugSymbols>
|
<DebugSymbols>true</DebugSymbols>
|
||||||
<DebugType>full</DebugType>
|
<DebugType>full</DebugType>
|
||||||
<OutputPath>..\</OutputPath>
|
<OutputPath>bin\Debug</OutputPath>
|
||||||
<DefineConstants>TRACE;DEBUG</DefineConstants>
|
<DefineConstants>TRACE;DEBUG</DefineConstants>
|
||||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||||
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
@@ -45,7 +45,7 @@
|
|||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
|
||||||
<DebugSymbols>true</DebugSymbols>
|
<DebugSymbols>true</DebugSymbols>
|
||||||
<OutputPath>..\</OutputPath>
|
<OutputPath>bin\Release</OutputPath>
|
||||||
<DefineConstants>TRACE</DefineConstants>
|
<DefineConstants>TRACE</DefineConstants>
|
||||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||||
<DebugType>pdbonly</DebugType>
|
<DebugType>pdbonly</DebugType>
|
||||||
@@ -339,12 +339,28 @@
|
|||||||
<Content Include="OpenRA.ico" />
|
<Content Include="OpenRA.ico" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
|
||||||
Other similar extension points exist, see Microsoft.Common.targets.
|
|
||||||
<Target Name="BeforeBuild">
|
|
||||||
</Target>
|
|
||||||
<Target Name="AfterBuild">
|
<Target Name="AfterBuild">
|
||||||
</Target>
|
<Copy
|
||||||
|
SourceFiles="$(TargetPath)"
|
||||||
|
DestinationFolder="$(SolutionDir)"/>
|
||||||
|
<!--
|
||||||
|
We need to copy OpenRA.Game.pdb (not `.dll.pdb`). This is only necessary on Windows.
|
||||||
|
Mono outputs a `.dll.mdb` so we can just append `.mdb` directly.
|
||||||
-->
|
-->
|
||||||
<ItemGroup />
|
<Copy
|
||||||
|
SourceFiles="$(TargetDir)$(TargetName).pdb"
|
||||||
|
DestinationFolder="$(SolutionDir)"
|
||||||
|
Condition="'$(OS)' == 'Windows_NT'"/>
|
||||||
|
<Copy
|
||||||
|
SourceFiles="$(TargetPath).mdb"
|
||||||
|
DestinationFolder="$(SolutionDir)"
|
||||||
|
Condition="'$(OS)' == 'Unix'"/>
|
||||||
|
<!-- Uncomment these lines when debugging or adding to this target
|
||||||
|
<Message Text="DEBUG OS: $(OS)"/>
|
||||||
|
<Message Text="DEBUG SolutionDir: $(SolutionDir)"/>
|
||||||
|
<Message Text="DEBUG TargetPath: $(TargetPath)"/>
|
||||||
|
<Message Text="DEBUG TargetDir: $(TargetDir)"/>
|
||||||
|
<Message Text="DEBUG TargetName: $(TargetName)"/>
|
||||||
|
-->
|
||||||
|
</Target>
|
||||||
</Project>
|
</Project>
|
||||||
@@ -39,12 +39,6 @@
|
|||||||
<PlatformTarget>x86</PlatformTarget>
|
<PlatformTarget>x86</PlatformTarget>
|
||||||
<ErrorReport>prompt</ErrorReport>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
<OutputPath>bin\Debug\</OutputPath>
|
<OutputPath>bin\Debug\</OutputPath>
|
||||||
<CustomCommands>
|
|
||||||
<CustomCommands>
|
|
||||||
<Command type="AfterBuild" command="cp ${TargetFile} ../mods/cnc" workingdir="${ProjectDir}" />
|
|
||||||
<Command type="AfterBuild" command="cp ${TargetFile}.mdb ../mods/cnc" workingdir="${ProjectDir}" />
|
|
||||||
</CustomCommands>
|
|
||||||
</CustomCommands>
|
|
||||||
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
@@ -58,12 +52,6 @@
|
|||||||
<ErrorReport>prompt</ErrorReport>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
<Optimize>true</Optimize>
|
<Optimize>true</Optimize>
|
||||||
<CustomCommands>
|
|
||||||
<CustomCommands>
|
|
||||||
<Command type="AfterBuild" command="cp ${TargetFile} ../mods/cnc" workingdir="${ProjectDir}" />
|
|
||||||
<Command type="AfterBuild" command="cp ${TargetFile}.mdb ../mods/cnc" workingdir="${ProjectDir}" />
|
|
||||||
</CustomCommands>
|
|
||||||
</CustomCommands>
|
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Reference Include="System" />
|
<Reference Include="System" />
|
||||||
@@ -119,16 +107,29 @@
|
|||||||
</BootstrapperPackage>
|
</BootstrapperPackage>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
|
||||||
Other similar extension points exist, see Microsoft.Common.targets.
|
|
||||||
<Target Name="BeforeBuild">
|
|
||||||
</Target>
|
|
||||||
<Target Name="AfterBuild">
|
<Target Name="AfterBuild">
|
||||||
</Target>
|
<MakeDir Directories="$(SolutionDir)mods/cnc/"/>
|
||||||
|
<Copy
|
||||||
|
SourceFiles="$(TargetPath)"
|
||||||
|
DestinationFolder="$(SolutionDir)mods/cnc/"/>
|
||||||
|
<!--
|
||||||
|
We need to copy OpenRA.Mods.Cnc.pdb (not `.dll.pdb`). This is only necessary on Windows.
|
||||||
|
Mono outputs a `.dll.mdb` so we can just append `.mdb` directly.
|
||||||
-->
|
-->
|
||||||
<PropertyGroup>
|
<Copy
|
||||||
<PostBuildEvent>mkdir "$(SolutionDir)mods/cnc/"
|
SourceFiles="$(TargetDir)$(TargetName).pdb"
|
||||||
copy "$(TargetPath)" "$(SolutionDir)mods/cnc/"
|
DestinationFolder="$(SolutionDir)mods/cnc/"
|
||||||
cd "$(SolutionDir)"</PostBuildEvent>
|
Condition="'$(OS)' == 'Windows_NT'"/>
|
||||||
</PropertyGroup>
|
<Copy
|
||||||
|
SourceFiles="$(TargetPath).mdb"
|
||||||
|
DestinationFolder="$(SolutionDir)mods/cnc/"
|
||||||
|
Condition="'$(OS)' == 'Unix'"/>
|
||||||
|
<!-- Uncomment these lines when debugging or adding to this target
|
||||||
|
<Message Text="DEBUG OS: $(OS)"/>
|
||||||
|
<Message Text="DEBUG SolutionDir: $(SolutionDir)"/>
|
||||||
|
<Message Text="DEBUG TargetPath: $(TargetPath)"/>
|
||||||
|
<Message Text="DEBUG TargetDir: $(TargetDir)"/>
|
||||||
|
<Message Text="DEBUG TargetName: $(TargetName)"/>
|
||||||
|
-->
|
||||||
|
</Target>
|
||||||
</Project>
|
</Project>
|
||||||
@@ -24,12 +24,6 @@
|
|||||||
<PlatformTarget>x86</PlatformTarget>
|
<PlatformTarget>x86</PlatformTarget>
|
||||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||||
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
<CustomCommands>
|
|
||||||
<CustomCommands>
|
|
||||||
<Command type="AfterBuild" command="cp ${TargetFile} ../mods/common" workingdir="${ProjectDir}" />
|
|
||||||
<Command type="AfterBuild" command="cp ${TargetFile}.mdb ../mods/common" workingdir="${ProjectDir}" />
|
|
||||||
</CustomCommands>
|
|
||||||
</CustomCommands>
|
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
|
||||||
<DebugSymbols>true</DebugSymbols>
|
<DebugSymbols>true</DebugSymbols>
|
||||||
@@ -41,12 +35,6 @@
|
|||||||
<ErrorReport>prompt</ErrorReport>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
<Optimize>true</Optimize>
|
<Optimize>true</Optimize>
|
||||||
<CustomCommands>
|
|
||||||
<CustomCommands>
|
|
||||||
<Command type="AfterBuild" command="cp ${TargetFile} ../mods/common" workingdir="${ProjectDir}" />
|
|
||||||
<Command type="AfterBuild" command="cp ${TargetFile}.mdb ../mods/common" workingdir="${ProjectDir}" />
|
|
||||||
</CustomCommands>
|
|
||||||
</CustomCommands>
|
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Reference Include="FuzzyLogicLibrary">
|
<Reference Include="FuzzyLogicLibrary">
|
||||||
@@ -787,16 +775,29 @@
|
|||||||
<Compile Include="Traits\AutoCarryall.cs" />
|
<Compile Include="Traits\AutoCarryall.cs" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||||
<PropertyGroup>
|
|
||||||
<PostBuildEvent>mkdir "$(SolutionDir)mods/common/"
|
|
||||||
copy "$(TargetPath)" "$(SolutionDir)mods/common/"
|
|
||||||
cd "$(SolutionDir)"</PostBuildEvent>
|
|
||||||
</PropertyGroup>
|
|
||||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
|
||||||
Other similar extension points exist, see Microsoft.Common.targets.
|
|
||||||
<Target Name="BeforeBuild">
|
|
||||||
</Target>
|
|
||||||
<Target Name="AfterBuild">
|
<Target Name="AfterBuild">
|
||||||
</Target>
|
<MakeDir Directories="$(SolutionDir)mods/common/"/>
|
||||||
|
<Copy
|
||||||
|
SourceFiles="$(TargetPath)"
|
||||||
|
DestinationFolder="$(SolutionDir)mods/common/"/>
|
||||||
|
<!--
|
||||||
|
We need to copy OpenRA.Mods.Common.pdb (not `.dll.pdb`). This is only necessary on Windows.
|
||||||
|
Mono outputs a `.dll.mdb` so we can just append `.mdb` directly.
|
||||||
-->
|
-->
|
||||||
|
<Copy
|
||||||
|
SourceFiles="$(TargetDir)$(TargetName).pdb"
|
||||||
|
DestinationFolder="$(SolutionDir)mods/common/"
|
||||||
|
Condition="'$(OS)' == 'Windows_NT'"/>
|
||||||
|
<Copy
|
||||||
|
SourceFiles="$(TargetPath).mdb"
|
||||||
|
DestinationFolder="$(SolutionDir)mods/common/"
|
||||||
|
Condition="'$(OS)' == 'Unix'"/>
|
||||||
|
<!-- Uncomment these lines when debugging or adding to this target
|
||||||
|
<Message Text="DEBUG OS: $(OS)"/>
|
||||||
|
<Message Text="DEBUG SolutionDir: $(SolutionDir)"/>
|
||||||
|
<Message Text="DEBUG TargetPath: $(TargetPath)"/>
|
||||||
|
<Message Text="DEBUG TargetDir: $(TargetDir)"/>
|
||||||
|
<Message Text="DEBUG TargetName: $(TargetName)"/>
|
||||||
|
-->
|
||||||
|
</Target>
|
||||||
</Project>
|
</Project>
|
||||||
@@ -39,12 +39,6 @@
|
|||||||
<PlatformTarget>x86</PlatformTarget>
|
<PlatformTarget>x86</PlatformTarget>
|
||||||
<ErrorReport>prompt</ErrorReport>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
<OutputPath>bin\Debug\</OutputPath>
|
<OutputPath>bin\Debug\</OutputPath>
|
||||||
<CustomCommands>
|
|
||||||
<CustomCommands>
|
|
||||||
<Command type="AfterBuild" command="cp ${TargetFile} ../mods/d2k" workingdir="${ProjectDir}" />
|
|
||||||
<Command type="AfterBuild" command="cp ${TargetFile}.mdb ../mods/d2k" workingdir="${ProjectDir}" />
|
|
||||||
</CustomCommands>
|
|
||||||
</CustomCommands>
|
|
||||||
<DefineConstants>TRACE;DEBUG;</DefineConstants>
|
<DefineConstants>TRACE;DEBUG;</DefineConstants>
|
||||||
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||||
@@ -59,12 +53,6 @@
|
|||||||
<ErrorReport>prompt</ErrorReport>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
<Optimize>true</Optimize>
|
<Optimize>true</Optimize>
|
||||||
<CustomCommands>
|
|
||||||
<CustomCommands>
|
|
||||||
<Command type="AfterBuild" command="cp ${TargetFile} ../mods/d2k" workingdir="${ProjectDir}" />
|
|
||||||
<Command type="AfterBuild" command="cp ${TargetFile}.mdb ../mods/d2k" workingdir="${ProjectDir}" />
|
|
||||||
</CustomCommands>
|
|
||||||
</CustomCommands>
|
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Reference Include="System" />
|
<Reference Include="System" />
|
||||||
@@ -101,7 +89,6 @@
|
|||||||
<Compile Include="Traits\World\D2kEditorResourceLayer.cs" />
|
<Compile Include="Traits\World\D2kEditorResourceLayer.cs" />
|
||||||
<Compile Include="Lint\CheckImportActors.cs" />
|
<Compile Include="Lint\CheckImportActors.cs" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<PostBuildEvent>mkdir "$(SolutionDir)mods/d2k/"
|
<PostBuildEvent>mkdir "$(SolutionDir)mods/d2k/"
|
||||||
copy "$(TargetPath)" "$(SolutionDir)mods/d2k/"
|
copy "$(TargetPath)" "$(SolutionDir)mods/d2k/"
|
||||||
@@ -136,6 +123,30 @@ cd "$(SolutionDir)"</PostBuildEvent>
|
|||||||
<Install>true</Install>
|
<Install>true</Install>
|
||||||
</BootstrapperPackage>
|
</BootstrapperPackage>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup />
|
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||||
<ItemGroup />
|
<Target Name="AfterBuild">
|
||||||
|
<MakeDir Directories="$(SolutionDir)mods/d2k/"/>
|
||||||
|
<Copy
|
||||||
|
SourceFiles="$(TargetPath)"
|
||||||
|
DestinationFolder="$(SolutionDir)mods/d2k/"/>
|
||||||
|
<!--
|
||||||
|
We need to copy OpenRA.Mods.D2k.pdb (not `.dll.pdb`). This is only necessary on Windows.
|
||||||
|
Mono outputs a `.dll.mdb` so we can just append `.mdb` directly.
|
||||||
|
-->
|
||||||
|
<Copy
|
||||||
|
SourceFiles="$(TargetDir)$(TargetName).pdb"
|
||||||
|
DestinationFolder="$(SolutionDir)mods/d2k/"
|
||||||
|
Condition="'$(OS)' == 'Windows_NT'"/>
|
||||||
|
<Copy
|
||||||
|
SourceFiles="$(TargetPath).mdb"
|
||||||
|
DestinationFolder="$(SolutionDir)mods/d2k/"
|
||||||
|
Condition="'$(OS)' == 'Unix'"/>
|
||||||
|
<!-- Uncomment these lines when debugging or adding to this target
|
||||||
|
<Message Text="DEBUG OS: $(OS)"/>
|
||||||
|
<Message Text="DEBUG SolutionDir: $(SolutionDir)"/>
|
||||||
|
<Message Text="DEBUG TargetPath: $(TargetPath)"/>
|
||||||
|
<Message Text="DEBUG TargetDir: $(TargetDir)"/>
|
||||||
|
<Message Text="DEBUG TargetName: $(TargetName)"/>
|
||||||
|
-->
|
||||||
|
</Target>
|
||||||
</Project>
|
</Project>
|
||||||
@@ -39,12 +39,6 @@
|
|||||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||||
<PlatformTarget>x86</PlatformTarget>
|
<PlatformTarget>x86</PlatformTarget>
|
||||||
<ErrorReport>prompt</ErrorReport>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
<CustomCommands>
|
|
||||||
<CustomCommands>
|
|
||||||
<Command type="AfterBuild" command="cp ${TargetFile} ../mods/ra" workingdir="${ProjectDir}" />
|
|
||||||
<Command type="AfterBuild" command="cp ${TargetFile}.mdb ../mods/ra" workingdir="${ProjectDir}" />
|
|
||||||
</CustomCommands>
|
|
||||||
</CustomCommands>
|
|
||||||
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
@@ -58,12 +52,6 @@
|
|||||||
<ErrorReport>prompt</ErrorReport>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
<Optimize>true</Optimize>
|
<Optimize>true</Optimize>
|
||||||
<CustomCommands>
|
|
||||||
<CustomCommands>
|
|
||||||
<Command type="AfterBuild" command="cp ${TargetFile} ../mods/ra" workingdir="${ProjectDir}" />
|
|
||||||
<Command type="AfterBuild" command="cp ${TargetFile}.mdb ../mods/ra" workingdir="${ProjectDir}" />
|
|
||||||
</CustomCommands>
|
|
||||||
</CustomCommands>
|
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Reference Include="System" />
|
<Reference Include="System" />
|
||||||
@@ -148,16 +136,29 @@
|
|||||||
</BootstrapperPackage>
|
</BootstrapperPackage>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
|
||||||
Other similar extension points exist, see Microsoft.Common.targets.
|
|
||||||
<Target Name="BeforeBuild">
|
|
||||||
</Target>
|
|
||||||
<Target Name="AfterBuild">
|
<Target Name="AfterBuild">
|
||||||
</Target>
|
<MakeDir Directories="$(SolutionDir)mods/ra/"/>
|
||||||
|
<Copy
|
||||||
|
SourceFiles="$(TargetPath)"
|
||||||
|
DestinationFolder="$(SolutionDir)mods/ra/"/>
|
||||||
|
<!--
|
||||||
|
We need to copy OpenRA.Mods.RA.pdb (not `.dll.pdb`). This is only necessary on Windows.
|
||||||
|
Mono outputs a `.dll.mdb` so we can just append `.mdb` directly.
|
||||||
-->
|
-->
|
||||||
<PropertyGroup>
|
<Copy
|
||||||
<PostBuildEvent>mkdir "$(SolutionDir)mods/ra/"
|
SourceFiles="$(TargetDir)$(TargetName).pdb"
|
||||||
copy "$(TargetPath)" "$(SolutionDir)mods/ra/"
|
DestinationFolder="$(SolutionDir)mods/ra/"
|
||||||
cd "$(SolutionDir)"</PostBuildEvent>
|
Condition="'$(OS)' == 'Windows_NT'"/>
|
||||||
</PropertyGroup>
|
<Copy
|
||||||
|
SourceFiles="$(TargetPath).mdb"
|
||||||
|
DestinationFolder="$(SolutionDir)mods/ra/"
|
||||||
|
Condition="'$(OS)' == 'Unix'"/>
|
||||||
|
<!-- Uncomment these lines when debugging or adding to this target
|
||||||
|
<Message Text="DEBUG OS: $(OS)"/>
|
||||||
|
<Message Text="DEBUG SolutionDir: $(SolutionDir)"/>
|
||||||
|
<Message Text="DEBUG TargetPath: $(TargetPath)"/>
|
||||||
|
<Message Text="DEBUG TargetDir: $(TargetDir)"/>
|
||||||
|
<Message Text="DEBUG TargetName: $(TargetName)"/>
|
||||||
|
-->
|
||||||
|
</Target>
|
||||||
</Project>
|
</Project>
|
||||||
@@ -17,12 +17,6 @@
|
|||||||
<DefineConstants>TRACE;DEBUG</DefineConstants>
|
<DefineConstants>TRACE;DEBUG</DefineConstants>
|
||||||
<PlatformTarget>x86</PlatformTarget>
|
<PlatformTarget>x86</PlatformTarget>
|
||||||
<ErrorReport>prompt</ErrorReport>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
<CustomCommands>
|
|
||||||
<CustomCommands>
|
|
||||||
<Command type="AfterBuild" command="cp ${TargetFile} ../mods/ts" workingdir="${ProjectDir}" />
|
|
||||||
<Command type="AfterBuild" command="cp ${TargetFile}.mdb ../mods/ts" workingdir="${ProjectDir}" />
|
|
||||||
</CustomCommands>
|
|
||||||
</CustomCommands>
|
|
||||||
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
<DebugType>full</DebugType>
|
<DebugType>full</DebugType>
|
||||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||||
@@ -37,12 +31,6 @@
|
|||||||
<ErrorReport>prompt</ErrorReport>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
<Optimize>true</Optimize>
|
<Optimize>true</Optimize>
|
||||||
<CustomCommands>
|
|
||||||
<CustomCommands>
|
|
||||||
<Command type="AfterBuild" command="cp ${TargetFile} ../mods/ts" workingdir="${ProjectDir}" />
|
|
||||||
<Command type="AfterBuild" command="cp ${TargetFile}.mdb ../mods/ts" workingdir="${ProjectDir}" />
|
|
||||||
</CustomCommands>
|
|
||||||
</CustomCommands>
|
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Reference Include="System" />
|
<Reference Include="System" />
|
||||||
@@ -53,7 +41,6 @@
|
|||||||
<Private>False</Private>
|
<Private>False</Private>
|
||||||
</Reference>
|
</Reference>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\OpenRA.Game\OpenRA.Game.csproj">
|
<ProjectReference Include="..\OpenRA.Game\OpenRA.Game.csproj">
|
||||||
<Project>{0DFB103F-2962-400F-8C6D-E2C28CCBA633}</Project>
|
<Project>{0DFB103F-2962-400F-8C6D-E2C28CCBA633}</Project>
|
||||||
@@ -84,16 +71,30 @@
|
|||||||
<Compile Include="UtilityCommands\LegacyRulesImporter.cs" />
|
<Compile Include="UtilityCommands\LegacyRulesImporter.cs" />
|
||||||
<Compile Include="UtilityCommands\LegacySequenceImporter.cs" />
|
<Compile Include="UtilityCommands\LegacySequenceImporter.cs" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||||
Other similar extension points exist, see Microsoft.Common.targets.
|
|
||||||
<Target Name="BeforeBuild">
|
|
||||||
</Target>
|
|
||||||
<Target Name="AfterBuild">
|
<Target Name="AfterBuild">
|
||||||
</Target>
|
<MakeDir Directories="$(SolutionDir)mods/ts/"/>
|
||||||
|
<Copy
|
||||||
|
SourceFiles="$(TargetPath)"
|
||||||
|
DestinationFolder="$(SolutionDir)mods/ts/"/>
|
||||||
|
<!--
|
||||||
|
We need to copy OpenRA.Mods.TS.pdb (not `.dll.pdb`). This is only necessary on Windows.
|
||||||
|
Mono outputs a `.dll.mdb` so we can just append `.mdb` directly.
|
||||||
-->
|
-->
|
||||||
<PropertyGroup>
|
<Copy
|
||||||
<PostBuildEvent>mkdir "$(SolutionDir)mods/ts/"
|
SourceFiles="$(TargetDir)$(TargetName).pdb"
|
||||||
copy "$(TargetPath)" "$(SolutionDir)mods/ts/"
|
DestinationFolder="$(SolutionDir)mods/ts/"
|
||||||
cd "$(SolutionDir)"</PostBuildEvent>
|
Condition="'$(OS)' == 'Windows_NT'"/>
|
||||||
</PropertyGroup>
|
<Copy
|
||||||
|
SourceFiles="$(TargetPath).mdb"
|
||||||
|
DestinationFolder="$(SolutionDir)mods/ts/"
|
||||||
|
Condition="'$(OS)' == 'Unix'"/>
|
||||||
|
<!-- Uncomment these lines when debugging or adding to this target
|
||||||
|
<Message Text="DEBUG OS: $(OS)"/>
|
||||||
|
<Message Text="DEBUG SolutionDir: $(SolutionDir)"/>
|
||||||
|
<Message Text="DEBUG TargetPath: $(TargetPath)"/>
|
||||||
|
<Message Text="DEBUG TargetDir: $(TargetDir)"/>
|
||||||
|
<Message Text="DEBUG TargetName: $(TargetName)"/>
|
||||||
|
-->
|
||||||
|
</Target>
|
||||||
</Project>
|
</Project>
|
||||||
2
make.ps1
2
make.ps1
@@ -80,6 +80,8 @@ elseif ($command -eq "clean")
|
|||||||
rm *.dll
|
rm *.dll
|
||||||
rm *.dll.config
|
rm *.dll.config
|
||||||
rm mods/*/*.dll
|
rm mods/*/*.dll
|
||||||
|
rm *.pdb
|
||||||
|
rm mods/*/*.pdb
|
||||||
if (Test-Path thirdparty/download/)
|
if (Test-Path thirdparty/download/)
|
||||||
{
|
{
|
||||||
rmdir thirdparty/download -Recurse -Force
|
rmdir thirdparty/download -Recurse -Force
|
||||||
|
|||||||
Reference in New Issue
Block a user