2
Setting
I have a project where my Libraries (other components of the project) are Nuget packages, and whenever there is an update, a new version is generated in Proget.. and all developers have to update Packages manually so that Teamcity for example uses the latest version specified in package.config.
Following is a simplified example of my file Packages.config
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="BibliotecaX" version="2.0.1" targetFramework="net461" />
</packages>
I would like to do it in a way where instead of specifying this version, use the version for example version="2.0.*"
or version="2.*.*"
for when Visualstudio will make Store always get the latest version (only of specific packages) where I would make this configuration.
If anyone has any suggestions.
What version of the nuget?
– Jéf Bueno
Nuget Version: 4.5.1.4879 I am trying to bypass doing in Prebuild Events and calling the command this way: nuget update project.csproj -Id Pacotenuget
– Thiago Loureiro
Tried to leave the version number empty?
– Jéf Bueno
<package id="BibliotecaX" version="" targetFramework="net461" />
– Jéf Bueno
Invalid package version for package id 'Newtonsoft.Json': '10.0. ' tried with space too, it ignores and does not work
– Thiago Loureiro
As far as I know, what you are trying to do does not work, every package has to have its version, it is beyond the final versions (release) has the beta versions, IE, the file has to identify what you need ... !!! I even researched, for free, because I create packages not have it or not found.
– novic
@LINQ did not work, unfortunately
– Thiago Loureiro
@Virgilionovic the way will be to do manually in the prebuild with the commands nuget same and update, ta working out here I am testing, if I manage to successfully put here detailed answer. Thanks for the help
– Thiago Loureiro