Nuget 在新的基于csproj/msbuild的项目中使用更新进行dotnet还原?
在使用VisualStudio代码时,如何将新的基于csproj的项目的Nuget包更新为最新的 这是我在.csproj文件中拥有的内容:Nuget 在新的基于csproj/msbuild的项目中使用更新进行dotnet还原?,nuget,visual-studio-code,.net-core,Nuget,Visual Studio Code,.net Core,在使用VisualStudio代码时,如何将新的基于csproj的项目的Nuget包更新为最新的 这是我在.csproj文件中拥有的内容: <PackageReference Include="Microsoft.AspNetCore" Version="1.0.3" /> <PackageReference Include="Microsoft.AspNetCore.Mvc" Version="1.0.2" /> <PackageReference Include
<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" />
如果我执行dotnet还原
,它将只安装指定的软件包版本
没有可用的dotnet还原更新
或dotnet numget更新
选项
上面提到的所有Microsoft.AspNetCore.*
软件包都有更新的版本(1.1.0)
我想用与Visual Studio中相同的方法更新包并自动更新引用。目前,VS代码没有内置的Nuget Manager工具。唯一可能的方法是手动编辑
.csproj
文件并更新版本
关于VS代码扩展,有一个扩展非常有效。谢谢,这也是我在.NET Core CLI的GitHub上得到的回应