msbuild

MSBuild via command line with multiple ReferencePath


How do I pass multiple ReferencePath in MSBuild in the command line. I'm currently using this

MSBuild /t:Rebuild "Solution1.sln" /p:ReferencePath="C:\My Library 1\obj\Debug; C:\My Library 2\obj\Debug"

MSBuild is returning an MSB1006 error. Take note that my reference paths have spaces in it.


Solution

  • No matter what I do, I can't seem to make it work using MSBuild. I now use DEVENVE.EXE to compile my solution; it would read my user project settings where the ReferencePath is saved and use that to locate the correct version of the DLL I want to use.