-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Spaces in the configuration name create invalid preprocessor defines #2715
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
Conversation
Replace spaces if they exist in the configuration name.
@Gwindalmir thanks a lot for the PR. By any chance, could you add a test to cover this scenario? |
I'd love to... as soon as I figure out how to build the thing. I get the following error:
I tried before and after installing the latest preview SDK, and I edited globals.json to match what I installed. EDIT: I found the Arcade project... |
No worries. We need to update the developer guide. Have you tried simply running build.cmd first? That's a requirement to get things going. |
Add same change to VB targets to transform spaces.
Done. For reference to others, my issue was I was using an older version of VS. |
@Gwindalmir any luck with the cla? |
Yup, I had to wait for my company to approve it (I submitted it here too early apparently). |
Thank you! |
….2 (#2715) - Microsoft.DotNet.Cli.Runtime - 3.0.100-rc1.19458.2
… merges/release/3.0.100-preview9-to-release/3.0.1xx * upstream/release/3.0.100-preview9: (21 commits) Update dependencies from https://github.com/Microsoft/msbuild build 20190906.2 (#2779) Update dependencies from https://github.com/dotnet/cli build 20190908.6 (#2728) Update dependencies from https://github.com/dotnet/sdk build 20190908.1 (#2726) Update dependencies from https://github.com/dotnet/cli build 20190908.2 (#2715) Update dependencies from https://github.com/aspnet/websdk build 20190908.1 (#2713) Update dependencies from https://github.com/dotnet/cli build 20190907.12 (#2710) Update dependencies from https://github.com/dotnet/cli build 20190907.11 (#2707) Update dependencies from https://github.com/aspnet/websdk build 20190907.5 (#2706) Update dependencies from https://github.com/dotnet/cli build 20190907.9 (#2705) Update dependencies from https://github.com/aspnet/websdk build 20190907.4 (#2704) Update dependencies from https://github.com/aspnet/AspNetCore-Tooling build 20190907.3 (#2702) Update dependencies from https://github.com/aspnet/AspNetCore-Tooling build 20190906.6 (#2675) Update dependencies from https://github.com/dotnet/cli build 20190906.12 (#2670) Update dependencies from https://github.com/dotnet/sdk build 20190906.2 (#2669) Update dependencies from https://github.com/Microsoft/msbuild build 20190905.2 (#2666) Update dependencies from https://github.com/dotnet/core-setup build 20190906.20 (#2668) Update dependencies from https://github.com/dotnet/cli build 20190906.11 (#2667) Update dependencies from https://github.com/dotnet/core-setup build 20190906.12 (#2659) Update dependencies from https://github.com/aspnet/AspNetCore-Tooling build 20190905.12 (#2633) Update dependencies from https://github.com/Microsoft/msbuild build 20190830.3 (#2618) ... Conflicts: eng/Version.Details.xml eng/Versions.props
If you have a custom configuration, such as "Release Obfuscated", the implicit defines created contain spaces, but they don't throw any compiler errors. Though they are still unusable.
Replace spaces if they exist in the configuration name.
For example, as shown in Visual Studio IDE:
NETSTANDARD2_0;RELEASE OBFUSCATED;MYDEFINE