Errors in the main frame types after changing the target structure to .Net Framework 4.0.1

When working with an existing project that has been changed from .Net Framework 4.0 to .Net Framework 4.0.1 (formally, Microsoft.NET Framework 4 Update - Runtime Update (KB2478063) ) in Visual Studio using the project properties, the main types (t .e. intand string) become undefined. What is broken and how do you fix it?

+3
source share
1 answer

In project links, the link to mscorlib appears to be deleted as part of the update mechanism that changes the version of the target environment. Adding a new   <Reference Include="System.Core">4.0.1entry to the project file fixes the problem. This, apparently, needs to be done in a text editor, since the built-in snap-in does not provide explicit control in order to re-enable the link.

+4
source

All Articles