I've just created an ASP.NET application with .NET core and when I tried to run it says: Error NETSDK100 file 'C:\Users\mauro\source\repos\WebApplication3\obj\project.assets.json' not found. Run a NuGet package restore to generate this file.
I've run the dotnet restore command and say this:
dotnet : System.AggregateException: One or more errors occurred. (One or more errors occurred. (Cannot create 'C:\ProgramFiles\dotnet\sdk\NuGetFallbackFolder\system.linq.expressions\4.3.0\lib\xamarintvos10' because a file or directory with the same name already exists.)
I also tried reinstalling .net core and visual studio 2019 and it doesn't works. Any Idea?
NuGetFallbackFolder
is normally read only, and NuGet usually only writes topackages
folders, which suggests to me that you have anuget.config
that changesglobalPackagesFolder
, or have a MSBuild propertyRestorePackagesPath
, that points to the fallback folder. – zivkan