-
Notifications
You must be signed in to change notification settings - Fork 689
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
DefineConstants in csproj just ignored #3749
Comments
@rlanhellas Sorry this is causing issues. Looks like this might be fixed with OmniSharp/omnisharp-roslyn#1774 |
Thanks, I will watch this PR. |
I am not sure what the bug here is. OmniSharp/omnisharp-roslyn#1774 doesn't have anything to do with this becuase it deals with compilation options and these here are parse options which are already respected and updated on every csproj change Have a look at this. Imagine I have notice how As soon as I remove notice how |
Filip is right, I can also confirm changes to DefineConstants are correctly applied already. Turns out they were part of One thing that confused me while I was testing, changes to baseline |
Closing due to lack of activity. |
Environment data
.NET Core SDK (reflecting any global.json):
Version: 2.1.607
Commit: cad4fbe2d5
Runtime Environment:
OS Name: fedora
OS Version: 31
OS Platform: Linux
RID: fedora.31-x64
Base Path: /usr/share/dotnet/sdk/2.1.607/
Host (useful for support):
Version: 3.1.3
Commit: 4a9f85e9f8
.NET Core SDKs installed:
2.1.607 [/usr/share/dotnet/sdk]
3.1.201 [/usr/share/dotnet/sdk]
.NET Core runtimes installed:
Microsoft.AspNetCore.All 2.1.14 [/usr/share/dotnet/shared/Microsoft.AspNetCore.All]
Microsoft.AspNetCore.App 2.1.14 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 3.1.3 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 2.1.14 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 3.1.3 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
To install additional .NET Core runtimes or SDKs:
https://aka.ms/dotnet-download
Steps to reproduce
Add ENABLE_FIDDLER in ".csproj" file of IntegrationTests. This is my csproj:
And my peace of code:
Expected behavior
ENABLE_FIDDLER constant should be set to enter in IF condition.
Actual behavior
ENABLE_FIDDLER constant isn't set and always my peace of code is ignored.
The text was updated successfully, but these errors were encountered: