Make content DLLs be copied via post build events instead

This commit is contained in:
Pieter-Jan Briers
2017-08-06 14:50:03 +02:00
parent b616025b8d
commit 486bb9f0ef
3 changed files with 45 additions and 5 deletions

View File

@@ -18,7 +18,7 @@
This copies all dependencies,
but on the plus side it's automatically located in the right place.
-->
<OutputPath>..\bin\Client\Assemblies\</OutputPath>
<OutputPath>..\bin\Content.Client\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<DebugType>full</DebugType>
<PlatformTarget>x86</PlatformTarget>
@@ -30,7 +30,7 @@
This copies all dependencies,
but on the plus side it's automatically located in the right place.
-->
<OutputPath>..\bin\Client\Assemblies\</OutputPath>
<OutputPath>..\bin\Content.Client\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<Optimize>true</Optimize>
<DebugType>pdbonly</DebugType>
@@ -75,4 +75,24 @@
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Choose>
<When Condition="'$(OS)'=='Windows_NT' Or '$(OS)'=='Windows'">
<PropertyGroup>
<PostBuildEvent>
if not exist "..\Client\Assemblies" (
mkdir ..\Client\Assemblies\
)
copy Content.* ..\Client\Assemblies\
</PostBuildEvent>
</PropertyGroup>
</When>
<Otherwise>
<PropertyGroup>
<PostBuildEvent>
mkdir -p ../Client/Assemblies/
cp Content.* ../Client/Assemblies/
</PostBuildEvent>
</PropertyGroup>
</Otherwise>
</Choose>
</Project>

View File

@@ -18,7 +18,7 @@
This copies all dependencies,
but on the plus side it's automatically located in the right place.
-->
<OutputPath>..\bin\Server\Assemblies\</OutputPath>
<OutputPath>..\bin\Content.Server\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<DebugType>full</DebugType>
<PlatformTarget>x86</PlatformTarget>
@@ -30,7 +30,7 @@
This copies all dependencies,
but on the plus side it's automatically located in the right place.
-->
<OutputPath>..\bin\Server\Assemblies\</OutputPath>
<OutputPath>..\bin\Content.Server\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<Optimize>true</Optimize>
<DebugType>pdbonly</DebugType>
@@ -71,4 +71,24 @@
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Choose>
<When Condition="'$(OS)'=='Windows_NT' Or '$(OS)'=='Windows'">
<PropertyGroup>
<PostBuildEvent>
if not exist "..\Server\Assemblies" (
mkdir ..\Server\Assemblies\
)
copy Content.* ..\Server\Assemblies\
</PostBuildEvent>
</PropertyGroup>
</When>
<Otherwise>
<PropertyGroup>
<PostBuildEvent>
mkdir -p ../Server/Assemblies/
cp Content.* ../Server/Assemblies/
</PostBuildEvent>
</PropertyGroup>
</Otherwise>
</Choose>
</Project>

2
engine

Submodule engine updated: 51b13c47de...6af8422e21