Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2015: Could not resolve mscorlib for target framework

I am trying to update a service reference but I'm getting the following error:

Could not resolve mscorlib for target framework '.NETFramework,Version=v4.0'. This can happen if the target framework is not installed or if the framework moniker is incorrectly formatted.

  • .NET v4.0 is installed.
  • Both "Update service Reference" and "Configure Service Reference" give the same error.
like image 218
gizemdemirel Avatar asked Oct 30 '22 08:10

gizemdemirel


1 Answers

i opened the project file in a notepad editor and removed this.

Target Name="EnsureNuGetPackageBuildImports" /> bla bla bla

like image 82
user704401 Avatar answered Nov 15 '22 05:11

user704401