gpt4 book ai didi

visual-studio-2015 - 如何在 ASP.NET Core MVC 中添加 DefinitelyTyped

转载 作者:行者123 更新时间:2023-12-05 07:47:02 26 4
gpt4 key购买 nike

我尝试使用 NuGet,但它不起作用。使用 Bower 或 NPM(我不知道在 VS 2015 中在哪里使用 npm 命令,没有 GUI)也不起作用。我仍在尝试适应新结构等。我猜 NuGet 不工作是正常的?!

NuGet 的输出:

Retrieving package 'jquery.TypeScript.DefinitelyTyped 3.1.1' from 'nuget.org'.
GET https://api.nuget.org/v3-flatcontainer/jquery.typescript.definitelytyped/3.1.1/jquery.typescript.definitelytyped.3.1.1.nupkg
OK https://api.nuget.org/v3-flatcontainer/jquery.typescript.definitelytyped/3.1.1/jquery.typescript.definitelytyped.3.1.1.nupkg 458ms
Installing jquery.TypeScript.DefinitelyTyped 3.1.1.
Installing NuGet package jquery.TypeScript.DefinitelyTyped.3.1.1.
Successfully installed 'jquery.TypeScript.DefinitelyTyped 3.1.1' to NewWebProject
Executing nuget actions took 704,97 ms
========== Finished ==========
Time Elapsed: 00:00:03.0703945
PATH=.\node_modules\.bin;C:\Program Files (x86)\Microsoft Visual Studio 14.0\Web\External;%PATH%;C:\Program Files (x86)\Microsoft Visual Studio 14.0\Web\External\git
C:\Program Files\dotnet\dotnet.exe restore "C:\Users\Marcel\documents\visual studio 2015\Projects\NewWebProject\.vs\restore.dg"
log : Restoring packages for C:\Users\Marcel\documents\visual studio 2015\Projects\NewWebProject\src\NewWebProject\project.json...
log : Restoring packages for tool 'BundlerMinifier.Core' in C:\Users\Marcel\documents\visual studio 2015\Projects\NewWebProject\src\NewWebProject\project.json...
log : Restoring packages for tool 'Microsoft.AspNetCore.Razor.Tools' in C:\Users\Marcel\documents\visual studio 2015\Projects\NewWebProject\src\NewWebProject\project.json...
log : Restoring packages for tool 'Microsoft.AspNetCore.Server.IISIntegration.Tools' in C:\Users\Marcel\documents\visual studio 2015\Projects\NewWebProject\src\NewWebProject\project.json...
log : Restoring packages for tool 'Microsoft.EntityFrameworkCore.Tools' in C:\Users\Grief\documents\visual studio 2015\Projects\NewWebProject\src\NewWebProject\project.json...
log : Restoring packages for tool 'Microsoft.Extensions.SecretManager.Tools' in C:\Users\Grief\documents\visual studio 2015\Projects\NewWebProject\src\NewWebProject\project.json...
log : Restoring packages for tool 'Microsoft.VisualStudio.Web.CodeGeneration.Tools' in C:\Users\Grief\documents\visual studio 2015\Projects\NewWebProject\src\NewWebProject\project.json...
log : Writing lock file to disk. Path: C:\Users\Grief\documents\visual studio 2015\Projects\NewWebProject\src\NewWebProject\project.lock.json
log : C:\Users\Grief\documents\visual studio 2015\Projects\NewWebProject\src\NewWebProject\NewWebProject.xproj
log : Restore completed in 10497ms.
PATH=.\node_modules\.bin;C:\Program Files (x86)\Microsoft Visual Studio 14.0\Web\External;%PATH%;C:\Program Files (x86)\Microsoft Visual Studio 14.0\Web\External\git
C:\Program Files\dotnet\dotnet.exe restore "C:\Users\Marcel\documents\visual studio 2015\Projects\NewWebProject\.vs\restore.dg"
log : Restoring packages for C:\Users\Marcel\documents\visual studio 2015\Projects\NewWebProject\src\NewWebProject\project.json...
log : Restoring packages for tool 'BundlerMinifier.Core' in C:\Users\Marcel\documents\visual studio 2015\Projects\NewWebProject\src\NewWebProject\project.json...
log : Restoring packages for tool 'Microsoft.AspNetCore.Razor.Tools' in C:\Users\Marcel\documents\visual studio 2015\Projects\NewWebProject\src\NewWebProject\project.json...
log : Restoring packages for tool 'Microsoft.AspNetCore.Server.IISIntegration.Tools' in C:\Users\Marcel\documents\visual studio 2015\Projects\NewWebProject\src\NewWebProject\project.json...
log : Restoring packages for tool 'Microsoft.EntityFrameworkCore.Tools' in C:\Users\Marcel\documents\visual studio 2015\Projects\NewWebProject\src\NewWebProject\project.json...
log : Restoring packages for tool 'Microsoft.Extensions.SecretManager.Tools' in C:\Users\Marcel\documents\visual studio 2015\Projects\NewWebProject\src\NewWebProject\project.json...
log : Restoring packages for tool 'Microsoft.VisualStudio.Web.CodeGeneration.Tools' in C:\Users\Marcel\documents\visual studio 2015\Projects\NewWebProject\src\NewWebProject\project.json...
log : Lock file has not changed. Skipping lock file write. Path: C:\Users\Marcel\documents\visual studio 2015\Projects\NewWebProject\src\NewWebProject\project.lock.json
log : C:\Users\Marcel\documents\visual studio 2015\Projects\NewWebProject\src\NewWebProject\NewWebProject.xproj
log : Restore completed in 10674ms.

编辑: New MVC.NET Core Project

最佳答案

NuGet 绝对是正确的选择。

在更新 3 之前的 VS 2015 上,我注意到有时为了使用 NuGet,您必须以管理员模式启动 IDE。

如果它不起作用,请尝试按照报告清理 MEF 缓存 here ,在你的情况下:

  1. 关闭 Visual Studio(确保任务管理器中不存在 devenv.exe)
  2. 删除 %USERPROFILE%\AppData\Local\Microsoft\VisualStudio\14.0\ComponentModelCache 目录
  3. 重新启动 Visual Studio。

关于visual-studio-2015 - 如何在 ASP.NET Core MVC 中添加 DefinitelyTyped,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40194707/

26 4 0
文章推荐: arduino - 在 Arduino 中包含 C 和 C++ 库时出错
文章推荐: h.264 - Media Foundation h264 编码器在动态场景中质量不佳
文章推荐: javascript - Material -UI + React : Why doesn't 's onRowSelection work for Select All?