Msbuild - Multiple Reference Paths via commandline

R

ritesh.noronha

Hi Group,

I have a question regarding the commandline options of msbuild. I am
currently using msbuild to build projects using the existing solution
files. These solution files have references to external dll which have
different paths on each machine. I am currently writing a build script
and passing the specific path to the project file via the /p: switch of
msbuild.

My current build line is:
msbuild test.sln /p:ReferencePath="c:\abc" /p:ReferencePath="c:\rca"

What i have noticed that Reference Path now contains only c:\rca and
not c:\abc. this is causing problems for me since, the external dlls
lie in two different directorys. I am allowed to keep multiple
reference paths via visual studio, but not via the commandline.

Is there any known way by which i can do this.

Constraints:
-I can't change the solution file.
-I can only use the msbuild commandline.

Thanks,
Ritesh
 
A

ajj3085

Has anyone found a solution to this? I'm experiencing it as well and
need to be able to specify multiple reference paths.

Andy
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top