-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Opting into dependentupon convention #3533
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
Opting into dependentupon convention #3533
Conversation
|
Should this be conditional on target framework or used for anything using the sdk? |
|
I think this should be conditional on target framework >= netcoreapp3.0 or >= netstandard2.1. Otherwise, this would be a potential breaking change. |
|
cc @davkean |
Note: This test fails without its MSBuild counterpart. I verified that this test ran successfully on a local machine with a version of MSBuild that had the needed change. Until that change is merged in, this test will skip & refer to the original issue.
src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.Sdk.targets
Outdated
Show resolved
Hide resolved
nguerrera
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs to be .netstandard 2.1 not .netframework.
Co-Authored-By: Rainer Sigwald <raines@microsoft.com>
….4 (dotnet#3533) - Microsoft.NET.Sdk - 3.1.100-preview3.19561.4
Description
In SDK projects and new project system, we have eliminated the need for DependentUpon to make the appropriate file nesting in the IDE tree. However, there is a place where the build actually uses DependentUpon to:
But people and features in VS rely on this and it has been a consistent source of feedback in moving to .NET Core 3.0. This opts into new behavior to use a convention instead of requiring explicit metadata.
Original issue: dotnet/msbuild#4488
This change is dependent upon: dotnet/msbuild#4597
Customer Impact
In a fairly common situation for projects that use resources, avoids the need to specify
DependentUponmetadata for each resource.Regression?
No
Risk
Low risk.
Test changes in this PR
Added
DependentUponTest. Currently it gets skipped, but this test was verified working on a local machine using a version of MSBuild that had the corresponding fix.