How to disable mscorlib.dll from visual studio 2013?

I am trying to use a special standard library in visual studio 2013 and cannot understand it. I have no problem compiling on the command line using / nostdlib, although I would like to be able to use intellisense in the IDE. I deleted all the links except my custom corelib, and I am having conflicting code errors due to the presence of two mscorlib options.

VS documentation says:

To set this compiler option in the Visual Studio development environment

  • Open the project Properties for the project.

  • Go to the Create property page.

  • Click the Advanced button.

  • Change the Do not reference mscorlib.dll property .

Although this does not seem to be the case, since this parameter does not exist. Does anyone know how I can disable mscorlib.dll in vs2013?

+6
source share
1 answer

This is an old question, but really, while the user interface option has disappeared (or moved), and the documentation is still misleading to this day, you can still reproduce the effect by adding <NoStdLib>True</NoStdLib> to your .csproj next to another options found in the advanced settings:

 <Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <PropertyGroup> ... <TargetFrameworkVersion>v4.0</TargetFrameworkVersion> <FileAlignment>512</FileAlignment> <NoStdLib>True</NoStdLib> <TargetFrameworkProfile /> </PropertyGroup> ... </Project> 
+5
source

Source: https://habr.com/ru/post/977392/


All Articles