dotnet/roslyn

Can't build Roslyn if Roslyn path or VS path starts from "!"

Open

#16,344 opened on Jan 9, 2017

View on GitHub
 (1 comment) (0 reactions) (0 assignees)C# (4,257 forks)batch import
Area-Infrastructurehelp wanted

Repository metrics

Stars
 (20,414 stars)
PR merge metrics
 (Avg merge 6d 17h) (256 merged PRs in 30d)

Description

If VS installed into a directory which name start from "!" (for example "c:!\VS\VS2015") or Rosline cloned into same directory (for example "c:!\roslyn") call of Restore.cmd failed with message:

Restore failed with ERRORLEVEL 1

This is because the Restore.cmd starts with: @setlocal enabledelayedexpansion

This settings remove "!" from path.

Contributor guide