C#C
C#14mo ago
Ruttie

Conflicting System dlls

I have project that has DisableImplicitFrameworkReferences and NoStandardLib enabled and references custom mscorlib and System.* dlls.
However, when I add a package like this:
    <PackageReference Include="MonoMod" Version="22.7.31.1">
      <IncludeAssets>all</IncludeAssets>
    </PackageReference>
    <PackageReference Include="MonoMod.RuntimeDetour" Version="25.2.0">
      <IncludeAssets>all</IncludeAssets>
    </PackageReference>
    <PackageReference Include="MonoMod.RuntimeDetour.HookGen" Version="22.7.31.1">
      <IncludeAssets>all</IncludeAssets>
    </PackageReference>

I get a compile error because the compiler could not choose between the default System.dll and the custom one.
How might I fix this issue?
Using <ExcludeAssets>runtime</ExcludeAssets> works, but I need the MonoMod.exe created by the MonoMod package...
Thanks in advance for any help.
Was this page helpful?