cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Error building in TFS Build/MSBuild referring to VSSolutionFolder when there is a parenthese in the solution name

Error building in TFS Build/MSBuild referring to VSSolutionFolder when there is a parenthese in the solution name

Summary

When building in TFS Build/MSBuild, an error occurs if there are parentheses in the solution name

Symptoms

When building in TFS Build/MSBuild, an error occurs if there are parentheses in the solution name.

If MySolution(Dev) as solution number the error below occurs:
C:\Program Files (x86)\MSBuild\InstallShield\2015\InstallShield.targets(77,3): error : PathVariable "VSSolutionFolder" path "E:\Projects\VS2015\ISDEV-37615\MySolution%28Dev%29\.\"

Cause

The parenthesis symbol is not being escaped properly.

Steps To Reproduce

  1. Create solution with a BMSI project in VisualStudio.
  2. Name the solution MySolution(Dev) and leave the project's name as the default Setup1.
  3. Add a Feature, Component, and payload file to the project.
  4. Build the solution in Visual Studio and verify it builds without error.
  5. Save and close the solution.
  6. Build the solution using msbuild

Resolution

An issue IOJ-1742125 has been submitted to Engineering.

Workaround

Do not add parentheses to solution name until the bug has been resolved.
Was this article helpful? Yes No
No ratings
Version history
Last update:
‎Jul 18, 2018 12:21 AM
Updated by: