NuGet Cache And Versioning Issues

后端 未结 2 1809
盖世英雄少女心
盖世英雄少女心 2021-01-15 01:10

I\'m having issues with NuGet prerelease packages and was wondering what others had done in this situation. NuGet functionality seems completely different, and frankly, stra

相关标签:
2条回答
  • 2021-01-15 01:20

    WARNING: Out of Date

    As of 2018, this answer is out of date - see my other answer for updated information.

    No Nuget Equivalent of maven SNAPSHOTs

    NuGet doesn't really support SNAPSHOT dependencies like Maven does, although there is an open issue to implement something similar and a discussion about such functionality.

    A possibility suggested was to write a script to:

    • Generate a new Foo package with a different version
    • Update Bar to reference the latest version of Foo

    An Alternative Approach

    Alternatively when I work on my own projects, I always build and reference Foo from source. Then, once Foo project becomes stable enough that I don't update it much anymore, I then start stop referencing Foo via source and instead build it and reference as a nuget package.

    0 讨论(0)
  • 2021-01-15 01:30

    If you use PackageReference elements inside of the new csproj file format, you can now using floating versions.

    For builds from Visual Studio, you'll need to explicitly rebuild to pickup the changes. For non-Visual Studio builds, you'll need to -force updates as noted in an issue discussing open versions and updates.

    0 讨论(0)
提交回复
热议问题