Skip to content

Commit

Permalink
Use System XML for standalone builds to avoid strong name validation …
Browse files Browse the repository at this point in the history
…error on Windows

 - Error is something like System.Security.SecurityException: Strong name validation failed
  • Loading branch information
drojf committed Sep 7, 2024
1 parent 3b186f0 commit 6855d85
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Assembly-CSharp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,6 @@
<Reference Include="Antlr3.Runtime">
<HintPath>DLLs\Antlr3.Runtime.dll</HintPath>
</Reference>
<Reference Include="System.Xml">
<HintPath>DLLs\System.Xml.dll</HintPath>
</Reference>
<Compile Include="MOD.Scripts.Core\MODXMLWrapper.cs" />
<Compile Include="MOD.Scripts.AssetManager\MODAssetManager.cs" />
<Compile Include="System.Runtime.Serialization\DataContractAttribute.cs" />
Expand Down Expand Up @@ -67,6 +64,9 @@
<AssemblyName>Assembly-CSharp</AssemblyName>
</PropertyGroup>
<ItemGroup Condition="'$(Configuration)' != 'ScriptCompiler'">
<Reference Include="System.Xml">
<HintPath>DLLs\System.Xml.dll</HintPath>
</Reference>
<Reference Include="UnityEngine">
<HintPath>DLLs\UnityEngine.dll</HintPath>
</Reference>
Expand Down Expand Up @@ -653,7 +653,7 @@
<Optimize>true</Optimize>
</PropertyGroup>
<ItemGroup Condition="'$(Configuration)' == 'ScriptCompiler'">
<!-- Insert DLL or .cs files specific to standalone script compiler here -->
<Reference Include="System.Xml"/>
</ItemGroup>
<!-- End standalone script compiler items -->

Expand Down

0 comments on commit 6855d85

Please sign in to comment.