vs net core 项目异常解决办法-project.assets.json‘ not found. Run a NuGet package restore to generate this fi

Posted 面朝大海,春暖华开

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了vs net core 项目异常解决办法-project.assets.json‘ not found. Run a NuGet package restore to generate this fi相关的知识,希望对你有一定的参考价值。

vs net core 项目异常解决办法-project.assets.json\' not found. Run a NuGet package restore to generate this file

 

Error occurred while restoring NuGet packages: The local source \'C:\\Users\\think\\Downloads\' doesn\'t exist.

1>------ Build started: Project: TensorFlow.Binding, Configuration: Debug Any CPU ------

2>------ Build started: Project: Benchmark, Configuration: Debug Any CPU ------

2>C:\\Program Files\\dotnet\\sdk\\2.2.207\\Sdks\\Microsoft.NET.Sdk\\targets\\Microsoft.PackageDependencyResolution.targets(208,5): error NETSDK1004: Assets file \'D:\\TensorFlow.NET20191228\\TensorFlow.NET\\src\\TensorFlowNet.Benchmarks\\obj\\project.assets.json\' not found. Run a NuGet package restore to generate this file.

solution steps as follows:

 

PM> dotnet restore

C:\\Program Files\\dotnet\\sdk\\3.1.100\\NuGet.targets(123,5): error : 本地源"C:\\Users\\think\\Downloads"不存在。 [D:\\TensorFlow.NET20191228\\TensorFlow.NET\\TensorFlow.NET.sln]

PM>

 

main menu/build/build solution

========== Build: 3 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========

 

以上是关于vs net core 项目异常解决办法-project.assets.json‘ not found. Run a NuGet package restore to generate this fi的主要内容,如果未能解决你的问题,请参考以下文章

Angular 和 .Net Core 项目 VS 2022:发生未处理的异常:项目 'Leon\AppData\Roaming\ASP.NET\https\<projectName>.p

.Net-Core Proj - MSBuild 无法复制到输出文件夹

.net core 日常学习第一篇

如何在 Visual Studio 2017 Web Proj ASP.NET Core 2.0 中禁用 Https

请问如何使用vscode打开.Net core项目?

VS工程中的各种文(工程文件异常的解决办法)