-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Description
Related issues:
dotnet/winforms#638
dotnet/project-system#4807
https://github.com/dotnet/corefx/issues/34190
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:
- Locate a source file, and parse (!) it to get first class name and namespace
- Generate .resources accordingly.
Let first me say that this whole design is terrible and it is absolutely insane that we have code to find the class and namespace name in msbuild:
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. So I give up and propose:
-
Add a boolean property that, when true, causes us to look for the source file by convention when DependentUpon metadata is not found.
-
Set that property by default for .NET Core App 3.0 TFM.