Build error of ASP.NET Core - “…current settings, version 2.1.0-preview3-26411-06 would be used instead”

后端 未结 10 1418
南方客
南方客 2021-02-07 20:18

I\'ve created a sample project using dotnet, but I get the following error when building the project:

error : The project was restored using Mic

10条回答
  •  清歌不尽
    2021-02-07 20:44

    The specific error I was getting was

    error : NETSDK1061: The project was restored using Microsoft.NETCore.App version 2.0.5, but with current settings, version 2.1.1 would be used instead.

    I had

    
        
    ```
    

    further down the file. Once I removed this and did a clean, the project built successfully.

提交回复
热议问题