-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build fails with MSB3073 if there are spaces in the path #13740
Comments
Hi @Tyrrrz I guess almost everyone working on the repo has no spaces in their path, so it regresses, then someone notices and it fixes, .. We'd be happy to take a PR, if you're interested. I suspect it is actually in this file, which is in another repo and we consume via Nuget
|
Thanks for the insight, I will take a look at that file and see how I can substitute the targets to test it out. |
It actually turned out there are multiple instances of unquoted paths in the target file, besides the one you pointed out. I have fixed them one by one and it builds successfully now. Will submit a PR shortly. |
This fixes issues when running build.cmd in dotnet/corefx when there are spaces on the path. Fixes #27699
Fix reverted in dotnet/coreclr#27793 |
Can confirm this is still happening. |
@logiclrd we can accept more fixes, but the build is complex and apparently few people work with spaces in their path, including PR validation, so realistically this will keep breaking. Can you clone to a path without spaces? |
It's actually my user profile path that has a space in it. There is a build targets file that generates a call to I believe what's going on is that the tool it is trying to run is inside a NuGet package, and back when this issue was made, that NuGet package was in a
I have created a local user account with no spaces in the name to try to move forward, but now that NuGet packages are coming out of the user profile path, it's not so simple for people to just change what path they're working with. |
Confirmed that with a user profile in |
OS: Windows 10
Head: 46bc2ab4d
If you clone the repository to a directory that has spaces in the path, the build will fail 5-15 minutes in with error code
MSB3073: The command "ilasm..." exited with code 9009
.A few lines before that it actually says
Could not find a part of the path ...
with the full path truncated at the occurrence of the whitespace.It seems this issue was also reported almost 4 years ago in dotnet/corefx#451 and seemingly fixed but I can reproduce it on the latest master as of the time of writing.
At the very least, it would be nice to mention this in the installation instructions.
The text was updated successfully, but these errors were encountered: