Skip to content

Commit d417ccf

Browse files
committed
Resource copying content -> bin DONE
1 parent 432781f commit d417ccf

File tree

3 files changed

+26
-0
lines changed

3 files changed

+26
-0
lines changed

Content.Shared/Content.Shared.csproj

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,32 @@
5252
<Project>{0529f740-0000-0000-0000-000000000000}</Project>
5353
<Name>SS14.Shared</Name>
5454
</ProjectReference>
55+
<!-- Ensure these get built first to prevent sync issues with resoure copying. -->
56+
<ProjectReference Include="..\engine\SS14.Client\SS14.Client.csproj">
57+
<Name>SS14.Client</Name>
58+
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
59+
</ProjectReference>
60+
<ProjectReference Include="..\engine\SS14.Server\SS14.Server.csproj">
61+
<Name>SS14.Server</Name>
62+
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
63+
</ProjectReference>
64+
</ItemGroup>
65+
<ItemDefinitionGroup>
66+
<Resource>
67+
<Visible>False</Visible>
68+
<Prefix></Prefix>
69+
</Resource>
70+
</ItemDefinitionGroup>
71+
<ItemGroup>
72+
<Resource Include="..\Resources\**\*.*" Exclude="..\Resources\Prototypes\**\*.*;..\Resources\CONTENT_GOES_HERE" />
73+
<Resource Include="..\Resources\Prototypes\**\*.*" Exclude="..\Resources\Prototypes\PROTOTYPES_GO_HERE">
74+
<Prefix>Prototypes\Content\</Prefix>
75+
</Resource>
5576
</ItemGroup>
5677
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
78+
<Target Name="CopyResources">
79+
<Copy SourceFiles="@(Resource)" DestinationFiles="..\bin\Client\Resources\%(Prefix)%(RecursiveDir)%(Filename)%(Extension)" />
80+
<Copy SourceFiles="@(Resource)" DestinationFiles="..\bin\Server\Resources\%(Prefix)%(RecursiveDir)%(Filename)%(Extension)" />
81+
</Target>
82+
<Target Name="AfterBuild" DependsOnTargets="CopyResources" />
5783
</Project>

Resources/CONTENT_GOES_HERE

Whitespace-only changes.

Resources/Prototypes/PROTOTYPES_GO_HERE

Whitespace-only changes.

0 commit comments

Comments
 (0)