I am working on a Build step in teamcity where I have to give an alternative Path for MSBuildExtensionsPath. The MS build has to build a solution. In the command line parameters I tried to give the path as followed:
/p:MSBuildExtensionsPath=C:\Program Files (x86)\MSBuild
/p:MSBuildExtensionsPath=C:\Program Files (x86)\MSBuild\
/p:MSBuildExtensionsPath="C:\Program Files (x86)\MSBuild"
/p:MSBuildExtensionsPath="C:\Program Files (x86)\MSBuild\"
None of them seem to work. First it comes
Starting: .NET SDK 5.0.202 "C:\Program Files\dotnet\dotnet.exe" msbuild C:\BuildAgent\work\69c3cf0148257793\WorkProject\DWH.sln /p:Configuration=Release @C:\BuildAgent\temp\agentTmp\1.rsp "/p:MSBuildExtensionsPath="C:\Program Files (x86)\MSBuild\""
Then the error
MSBUILD : error MSB1008: Only one project can be specified. Switch: Files
Somehow the whole "/p:MSBuildExtensionsPath="C:\Program Files (x86)\MSBuild"" is in quoten marked.