Content.{Client,Server} are now Exes that can be ran.

This commit is contained in:
Pieter-Jan Briers
2020-01-22 20:17:32 +01:00
parent cab3688890
commit 559367ee55
4 changed files with 36 additions and 27 deletions

View File

@@ -8,6 +8,7 @@
<Platforms>x64</Platforms> <Platforms>x64</Platforms>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath> <AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<OutputPath>..\bin\Content.Client\</OutputPath> <OutputPath>..\bin\Content.Client\</OutputPath>
<OutputType Condition="'$(FullRelease)' != 'True'">Exe</OutputType>
</PropertyGroup> </PropertyGroup>
<Import Project="..\RobustToolbox\MSBuild\Robust.DefineConstants.targets" /> <Import Project="..\RobustToolbox\MSBuild\Robust.DefineConstants.targets" />
<ItemGroup> <ItemGroup>
@@ -19,21 +20,12 @@
<PackageReference Include="SharpZipLib" Version="1.2.0" /> <PackageReference Include="SharpZipLib" Version="1.2.0" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\RobustToolbox\Lidgren.Network\Lidgren.Network.csproj"> <ProjectReference Include="..\RobustToolbox\Lidgren.Network\Lidgren.Network.csproj" />
<Private>false</Private> <ProjectReference Include="..\RobustToolbox\Robust.Shared.Maths\Robust.Shared.Maths.csproj" />
</ProjectReference> <ProjectReference Include="..\RobustToolbox\Robust.Shared\Robust.Shared.csproj" />
<ProjectReference Include="..\RobustToolbox\Robust.Shared.Maths\Robust.Shared.Maths.csproj"> <ProjectReference Include="..\RobustToolbox\Robust.Client\Robust.Client.csproj" />
<Private>false</Private>
</ProjectReference>
<ProjectReference Include="..\RobustToolbox\Robust.Shared\Robust.Shared.csproj">
<Private>false</Private>
</ProjectReference>
<ProjectReference Include="..\RobustToolbox\Robust.Client\Robust.Client.csproj">
<Private>false</Private>
</ProjectReference>
<ProjectReference Include="..\Content.Shared\Content.Shared.csproj" /> <ProjectReference Include="..\Content.Shared\Content.Shared.csproj" />
</ItemGroup> </ItemGroup>
<ItemGroup> <Import Project="..\RobustToolbox\MSBuild\Robust.Engine.targets" />
<Folder Include="Animations" /> <Target Name="ContentAfterBuild" DependsOnTargets="ClientAfterBuild" AfterTargets="Build" />
</ItemGroup>
</Project> </Project>

12
Content.Client/Program.cs Normal file
View File

@@ -0,0 +1,12 @@
using Robust.Client;
namespace Content.Client
{
internal static class Program
{
public static void Main(string[] args)
{
ContentStart.Start(args);
}
}
}

View File

@@ -9,6 +9,7 @@
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath> <AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<OutputPath>..\bin\Content.Server\</OutputPath> <OutputPath>..\bin\Content.Server\</OutputPath>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies> <CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
<OutputType Condition="'$(FullRelease)' != 'True'">Exe</OutputType>
</PropertyGroup> </PropertyGroup>
<Import Project="..\RobustToolbox\MSBuild\Robust.DefineConstants.targets" /> <Import Project="..\RobustToolbox\MSBuild\Robust.DefineConstants.targets" />
<ItemGroup> <ItemGroup>
@@ -17,18 +18,10 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\Content.Server.Database\Content.Server.Database.csproj" /> <ProjectReference Include="..\Content.Server.Database\Content.Server.Database.csproj" />
<ProjectReference Include="..\RobustToolbox\Lidgren.Network\Lidgren.Network.csproj"> <ProjectReference Include="..\RobustToolbox\Lidgren.Network\Lidgren.Network.csproj" />
<Private>false</Private> <ProjectReference Include="..\RobustToolbox\Robust.Shared.Maths\Robust.Shared.Maths.csproj" />
</ProjectReference> <ProjectReference Include="..\RobustToolbox\Robust.Shared\Robust.Shared.csproj" />
<ProjectReference Include="..\RobustToolbox\Robust.Shared.Maths\Robust.Shared.Maths.csproj"> <ProjectReference Include="..\RobustToolbox\Robust.Server\Robust.Server.csproj" />
<Private>false</Private>
</ProjectReference>
<ProjectReference Include="..\RobustToolbox\Robust.Shared\Robust.Shared.csproj">
<Private>false</Private>
</ProjectReference>
<ProjectReference Include="..\RobustToolbox\Robust.Server\Robust.Server.csproj">
<Private>false</Private>
</ProjectReference>
<ProjectReference Include="..\Content.Shared\Content.Shared.csproj" /> <ProjectReference Include="..\Content.Shared\Content.Shared.csproj" />
</ItemGroup> </ItemGroup>
</Project> </Project>

12
Content.Server/Program.cs Normal file
View File

@@ -0,0 +1,12 @@
using Robust.Server;
namespace Content.Server
{
internal static class Program
{
public static void Main(string[] args)
{
ContentStart.Start(args);
}
}
}