Asp.NetCore 1.1-> 2.0 Migration Error - `System.Object 'not defined or not imported

I have a project with which I was messing around and adding functions, and that was aspnet core 1.1. I port it to 2.0.

I am using Visual Studio for Mac and am updating.

I follow this documentation:

https://docs.microsoft.com/en-us/aspnet/core/migration/1x-to-2x/

The exact error I get is:

The predefined type `System.Object' is not defined or imported
+4
source share
1 answer

I found the answer:

In VS for Mac, this did not allow me to go to the menu to select the target structure for the project. This usually opens by right-clicking on the project and selecting "properties".

VS for Mac did not show this.

iMac , AspNetCore2.0 ( 1.0 1.1 ). . :

https://www.microsoft.com/net/targeting?utm_source=getdotnetsdk&utm_medium=referral

SDK AspNet Core 2.0 MacOS Windows 64-. , .

, , , ( ), . , . , , NUGET 2.0 .

+2

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


All Articles