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

Use TargetFramework conditions consistently in libraries #35956

Merged
merged 5 commits into from
May 11, 2020

Conversation

ViktorHofer
Copy link
Member

@ViktorHofer ViktorHofer commented May 7, 2020

See the docs commit for the desired behavior: b0b09c6.

Additional cleanup:

  • Remove unnecessary properties (Rootnamespace, AssemblyName)
  • Move TargetFramework derived properties (or ones that will dervice from TargetFramework at some point) into a/the second property group.

cc @ericstj

@ghost
Copy link

ghost commented May 7, 2020

Tagging subscribers to this area: @ViktorHofer
Notify danmosemsft if you want to be subscribed.

@@ -97,6 +97,44 @@ When building an individual project the `BuildTargetFramework` and `TargetOS` wi
- .NET Framework latest -> `$(NetFrameworkCurrent)-Windows_NT`

# Library project guidelines

## TargetFramework conditions
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we call out that $(TargetFramework) should be avoided in PropertyGroup conditions (unless those are in a second PropertyGroup)?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, done :)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you know if we're going to validate that? I recall at one point we talked about it.

Copy link
Member Author

@ViktorHofer ViktorHofer May 8, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would prefer to not add infra for that and instead push on the project system / msbuild team to make progress on the actual issue.

@ViktorHofer
Copy link
Member Author

Feedback is addressed. Someone pls approve :D

@ViktorHofer
Copy link
Member Author

Ping reviewers, please approve :)

@Anipik Anipik merged commit 2cda903 into dotnet:master May 11, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Dec 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants