-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
dotnet build3: build-time constants work differently than dotnet build #252
Comments
The reason IS_FOO isn't defined in your project is because of your condition: <PropertyGroup Condition=" '$(TargetFrameworkIdentifier),Version=$(TargetFrameworkVersion)' == '.NETCoreApp,Version=v1.0' ">
<DefineConstants>$(DefineConstants);IS_FOO;NETCOREAPP1_0</DefineConstants> You aren't setting the properties The reason NETCOREAPP1_0 isn't defined is because of #195. |
@brthor, this condition was automatically built by |
Yes that's one of the migrate changes that I listed here - https://github.com/dotnet/cli/issues/4330 |
Make sense. Thanks! |
This is a migrate issue. Will fix |
Steps to reproduce
Compare the build-time constants available in
dotnet build
vs.dotnet build3
. It looks like none of the build-time constants set in the .csproj under a TFM condition don't make it tocsc
.dotnet build
and run.dotnet build3
and run.Expected behavior
The output should be the same.
Actual behavior
When running the output of
dotnet build
:When running the output of
dotnet build3
:Environment data
dotnet --info
output:The text was updated successfully, but these errors were encountered: