-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[release/5.0] Switch between either WinFX targets #4255
[release/5.0] Switch between either WinFX targets #4255
Conversation
d2c63da
to
bb5799a
Compare
bb5799a
to
ff4a0cc
Compare
6c0f230
to
0a6051c
Compare
Only in Desktop SDK and WinFX props/targets Respect EditorConfig preferences for whitespace and new-lines
The MSBuild items & targets that were defined after the WinFX targets import doesn't depend on anything from the WinFX targets. So, it is safe and better to declare the import after those items and targets definitions.
When the SDK's implementation is being used.
Currently there's no way to properly switch between NETFX's and CoreCLR's WinFX targets. This adds an opt-out, just in case, if we want to use the NETFX's WinFX targets instead.
0a6051c
to
cb0e626
Compare
Can someone/anyone (please) take a look at this patch at priority? 🧐 Been asking for months. Any feedback or response would be nice… 😔 |
This doesn't look good on you, M$FT! Not even taking a look at a patch and then closing it when it becomes irrelevant. Not a good open-source practice! Very disappointed here!! |
@Nirmal4G - Since Also, we recommend all PRs to be made against We apologize for the inconvenience you have experienced. If the PR addresses an issue that is still relevant, you may open the same against |
Closes #4253
Master PRs: #2976, #4629, #4630
Description
When using the Desktop SDK, the build double imports both Full framework and Core
WinFX
targets, leading to build break.Also, there's no straight forward way to switch between either
WinFX
targets as needed. This patch provides such mechanism throughImportFrameworkWinFXTargets
.Although there is a workaround for the above issue, they require modifying the installation of the .NET SDKs. So, it's preferable to have them fixed at least for Current (
v5.0
) .NET SDK.Customer Impact
We (and possibly many others like me) have a large set of NETCLR WPF projects that can't move to CoreCLR right now. I have recently converted them to sdk-style projects with the
WindowsDesktop
SDK which includes custom tasks that are meant for Full framework projects. We also have some silverlight projects to maintain and I recently converted them to sdk-style too. Seems they also need WinFX targets.So, to use the official
WindowsDesktop
, we want to switch between eitherWinFX
targets for our custom tasks to take effect. This patch is just allowing that. We're migrating our projects and tools to.NET
CoreCLR and it'll take some time. Until then, we need this ability to maintain our projects.Regression
Yes, Desktop SDK and WinFX targets were introduced since v3.0!
Testing
Manual testing and mostly with our WPF projects builds against both .NET
Core
andFull
framework CLRs.Risk
There should be minimal to no risk to most when taking this patch.
But, if you're building both Full framework and Core projects with heavily modified build like ours, depending on the behaviour of the double import, then Yes, the build will break.
However, if you already have your workarounds placed, then there should be no problem. You can also remove those workarounds when updating to the SDK with this patch as it fixes the issue.