Zholen
Zholen

Reputation: 1790

Link resource file to multiple projects

I have two projects A|B. A is a creator and B is a consumer of what A creates. Each project needs to use a global.txt file which has configurations. Each project has its own solution in TFS. Is there a way to link global.txt from a location in TFS into each project so that if someone edits the global.txt, then rebuilds project A it will contain the updated file without having to update it manually

Upvotes: 1

Views: 54

Answers (1)

PatrickLu-MSFT
PatrickLu-MSFT

Reputation: 51073

When you configure the source repositories in the build definitions separately for two solutions, you could both include the global.txt file mapping.

At the beginning of the build process, the agent downloads files from your remote repository(on TFS) into a local sources directory(build agent).

Then set a CI trigger , the builds will run whenever some changes made to global.txt and checked in.

Upvotes: 1

Related Questions