NuGet Cache And Versioning Issues

后端 未结 2 1808
盖世英雄少女心
盖世英雄少女心 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.

提交回复
热议问题