© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•16mo ago•
41 replies
Ruttie

Conflicting System dlls

I have project that has
DisableImplicitFrameworkReferences
DisableImplicitFrameworkReferences
and
NoStandardLib
NoStandardLib
enabled and references custom
mscorlib
mscorlib
and
System.*
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>
    <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
System.dll
and the custom one.
How might I fix this issue?
Using
<ExcludeAssets>runtime</ExcludeAssets>
<ExcludeAssets>runtime</ExcludeAssets>
works, but I need the
MonoMod.exe
MonoMod.exe
created by the
MonoMod
MonoMod
package...
Thanks in advance for any help.
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

NativeAOT multiple Dlls
C#CC# / help
5w ago
❔ IIS Express Modifying DLLs
C#CC# / help
3y ago
❔ Making two dlls interact
C#CC# / help
4y ago
Loading DLLs with same names
C#CC# / help
12mo ago