Fix compatibility with msbuild/csc on non-windows.

This commit is contained in:
Paul Chote
2017-05-29 12:10:24 +01:00
committed by Oliver Brakmann
parent 728162e688
commit 3db15beeb9
3 changed files with 12 additions and 12 deletions

View File

@@ -190,17 +190,17 @@
SourceFiles="$(TargetPath)"
DestinationFolder="$(SolutionDir)mods/common/"/>
<!--
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.
csc generates .pdb symbol files (not `.dll.pdb`).
mcs generates .dll.mdb symbol files.
-->
<Copy
SourceFiles="$(TargetDir)$(TargetName).pdb"
DestinationFolder="$(SolutionDir)mods/common/"
Condition="'$(OS)' == 'Windows_NT'"/>
Condition="Exists('$(TargetDir)$(TargetName).pdb')"/>
<Copy
SourceFiles="$(TargetPath).mdb"
DestinationFolder="$(SolutionDir)mods/common/"
Condition="'$(OS)' == 'Unix'"/>
Condition="Exists('$(TargetPath).mdb')"/>
<!-- Uncomment these lines when debugging or adding to this target
<Message Text="DEBUG OS: $(OS)"/>
<Message Text="DEBUG SolutionDir: $(SolutionDir)"/>

View File

@@ -823,17 +823,17 @@
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.
csc generates .pdb symbol files (not `.dll.pdb`).
mcs generates .dll.mdb symbol files.
-->
<Copy
SourceFiles="$(TargetDir)$(TargetName).pdb"
DestinationFolder="$(SolutionDir)mods/common/"
Condition="'$(OS)' == 'Windows_NT'"/>
Condition="Exists('$(TargetDir)$(TargetName).pdb')"/>
<Copy
SourceFiles="$(TargetPath).mdb"
DestinationFolder="$(SolutionDir)mods/common/"
Condition="'$(OS)' == 'Unix'"/>
Condition="Exists('$(TargetPath).mdb')"/>
<!-- Uncomment these lines when debugging or adding to this target
<Message Text="DEBUG OS: $(OS)"/>
<Message Text="DEBUG SolutionDir: $(SolutionDir)"/>

View File

@@ -130,17 +130,17 @@ cd "$(SolutionDir)"</PostBuildEvent>
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.
csc generates .pdb symbol files (not `.dll.pdb`).
mcs generates .dll.mdb symbol files.
-->
<Copy
SourceFiles="$(TargetDir)$(TargetName).pdb"
DestinationFolder="$(SolutionDir)mods/d2k/"
Condition="'$(OS)' == 'Windows_NT'"/>
Condition="Exists('$(TargetDir)$(TargetName).pdb')"/>
<Copy
SourceFiles="$(TargetPath).mdb"
DestinationFolder="$(SolutionDir)mods/d2k/"
Condition="'$(OS)' == 'Unix'"/>
Condition="Exists('$(TargetPath).mdb')"/>
<!-- Uncomment these lines when debugging or adding to this target
<Message Text="DEBUG OS: $(OS)"/>
<Message Text="DEBUG SolutionDir: $(SolutionDir)"/>