Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to pass properties between MSBuild projects?

Tags:

msbuild

Is it possible to pass a property from one msbuild project to another? So in one .proj file there is a property with PropertyName="Foo" (for example). Can we access this from another .proj file i.e. use "$(Foo)" in the other msbuild project?

like image 792
Peter Avatar asked Mar 01 '23 22:03

Peter


1 Answers

One way to do it is to pass properties as you call the next script, e.g.

<MSBuild Projects="another.proj" Properties="PropertyName=$(Foo)" />
like image 82
Cristian Libardo Avatar answered Mar 10 '23 10:03

Cristian Libardo