Skip to content
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

conditional compilation symbol not read #4295

Closed
vsfeedback opened this issue Nov 20, 2018 · 1 comment
Closed

conditional compilation symbol not read #4295

vsfeedback opened this issue Nov 20, 2018 · 1 comment

Comments

@vsfeedback
Copy link

I added a conditional compilation symbol PROD to my Release.
After I changed my configuration to Debug and came back to Release, the PROD compilation symbol is not read.

I had to check Debug and then uncheck it for the editor to be able to pick up the compilation symbol.

This used to work correctly before this last update to VS 2017.

This issue has been moved from https://developercommunity.visualstudio.com/content/problem/45205/conditional-compilation-symbol-not-read.html
VSTS ticketId: 412101

These are the original issue comments:

Nick Bauer on 8/16/2017, 01:07 PM (461 days ago): I believe I have a similar problem, having just upgraded from 15.2 to 15.3. I have a "LOCAL" constant to cause the client project to call a local service vs. web service, but this symbol doesn't seem to be read--the code shows #if LOCAL code in gray, and compilation uses the code under #elif instead.
Nick Bauer on 8/16/2017, 01:17 PM (461 days ago): Possibly related: it seems that one of my build configurations was being ignored, so when I recreated it there were two entires in the csproj file. Deleting that, unloading and reloading the project fixed it.
志文 左 on 3/21/2018, 11:23 PM (243 days ago): it is not fix yet!
These are the original issue solutions:
(no solutions)

@jjmew
Copy link
Contributor

jjmew commented Nov 20, 2018

duplicate of #2733

@jjmew jjmew closed this as completed Nov 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants