Used in the project using the ABP framework, the framework is based on. Net, the framework of the core 3.0 originally project can be successful compilation, suddenly one day (do not make any changes) after startup, recompile the project, the inside of the Web project all dependencies are shown small yellow triangle, cause a compiler error cannot compile, (pictured), has been reinstalled..net SDK version 3.0 will not be able to compile, could you tell me how to solve this?
Error message:
Severity Code Description Project File Line Suppression State
Error NETSDK1060 Error reading assets file: Error loading lock file 'D:\Work\Projects\03 ABP Framework\04 Src\01 Demo\AbpMesDemo\src\Acme.BookStore.Web\obj\project.assets.json' : Error reading '' at line 13853 column 24 : Imports contains an invalid framework: '[ "unsupported", "net461", "net462", "net47", "net471", "net472", "net48"]' in 'project.json'. Acme.BookStore.Web C:\Program Files\dotnet\sdk\3.1.100\Sdks\Microsoft.NET.Sdk\targets\Microsoft.PackageDependencyResolution.targets 234
With ask:
VS dependencies inside small yellow triangle exactly is what mean? I read the corresponding files on local and have installed version is consistent, why also has been an error?
CodePudding user response:
Wrapped the nuget Packages first reinstall again, yellow reference missing, visual changed the target framework of the project,CodePudding user response:
Nuget restore itBut foreign nuget occasionally can't restore