Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

ViktorHofer
Copy link
Member

@ViktorHofer ViktorHofer commented Mar 24, 2023

Blocked by dotnet/wpf#7681

Now that System.Drawing.Common is part of winforms, the Microsoft.Windows.Compatibility meta package needs to be moved into a higher layer as runtime can't depend on winforms' product dependencies.

Moving the TargetFramework property into the respective project files to allow this repository to have multi-targeting projects.
Also updating the Traversal project which now avoids an unnecessary package dependency on the net45 reference assemblies.

cc @JeremyKuhne

@ViktorHofer ViktorHofer self-assigned this Mar 24, 2023
Copy link

@carlossanlop carlossanlop left a comment

Choose a reason for hiding this comment

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

Question - Is my PR obsolete now? dotnet/runtime#83557

I ask because of this:

Microsoft.Windows.Compatibility meta package needs to be moved into a higher layer as runtime can't depend on winforms' product dependencies

and because you explained to me via chat that we're going to build Microsoft.Windows.Compatibility all the time.

BTW there is a merge conflict in Versions.props.

@carlossanlop
Copy link

Ah no, my PR is for 7.0. I assume that is still valid. Your change (and whatever upcoming changes we add to runtime) go into main.

@ViktorHofer
Copy link
Member Author

Question - Is my PR obsolete now?

No. This change targets only the main branch.

@mmitche
Copy link
Member

mmitche commented Mar 24, 2023

Yes, we need to add all those dependencies for coherency purposes only. This is because there is no way for coherency to guarantee a correct version without being in "strict" mode, and strict mode requires that if you say: "I depend on the version of X that Y has", that Y has a dependency on that version.

Now that System.Drawing.Common is part of winforms,
the Microsoft.Windows.Compatibility meta package needs to be moved into
a higher layer as runtime can't depend on winforms' product
dependencies.

Moving TargetFramework property into the respective project files to
allow this repository to have multi-targeting projects.
@ViktorHofer ViktorHofer force-pushed the AddWindowsCompatibilityPackage branch from 9e0acae to 73a6a91 Compare March 28, 2023 10:13
ViktorHofer added a commit to dotnet/wpf that referenced this pull request Mar 28, 2023
Unblocks dotnet/windowsdesktop#3516

Microsoft.Windows.Compatibility is being migrated from runtime to
windowsdesktop and depends on packages from dotnet/runtime. As there's
already a subscription from runtime -> winforms, a new one can't be
added directly between runtime -> windowsdesktop as that would cause
coherency issues. Instead, we need to flow the dependencies through
winforms and wpf.
ViktorHofer added a commit to dotnet/winforms that referenced this pull request Mar 28, 2023
* Add dependencies required by windowsdesktop

Unblocks dotnet/windowsdesktop#3516

Microsoft.Windows.Compatibility is being migrated from runtime to
windowsdesktop and depends on packages from dotnet/runtime. As there's
already a subscription from runtime -> winforms, a new one can't be
added directly between runtime -> windowsdesktop as that would cause
coherency issues. Instead, we need to flow the dependencies through
winforms and wpf.

* Update Version.Details.xml

* Remove Windows.Compatiblity dependency
ViktorHofer added a commit to dotnet/wpf that referenced this pull request Mar 28, 2023
Unblocks dotnet/windowsdesktop#3516

Microsoft.Windows.Compatibility is being migrated from runtime to
windowsdesktop and depends on packages from dotnet/runtime. As there's
already a subscription from runtime -> winforms, a new one can't be
added directly between runtime -> windowsdesktop as that would cause
coherency issues. Instead, we need to flow the dependencies through
winforms and wpf.
@ViktorHofer ViktorHofer enabled auto-merge (squash) March 28, 2023 15:38
@ViktorHofer ViktorHofer merged commit e7f7d86 into main Mar 28, 2023
@ViktorHofer ViktorHofer deleted the AddWindowsCompatibilityPackage branch March 28, 2023 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants