I am working on a Windows C# .NET 4.5 program that utilizes several NuGet projects to reduce the amount of code I need to write (why reinvent the wheel?). One of these NuGet projects, for whatever reason, has a dependency that overrides one of MSCORLIB
's methods used elsewhere in my program.
ReSharper warns me of the ambiguous reference (and I cannot compile obviously), and I cannot for the life of me figure out how to specify the use of MSCORLIB
's method over this NuGet project dependency. I spent a couple hours googling and reading different things but cannot find a solution.
The part of my program that has the ambiguous reference error does not rely on the NuGet package's dependency in any way, so if I can just implement MSCORLIB
's method in just this spot I will be golden.
Is this even possible? I tried to explicitly add reference to MSCORLIB
to the project with ReSharper's "Use this assembly..." but selecting either one did not work, as well as the References tab in Visual Studio.