2

Recently, I've worked on upgrading all of the projects in our main application to SDK style projects. This was done in order to enable the feature to auto generate a NuGet package for each project on build.

enter image description here

The main problem I'm running into is that the project dependencies for each generated NuGet package are not getting the proper version. For example, when building the project DV.Common.Abstraction.Intefaces, it references DV.Common.Abstraction.Enumerations. The enumerations project is currently in version 1.4.0.0.

enter image description here

But whenever the interfaces project gets built and the NuGet package gets generated it only sets the condition to 1.0.0.

enter image description here

Is there a way to change the generation of this package so it'd set the version condition to always be the latest version of said project?

From all the options I've seen provided by the project settings this feature seems to not exist and anywhere I look online doesn't seem to answer my question. Any way to fix this issue is appreciated since this would save a lot of time for this structure.

3
  • 1
    What is the difference to e.g. DV.Data.DataUnitPool? It seems to pick up that version? Commented Sep 17 at 6:34
  • 1
    it's looking for a specific major version - this should be acceptance as major changes shouldnt be breaking theoretically Commented Sep 20 at 21:16
  • So for DataUnitPool and DVLogger I'm referencing the NuGet package that's already on the feed. We have this change implemented since these projects barely get changed and we cannot do the same everywhere. This is why it is referencing the correct version. Also, it's not just about major versions, because the ObjectPool project is way past 2.0.0 and it still defaults to referencing 1.0.0. Commented Sep 22 at 13:21

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.