How does NuGet decide whether to use local package cache or not?

后端 未结 2 1430
慢半拍i
慢半拍i 2021-02-05 16:49

Today I\'ve faced with a strange behavior of NuGet when installing a package.

A brief description: as a result of my build script there\'s a NuGet package. I don\'t chan

2条回答
  •  南旧
    南旧 (楼主)
    2021-02-05 17:42

    Yan,

    I push another update of MyPackage - still of version 1.0.0.

    You should not be pushing more than one package with a particular version: packages should be immutable. If you've changed something in the package, increment the build number a.b.C and push a new version of the package.

    The behaviour you experience is a side effect of NuGet expecting to be able to cache a given package version essentially indefinitely.

提交回复
热议问题