Skip to content

Commit

Permalink
Try to fix CI unsupported on this platform error
Browse files Browse the repository at this point in the history
  • Loading branch information
drojf committed Sep 8, 2024
1 parent b240048 commit 999eefb
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion Assembly-CSharp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -652,9 +652,18 @@
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
</PropertyGroup>
<ItemGroup Condition="'$(Configuration)' == 'ScriptCompiler'">

<!-- On Windows, I get a strong name validation error when trying to use the DLL that's meant to be used with Unity, so instead use the system's XML -->
<ItemGroup Condition="'$(Configuration)' == 'ScriptCompiler' And '$(OS)' == 'Windows_NT'">
<Reference Include="System.Xml"/>
</ItemGroup>

<!-- On Mono, I get an error because what I want to use is not supported on this platform. However Unix/Mono doesn't check strong name validation, so we can use the normal XML dll -->
<ItemGroup Condition="'$(Configuration)' == 'ScriptCompiler' And '$(OS)' != 'Windows_NT'">
<Reference Include="System.Xml">
<HintPath>DLLs\System.Xml.dll</HintPath>
</Reference>
</ItemGroup>
<!-- End standalone script compiler items -->

<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
Expand Down

0 comments on commit 999eefb

Please sign in to comment.