Repository navigation
Include drawing framework references for the native WPF net10 target - #46
Open
dajiaohuang wants to merge 1 commit into
Open
dajiaohuang wants to merge 1 commit into
dajiaohuang wants to merge 1 commit into
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The native WPF library advertises
net8.0-windows;net10.0-windows, but on unchanged main with SDK 10.0.100,dotnet build NativeWpf/ST.Library.UI.WPF/ST.Library.UI.WPF.csproj -c Releasefails the net10 target with 17 CS0012 errors: GDI interfaces such asIImage/IGraphicsrequireSystem.Private.Windows.GdiPlus.Change
Apply the existing
Microsoft.WindowsDesktop.Appframework reference to both targets instead of only net8. This makes the existing GDI drawing contract's references available without adding a WinForms host, package, hardcoded SDK path, or source dependency.Validation
The same Release build now succeeds for both targets with zero warnings/errors. An isolated Windows/.NET 10 STA consumer also creates the real WPF editor, saves/loads its own tiny graph, renders a GDI-backed canvas offscreen, and constructs the property grid/tree using only its own node assembly. This is not interactive WPF/property-inspector or full demo acceptance.