mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-07-20 12:33:00 +01:00
Probably fix incremental build issues with GraphQL client
This commit is contained in:
@@ -14,13 +14,9 @@
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Tgstation.Server.Client\Tgstation.Server.Client.csproj" />
|
||||
<ProjectReference Include="..\Tgstation.Server.Host\Tgstation.Server.Host.csproj" PrivateAssets="all" ReferenceOutputAssembly="false" />
|
||||
</ItemGroup>
|
||||
|
||||
<!-- https://github.com/dotnet/msbuild/issues/2661#issuecomment-338808147 -->
|
||||
<Target Name="WorkaroundSdk939" BeforeTargets="ImportGraphQLApiSchema">
|
||||
<MSBuild Projects="..\Tgstation.Server.Host\Tgstation.Server.Host.csproj" />
|
||||
</Target>
|
||||
|
||||
<Target Name="DeleteGeneratedFiles" BeforeTargets="ImportGraphQLApiSchema">
|
||||
<RemoveDir Directories="$(IntermediateOutputPath)berry" />
|
||||
</Target>
|
||||
@@ -30,7 +26,7 @@
|
||||
<Copy SkipUnchangedFiles="true" SourceFiles="../../artifacts/tgs-api.graphql" DestinationFiles="schema.graphql" />
|
||||
</Target>
|
||||
|
||||
<Target Name="FixWarningsInGeneratedSchema" AfterTargets="GenerateGraphQLCode">
|
||||
<Target Name="FixWarningsInGeneratedSchema" AfterTargets="GenerateGraphQLCode" BeforeTargets="CoreCompile">
|
||||
<PropertyGroup>
|
||||
<InputFile>$(IntermediateOutputPath)berry/GraphQLClient.Client.cs</InputFile>
|
||||
<OutputFile>$(IntermediateOutputPath)berry/GraphQLClient.Client.cs</OutputFile>
|
||||
|
||||
Reference in New Issue
Block a user