dotnet build with compilationOptions.xmlDoc = true fails with CS2001 error
See original GitHub issueSteps to reproduce
git clone https://github.com/aspnet/dotnet-watch git branch dev cd src\Microsoft.DotNet.Watcher.Core dotnet restore dotnet build
Expected behavior
Compiling Microsoft.DotNet.Watcher.Core for .NETStandard,Version=v1.5
Compilation succeeded. 0 Warning(s) 0 Error(s)
Time elapsed 00:00:02.7261664
Actual behavior
Compiling Microsoft.DotNet.Watcher.Core for .NETStandard,Version=v1.5 C:\Program Files (x86)\dotnet\dotnet.exe compile-csc @F:\Projects\Open Source\dotnet-watch\src\Microsoft.DotNet.Watcher.Core\obj\Debug\netstandard1.5\dotnet-compile.rsp returned Exit Code 1 F:\Projects\Open Source\dotnet-watch\src\Microsoft.DotNet.Watcher.Core\error CS2001: Source file ‘F:\Projects\Open Source\dotnet-watch\src\Microsoft.DotNet.Watcher.Core\Source\dotnet-watch\src\Microsoft.DotNet.Watcher.Core\bin\Debug\netstandard1.5\Microsoft.DotNet.Watcher.Core.xml’ could not be found.
Compilation failed. 0 Warning(s) 1 Error(s)
Time elapsed 00:00:00.7415870
Environment data
dotnet --info
output:
.NET Command Line Tools (1.0.0-rc2-002439)
Product Information: Version: 1.0.0-rc2-002439 Commit Sha: ef0c3b2cee
Runtime Environment: OS Name: Windows OS Version: 10.0.14316 OS Platform: Windows RID: win10-x64
Issue Analytics
- State:
- Created 7 years ago
- Comments:11 (6 by maintainers)
Thanks @jmezach and @PinpointTownes. The space in the path does appear to be the problem. It’s good to know how to repro the issue. Makes my job a lot easier. 😄
I will get a fix for it today hopefully.
@eerhardt FYI, I’m also seeing this bug, which only reproduces when there’s a space in the project path (maybe caused by a few missing quotes somewhere?).
You can see that the path used (and returned) by
dotnet build
is totally wrong:G:\space in path\AspNet.Security.OpenIdConnect.Server\src\AspNet.Security.OpenIdConnect.Extensions\path\AspNet.Security.OpenIdConnect.Server\src\AspNet.Security.OpenIdConnect.Extensions\bin\Debug\netstandard1.4\AspNet.Security.OpenIdConnect.Extensions.xml
While it should be:
G:\space in path\AspNet.Security.OpenIdConnect.Server\src\AspNet.Security.OpenIdConnect.Extensions\bin\Debug\netstandard1.4\AspNet.Security.OpenIdConnect.Extensions.xml
(on a totally unrelated note, thank you very much for the unicode bug fix 😄)