Questions tagged [nuget-update]
16 questions
6
votes
3 answers
Constrain PackageReference upgrade version when update-package run
Under .NET's older packages.config system for NuGet, I could constrain the possible versions of a package that are considered when packages are updated by using the allowedVersions attribute on the Package element

Dav Evans
- 4,031
- 7
- 41
- 60
4
votes
1 answer
Updating nuget package and all its dependencies at once
I just created a new .net core with Angular project and there are already some NuGet packages like "Microsoft.AspNetCore.SpaServices.Extensions" with updates available.
When I try to update it there is an error that says that there is a version…

Salvador Cruz
- 45
- 1
- 1
- 7
4
votes
2 answers
Upgrading to Elastic Search NEST 7.0.1 breaks code that checks if an index exists
After upgrading Elastic Search NEST from 7.0.0-alpha2 to 7.0.1, I am no longer able to use the IndexExistsAsync method in Nest.ElasticClient.
According to the documentation, the method is removed and is a breaking change, so I changed the call to…

Milad Ghafoori
- 310
- 2
- 14
3
votes
0 answers
How to run Nuget's "reinstall" command on PowerShell or CMD
I want to package my base assemblies. However I have to reinstall this packages on project when assembly update. Because I don't change version of assembly.
For this I try adding
Update-Package -reinstall
to pre-build event.
But I took "
The…

M Hilmi Koca
- 131
- 3
- 16
3
votes
3 answers
project.json specify exact version of NuGet dependency
When using a packages.configfile to specify NuGet dependencies I'm able to provide the allowedVersions attribute to specify a SemVer string defining the range of versions I want to be able to update to. By using [] I'm currently able to effectively…

Dav Evans
- 4,031
- 7
- 41
- 60
2
votes
2 answers
nuget.exe update with new csproj format
I am trying to update the nuget references of some projects from the command line. These projects use the new format which include PackageReference elements. The command I am using is:
nuget.exe update someproj.csproj
This results in an error:
The…

user653649
- 115
- 1
- 9
2
votes
1 answer
NuGet doesn't update dll references in my project
I have the following structure in my nuspec:

Marnix
- 6,384
- 4
- 43
- 78
1
vote
2 answers
Is it possible to automatically update Nuget packages after a WinForms installation?
Let's say I have a windows forms application with a few Nuget packages that are important and need to be kept up-to date.
Is it somehow possible to update Nuget packages programatically from a non-development environment? With a non-development…

stefan
- 165
- 1
- 15
1
vote
1 answer
Nuget packages versioning/update strategy
maybe someone has a good idea for the following scenario:
I have
prerelease dev packages, like that: packagename.1.2.0.1000-dev.nupkg
and
release packages, like packagename.1.2.0.1.nupkg
My idea was: starting at a higher number range for the dev…

user250773
- 569
- 1
- 8
- 21
1
vote
1 answer
Could not update the nuget package due to the Incompatibility
I could not update the WindowsAzure.Storage NuGet Package. It seems other package that probably depends on it, each time I update that package, I got the same error:
Install failed. Rolling back... Updating 'Microsoft.Data.OData 5.6.2'
to…
user8579173
1
vote
2 answers
nuget command line update doesn't detect all packages.config which need to be updated
We have a build step that installs and updates the nuget packages in a solution on out build server (TeamCity). Recently this has stopped doing the updates correctly. I have investigated this and found that the problem seems to be that the update…

Sam Holder
- 32,535
- 13
- 101
- 181
0
votes
0 answers
Update Nuget Packages from a specific source via command line
I'm trying to write a script that updates certain nugets in a visual studio Solution.
For that I'm using the Nuget CLI (https://learn.microsoft.com/en-us/nuget/reference/nuget-exe-cli-reference#restore)
According to the documentation I cam up with…

Hans Vader
- 183
- 10
0
votes
1 answer
RadioButton Command property not working with xamarin.forms
RadioButton command property not working after updated from Xamarin.Forms 4.7 to Xamarin.Forms 5.0.0.2337. what are the alternative ways to use command in ViewModel not with codebehind.

Dev
- 315
- 2
- 16
0
votes
1 answer
Temporarily disable git from watching file changes
Context:
We have a Visual Studio project that depends on a nuget package (A Visual Studio thing).
We upgrade our project with that nuget package every time we release a new version of that package.
The project is stored in git and we clone the…

Jimmyt1988
- 20,466
- 41
- 133
- 233
0
votes
1 answer
Choosing nuget packages would cause dependency dll hell?
Could using nuget packages cause dependency dll hell?
Example im using two nuget packages A version 1.0.0 and B in my class library
B is also heavily dependent on new feature which is non backward compatible version of A 2.0.0.
In such a case wont…

AllSpark
- 425
- 1
- 4
- 17