Closed andrew-boyarshin closed 6 years ago
Hi,
The extras should be in place of the Microsoft.NET.Sdk in the Project element. It will include that in the correct locations.
@onovotny of course I know that. The issue is about support of almost identical method: <Sdk />
. It presents almost the same import behavior while preserving Project SDK.
That cannot work though due to ordering requirements. The extras needs things both before and after the main SDK targets to work. Thats why it does the import.
I see. Makes sense. Still, that's unfortunate limitation. Linking msbuild issue for reference. Feel free to close this if you believe this is not an issue then.
MSBuild warnings:
Sample project:
I believe some checks are needed in Sdk\Sdk.props and Sdk\Sdk.targets not to import Microsoft.NET.Sdk if already imported, since
<Sdk />
imports are valid scenario too (I believe they are much more maintainable than<Project Sdk="" />
).