Skip to content

Commit

Permalink
Cleanup .Net5 build output (#362)
Browse files Browse the repository at this point in the history
Remove GameServerScripts.dll from build output
Remove satellite resource languages from build
Remove ref folder from build output
Remove unused redundant libraries
  • Loading branch information
NetDwarf authored Nov 7, 2021
1 parent fc8bdf2 commit ab1085c
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 5 deletions.
2 changes: 1 addition & 1 deletion GameServerScripts/GameServerScripts.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<WarningLevel>4</WarningLevel>
<NoWarn>1591</NoWarn>
<TreatWarningsAsErrors>False</TreatWarningsAsErrors>
<OutputPath>..\$(Configuration)\lib\</OutputPath>
<OutputPath>..\build\GameServerScripts\$(Configuration)\lib\</OutputPath>
<NoWin32Manifest>False</NoWin32Manifest>
<CheckForOverflowUnderflow>False</CheckForOverflowUnderflow>
<IntermediateOutputPath>..\build\GameServerScripts\$(Configuration)\obj\</IntermediateOutputPath>
Expand Down
2 changes: 1 addition & 1 deletion Net5/DOLBase/DOLBase.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<AssemblyName>DOLBase</AssemblyName>
<RunPostBuildEvent>OnBuildSuccess</RunPostBuildEvent>
<IntermediateOutputPath>..\build\DOLBase\$(Configuration)\obj\</IntermediateOutputPath>
<OutputPath>..\$(Configuration)\lib\</OutputPath>
<OutputPath>..\build\DOLBase\$(Configuration)\lib\</OutputPath>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
</PropertyGroup>
<PropertyGroup>
Expand Down
2 changes: 2 additions & 0 deletions Net5/DOLConfig/DOLConfig.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
<IntermediateOutputPath>..\build\DOLConfig\$(Configuration)\obj</IntermediateOutputPath>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<EmbeddedResourceUseDependentUponConvention>false</EmbeddedResourceUseDependentUponConvention>
<SatelliteResourceLanguages>none</SatelliteResourceLanguages>
<ProduceReferenceAssembly>false</ProduceReferenceAssembly>
</PropertyGroup>
<PropertyGroup>
<AssemblyTitle>Dawn of Light - DOLConfig</AssemblyTitle>
Expand Down
2 changes: 1 addition & 1 deletion Net5/DOLDatabase/DOLDatabase.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<OutputType>Library</OutputType>
<AssemblyName>DOLDatabase</AssemblyName>
<RunPostBuildEvent>OnOutputUpdated</RunPostBuildEvent>
<OutputPath>..\$(Configuration)\lib\</OutputPath>
<OutputPath>..\build\DOLDatabase\$(Configuration)\lib\</OutputPath>
<IntermediateOutputPath>..\build\DOLDatabase\$(Configuration)\obj\</IntermediateOutputPath>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
</PropertyGroup>
Expand Down
5 changes: 5 additions & 0 deletions Net5/DOLServer/DOLServer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
<OutputPath>..\$(Configuration)\</OutputPath>
<IntermediateOutputPath>..\build\DOLServer\$(Configuration)\obj\</IntermediateOutputPath>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<SatelliteResourceLanguages>none</SatelliteResourceLanguages>
<ProduceReferenceAssembly>false</ProduceReferenceAssembly>
</PropertyGroup>
<PropertyGroup>
<AssemblyTitle>Dawn of Light - DOLServer</AssemblyTitle>
Expand Down Expand Up @@ -49,5 +51,8 @@
<ItemGroup>
<Compile Include="..\..\DOLServer\**\*.cs" />
</ItemGroup>
<Target Name="CreateLibFolder" AfterTargets="Build">
<MakeDir Directories="$(OutDir)lib" />
</Target>
<Import Project="Sdk.targets" Sdk="Microsoft.NET.Sdk" />
</Project>
2 changes: 1 addition & 1 deletion Net5/GameServer/GameServer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<AssemblyName>GameServer</AssemblyName>
<RunPostBuildEvent>OnOutputUpdated</RunPostBuildEvent>
<IntermediateOutputPath>..\build\GameServer\$(Configuration)\obj\</IntermediateOutputPath>
<OutputPath>..\$(Configuration)\lib\</OutputPath>
<OutputPath>..\build\GameServer\$(Configuration)\lib\</OutputPath>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
</PropertyGroup>
<PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion Net5/GameServerScripts/GameServerScripts.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<OutputType>Library</OutputType>
<AssemblyName>GameServerScripts</AssemblyName>
<RunPostBuildEvent>OnOutputUpdated</RunPostBuildEvent>
<OutputPath>..\$(Configuration)\lib\</OutputPath>
<OutputPath>..\build\GameServerScripts\$(Configuration)\lib\</OutputPath>
<IntermediateOutputPath>..\build\GameServerScripts\$(Configuration)\obj\</IntermediateOutputPath>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
</PropertyGroup>
Expand Down
1 change: 1 addition & 0 deletions Net5/Tests/Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
<OutputPath>..\build\Tests\$(Configuration)\lib\</OutputPath>
<IntermediateOutputPath>..\build\Tests\$(Configuration)\obj\</IntermediateOutputPath>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<SatelliteResourceLanguages>none</SatelliteResourceLanguages>
</PropertyGroup>
<PropertyGroup>
<AssemblyTitle>Dawn of Light - Tests</AssemblyTitle>
Expand Down

0 comments on commit ab1085c

Please sign in to comment.