NullReference
NullReference

Reputation: 4484

Automatically have a shared project update reference based on branch?

We have a shared project that is referenced by multiple solutions. Our problem is that when merge from dev to main or release that shared project reference is still pointing to its dev branch. We'd like to be able to have it automatically change that reference to match the solution branch. For example, if we merged the main solution from dev to main the shared project reference would then point to its main branch. Is there any way to do this automatically?

Our TFS branch setup looks like this.

-Dev

-Main

-Release

Upvotes: 0

Views: 110

Answers (1)

Isaiah4110
Isaiah4110

Reputation: 10080

Use Relative path reference instead of using absolute path. Edit the .csproj file and change the elements from absolute paths to relative paths.

Upvotes: 1

Related Questions