mar*_*are 5 nuget .net-core visual-studio-code
在使用Visual Studio Code时,如何将新的基于csproj的项目的Nuget包更新为最新的?
这是我在.csproj文件中的内容:
<PackageReference Include="Microsoft.AspNetCore" Version="1.0.3" />
<PackageReference Include="Microsoft.AspNetCore.Mvc" Version="1.0.2" />
<PackageReference Include="Microsoft.AspNetCore.StaticFiles" Version="1.0.1" />
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="1.0.1" />
<PackageReference Include="Microsoft.VisualStudio.Web.BrowserLink" Version="1.0.0" />
Run Code Online (Sandbox Code Playgroud)
如果我这样做dotnet restore
只会安装指定的软件包版本.
没有dotnet restore update
或没有dotnet nuget update
选择.
所有上述引用的Microsoft.AspNetCore.*
软件包都有更新的版本(1.1.0).
我想更新软件包并自动更新引用,就像在Visual Studio中一样.
目前,VS Code 没有内置的 Nuget Manager 工具。唯一可能的方法是手动编辑.csproj
文件并更新版本。
如果关于 VS Code 扩展,有一个Net Core Project Manager扩展,效果非常好。
归档时间: |
|
查看次数: |
354 次 |
最近记录: |