Restore dotnet with upgrade in new csproj / msbuild projects?

How can I actually upgrade new csproj-based Nuget packages to the latest when using Visual Studio Code?

This is what I have in the .csproj file:

<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" /> 

If I do dotnet restore , it will install only the specified versions of the package.

The dotnet restore update or dotnet nuget update .

All Microsoft.AspNetCore.* Packages mentioned above have newer versions (1.1.0).

I would like to update the packages and update these links automatically in the same way as we do in Visual Studio.

+5
source share
1 answer

VS Code currently does not have a built-in Nuget Manager tool. The only possible way is to edit the .csproj file manually and update the versions.

If there is a Net Core Project Manager extension for VS Code extensions, this works very well.

+3
source

Source: https://habr.com/ru/post/1263162/


All Articles