-
Notifications
You must be signed in to change notification settings - Fork 642
Add WinUI support #2042
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
Merged
Merged
Add WinUI support #2042
Changes from all commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
e1302ea
Added Uno.WinUI views and samples
anpin bf9323c
Skipping unmanged builds in CI
anpin c1817a3
Update azure-pipelines.yml
anpin 50c9174
bumped Uno.WinUI to 4.1.9
anpin 8dcbe5e
Removed unnecessary nuget configs
anpin 8cac409
Delete NuGet.config
mattleibow 8a2485e
misc adjustments
jeromelaban cbb577b
chore: Adjust catalyst build
jeromelaban 6392ec8
chore: Add WinUI nuspec, adjust build and versions
jeromelaban aca094d
chore: Adjust for netstandad2.0 fallback
jeromelaban 81fede9
chore: Remove unused global.json file
jeromelaban 2fe7b3d
chore: Add comment in conditional compilation exclusion
jeromelaban dc14474
chore: Adjust for missing reference package
jeromelaban 5dcf4f9
chore: Add missing projects from platform specific projects
jeromelaban a240eaa
chore: Adjust projects list for macOS
jeromelaban ab645bd
chore: Adjust nuspec
jeromelaban 6624012
chore: Adjust namespace for uno.winui
jeromelaban 13d901b
chore: Restore original wasm sample
jeromelaban 91e8eab
chore: Add linux/mac specific projects
jeromelaban 05ea73d
chore: Adjust linux winui
jeromelaban 1e6facf
chore: Use net5 for linux build
jeromelaban d249e3e
chore: Adjust wasm sample
jeromelaban 531d2ed
chore: Adjust wasm winui
jeromelaban 1502c21
chore: Force uno sourcegen
jeromelaban 45c98bb
chore: Adjust package name to match WinUI
jeromelaban 1739443
chore: remove unused ifdef
jeromelaban 37e12d0
chore: adjust winui ifdef
jeromelaban 849fd33
chore: Don't update docs
jeromelaban 59ac886
chore: Adjust reference build
jeromelaban 0f5aed8
chore: Adjust samples references
jeromelaban afbb8fe
chore: Adjust AOT requirement, adjust langversion
jeromelaban edf021d
chore: Remove mobile targets from mac sample solutions
jeromelaban 60f4c09
ci: Adjust for mac build
jeromelaban File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,95 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <package> | ||
| <metadata> | ||
|
|
||
| <!-- package --> | ||
| <id>SkiaSharp.Views.Uno.WinUI</id> | ||
| <title>SkiaSharp for Uno Platform</title> | ||
| <version>1.0.0</version> | ||
| <description> | ||
| SkiaSharp for Uno Platform is a set of views that can be used to draw on the screen. | ||
| </description> | ||
| <summary> | ||
| SkiaSharp for Uno Platform is a set of views that can be used to draw on the screen. | ||
| </summary> | ||
| <releaseNotes> | ||
| Please visit https://go.microsoft.com/fwlink/?linkid=868517 to view the release notes. | ||
| </releaseNotes> | ||
| <projectUrl>https://go.microsoft.com/fwlink/?linkid=868515</projectUrl> | ||
| <iconUrl>https://go.microsoft.com/fwlink/?linkid=2130524</iconUrl> | ||
| <tags>ui uno xamarin graphics ios android catalyst windows winui macos cross-platform skiasharp</tags> | ||
|
|
||
| <!-- legal --> | ||
| <licenseUrl>https://go.microsoft.com/fwlink/?linkid=868514</licenseUrl> | ||
| <authors>Microsoft</authors> | ||
| <owners>Microsoft</owners> | ||
| <requireLicenseAcceptance>true</requireLicenseAcceptance> | ||
| <copyright>© Microsoft Corporation. All rights reserved.</copyright> | ||
|
|
||
| <dependencies> | ||
| <group targetFramework="netstandard2.0"> | ||
| <dependency id="Uno.WinUI" version="1.0.0" /> | ||
| <dependency id="SkiaSharp" version="1.0.0" /> | ||
| <dependency id="SkiaSharp.NativeAssets.WebAssembly" version="1.0.0" /> | ||
| </group> | ||
| <group targetFramework="net6.0-ios13.6"> | ||
| <dependency id="Uno.WinUI" version="1.0.0" /> | ||
| <dependency id="SkiaSharp" version="1.0.0" /> | ||
| </group> | ||
| <group targetFramework="net6.0-maccatalyst13.5"> | ||
| <dependency id="Uno.WinUI" version="1.0.0" /> | ||
| <dependency id="SkiaSharp" version="1.0.0" /> | ||
| </group> | ||
| <group targetFramework="net6.0-macos12.1"> | ||
| <dependency id="Uno.WinUI" version="1.0.0" /> | ||
| <dependency id="SkiaSharp" version="1.0.0" /> | ||
| </group> | ||
| <group targetFramework="net6.0-android30.0"> | ||
| <dependency id="Uno.WinUI" version="1.0.0" /> | ||
| <dependency id="SkiaSharp" version="1.0.0" /> | ||
| </group> | ||
| <group targetFramework="net5.0-windows10.0.18362"> | ||
| <dependency id="Uno.WinUI" version="1.0.0" /> | ||
| <dependency id="SkiaSharp" version="1.0.0" /> | ||
| <dependency id="SkiaSharp.Views" version="1.0.0" /> | ||
| </group> | ||
| </dependencies> | ||
|
|
||
| </metadata> | ||
| <files> | ||
|
|
||
| <!-- SkiaSharp.Views.Windows.dll --> | ||
| <file src="lib/netstandard2.0/SkiaSharp.Views.Windows.dll" /> | ||
| <file src="lib/netstandard2.0/SkiaSharp.Views.Windows.pdb" /> | ||
| <file src="lib/netstandard2.0/SkiaSharp.Views.Windows.xml" /> | ||
| <file src="uno-runtime/webassembly/SkiaSharp.Views.Windows.dll" /> | ||
| <file src="uno-runtime/webassembly/SkiaSharp.Views.Windows.pdb" /> | ||
| <file src="uno-runtime/webassembly/SkiaSharp.Views.Windows.xml" /> | ||
| <file src="uno-runtime/skia/SkiaSharp.Views.Windows.dll" /> | ||
| <file src="uno-runtime/skia/SkiaSharp.Views.Windows.pdb" /> | ||
| <file src="uno-runtime/skia/SkiaSharp.Views.Windows.xml" /> | ||
| <file platform="windows" src="lib/net6.0-android/SkiaSharp.Views.Windows.dll" target="lib/net6.0-android3.0/SkiaSharp.Views.Windows.dll"/> | ||
| <file platform="windows" src="lib/net6.0-android/SkiaSharp.Views.Windows.pdb" target="lib/net6.0-android3.0/SkiaSharp.Views.Windows.pdb"/> | ||
| <file platform="windows" src="lib/net6.0-android/SkiaSharp.Views.Windows.xml" target="lib/net6.0-android3.0/SkiaSharp.Views.Windows.xml"/> | ||
| <file platform="windows" src="lib/net6.0-ios/SkiaSharp.Views.Windows.dll" target="lib/net6.0-ios13.6/SkiaSharp.Views.Windows.dll"/> | ||
| <file platform="windows" src="lib/net6.0-ios/SkiaSharp.Views.Windows.pdb" target="lib/net6.0-ios13.6/SkiaSharp.Views.Windows.pdb"/> | ||
| <file platform="windows" src="lib/net6.0-ios/SkiaSharp.Views.Windows.xml" target="lib/net6.0-ios13.6/SkiaSharp.Views.Windows.xml"/> | ||
| <file platform="windows" src="lib/net6.0-macos/SkiaSharp.Views.Windows.dll" target="lib/net6.0-macos12.1/SkiaSharp.Views.Windows.dll"/> | ||
| <file platform="windows" src="lib/net6.0-macos/SkiaSharp.Views.Windows.pdb" target="lib/net6.0-macos12.1/SkiaSharp.Views.Windows.pdb"/> | ||
| <file platform="windows" src="lib/net6.0-macos/SkiaSharp.Views.Windows.xml" target="lib/net6.0-macos12.1/SkiaSharp.Views.Windows.xml"/> | ||
| <file platform="windows" src="lib/net6.0-maccatalyst/SkiaSharp.Views.Windows.dll" target="lib/net6.0-maccatalyst13.5/SkiaSharp.Views.Windows.dll"/> | ||
| <file platform="windows" src="lib/net6.0-maccatalyst/SkiaSharp.Views.Windows.pdb" target="lib/net6.0-maccatalyst13.5/SkiaSharp.Views.Windows.pdb"/> | ||
| <file platform="windows" src="lib/net6.0-maccatalyst/SkiaSharp.Views.Windows.xml" target="lib/net6.0-maccatalyst13.5/SkiaSharp.Views.Windows.xml"/> | ||
|
|
||
| <!-- Fallback to avoid netstandard2.0 to be used incorrectly and cause hard to troubleshoot build errors --> | ||
| <file src="_._" target="lib/net5.0-windows10.0.18362/_._" /> | ||
|
|
||
| <!-- the build bits --> | ||
| <file src="build/netstandard2.0/SkiaSharp.Views.Uno.WinUI.targets" /> | ||
| <file src="build/netstandard2.0/SkiaSharp.Views.Uno.WinUI.targets" target="buildTransitive/netstandard2.0/SkiaSharp.Views.Uno.WinUI.targets" /> | ||
|
|
||
| <!-- legal --> | ||
| <file src="LICENSE.txt" /> | ||
|
|
||
| </files> | ||
| </package> | ||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,97 @@ | ||
| { | ||
| "version": "1.0", | ||
| "components": [ | ||
| "Microsoft.VisualStudio.Component.CoreEditor", | ||
| "Microsoft.VisualStudio.Workload.CoreEditor", | ||
| "Microsoft.NetCore.Component.Runtime.3.1", | ||
| "Microsoft.NetCore.Component.SDK", | ||
| "Microsoft.VisualStudio.Component.NuGet", | ||
| "Microsoft.VisualStudio.Component.Roslyn.Compiler", | ||
| "Microsoft.VisualStudio.Component.Roslyn.LanguageServices", | ||
| "Microsoft.NetCore.Component.DevelopmentTools", | ||
| "Microsoft.VisualStudio.ComponentGroup.WebToolsExtensions", | ||
| "Microsoft.VisualStudio.Component.DockerTools", | ||
| "Microsoft.NetCore.Component.Web", | ||
| "Microsoft.Net.ComponentGroup.DevelopmentPrerequisites", | ||
| "Microsoft.VisualStudio.Component.TypeScript.4.0", | ||
| "Microsoft.VisualStudio.Component.JavaScript.TypeScript", | ||
| "Microsoft.VisualStudio.Component.JavaScript.Diagnostics", | ||
| "Microsoft.Component.MSBuild", | ||
| "Microsoft.VisualStudio.Component.TextTemplating", | ||
| "Component.Microsoft.VisualStudio.RazorExtension", | ||
| "Microsoft.VisualStudio.Component.IISExpress", | ||
| "Microsoft.VisualStudio.Component.SQL.ADAL", | ||
| "Microsoft.VisualStudio.Component.SQL.LocalDB.Runtime", | ||
| "Microsoft.VisualStudio.Component.Common.Azure.Tools", | ||
| "Microsoft.VisualStudio.Component.SQL.CLR", | ||
| "Microsoft.VisualStudio.Component.MSODBC.SQL", | ||
| "Microsoft.VisualStudio.Component.MSSQL.CMDLnUtils", | ||
| "Microsoft.VisualStudio.Component.ManagedDesktop.Core", | ||
| "Microsoft.VisualStudio.Component.SQL.SSDT", | ||
| "Microsoft.VisualStudio.Component.SQL.DataSources", | ||
| "Component.Microsoft.Web.LibraryManager", | ||
| "Microsoft.VisualStudio.ComponentGroup.Web", | ||
| "Microsoft.VisualStudio.Component.Web", | ||
| "Microsoft.VisualStudio.Component.IntelliCode", | ||
| "Component.Microsoft.VisualStudio.LiveShare", | ||
| "Microsoft.VisualStudio.ComponentGroup.Web.Client", | ||
| "Microsoft.Net.ComponentGroup.TargetingPacks.Common", | ||
| "Component.Microsoft.VisualStudio.Web.AzureFunctions", | ||
| "Microsoft.VisualStudio.ComponentGroup.AzureFunctions", | ||
| "Microsoft.VisualStudio.Component.Azure.Compute.Emulator", | ||
| "Microsoft.VisualStudio.Component.Azure.Storage.Emulator", | ||
| "Microsoft.VisualStudio.Component.Azure.ClientLibs", | ||
| "Microsoft.VisualStudio.Component.Azure.AuthoringTools", | ||
| "Microsoft.VisualStudio.Component.CloudExplorer", | ||
| "Microsoft.VisualStudio.ComponentGroup.Web.CloudTools", | ||
| "Microsoft.VisualStudio.Component.DiagnosticTools", | ||
| "Microsoft.VisualStudio.Component.EntityFramework", | ||
| "Microsoft.VisualStudio.Component.AspNet45", | ||
| "Microsoft.VisualStudio.Component.AppInsights.Tools", | ||
| "Microsoft.VisualStudio.Component.WebDeploy", | ||
| "Microsoft.VisualStudio.Component.Wcf.Tooling", | ||
| "Microsoft.VisualStudio.Workload.NetWeb", | ||
| "Microsoft.VisualStudio.ComponentGroup.Azure.Prerequisites", | ||
| "Microsoft.VisualStudio.Component.Azure.Waverton.BuildTools", | ||
| "Microsoft.VisualStudio.Component.Azure.Waverton", | ||
| "Microsoft.Component.Azure.DataLake.Tools", | ||
| "Microsoft.VisualStudio.Component.Azure.Kubernetes.Tools", | ||
| "Microsoft.VisualStudio.Component.Azure.ResourceManager.Tools", | ||
| "Microsoft.VisualStudio.ComponentGroup.Azure.ResourceManager.Tools", | ||
| "Microsoft.VisualStudio.ComponentGroup.Azure.CloudServices", | ||
| "Microsoft.VisualStudio.Component.Azure.ServiceFabric.Tools", | ||
| "Microsoft.VisualStudio.Workload.Azure", | ||
| "Microsoft.VisualStudio.Component.VC.CoreIde", | ||
| "Microsoft.VisualStudio.Component.VC.Tools.x86.x64", | ||
| "Microsoft.VisualStudio.Component.Graphics.Tools", | ||
| "Microsoft.VisualStudio.Component.Windows10SDK.19041", | ||
| "Microsoft.VisualStudio.Component.ManagedDesktop.Prerequisites", | ||
| "Microsoft.ComponentGroup.Blend", | ||
| "Microsoft.VisualStudio.Component.Debugger.JustInTime", | ||
| "Microsoft.VisualStudio.Component.PortableLibrary", | ||
| "Microsoft.VisualStudio.ComponentGroup.MSIX.Packaging", | ||
| "Microsoft.VisualStudio.Workload.ManagedDesktop", | ||
| "Microsoft.VisualStudio.Component.Windows10SDK.18362", | ||
| "Microsoft.VisualStudio.Component.Windows10SDK.17763", | ||
| "Microsoft.Component.NetFX.Native", | ||
| "Microsoft.VisualStudio.ComponentGroup.UWP.NetCoreAndStandard", | ||
| "Microsoft.VisualStudio.Component.Graphics", | ||
| "Microsoft.VisualStudio.ComponentGroup.UWP.Xamarin", | ||
| "Microsoft.VisualStudio.ComponentGroup.UWP.Support", | ||
| "Microsoft.VisualStudio.Component.VC.Tools.ARM64", | ||
| "Microsoft.VisualStudio.Component.UWP.VC.ARM64", | ||
| "Microsoft.VisualStudio.Component.VC.Tools.ARM", | ||
| "Microsoft.VisualStudio.ComponentGroup.UWP.VC", | ||
| "Microsoft.VisualStudio.Workload.Universal", | ||
| "Component.OpenJDK", | ||
| "Microsoft.VisualStudio.Component.MonoDebugger", | ||
| "Microsoft.VisualStudio.Component.Merq", | ||
| "Component.Xamarin.RemotedSimulator", | ||
| "Microsoft.VisualStudio.ComponentGroup.WebToolsExtensions.TemplateEngine", | ||
| "Component.Xamarin", | ||
| "Component.Android.SDK28", | ||
| "Microsoft.VisualStudio.Workload.NetCrossPlat", | ||
| "Microsoft.VisualStudio.Workload.NetCoreTools", | ||
| "Microsoft.VisualStudio.ComponentGroup.Maui.All", | ||
| ] | ||
| } |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| { | ||
| "solution": { | ||
| "path": "SkiaSharpSample.sln", | ||
| "projects": [ | ||
| "SkiaSharpSample.Shared\\SkiaSharpSample.Shared.shproj", | ||
|
|
||
| "SkiaSharpSample.Mobile\\SkiaSharpSample.Mobile.csproj", | ||
|
|
||
| "SkiaSharpSample.Wasm\\SkiaSharpSample.Wasm.csproj", | ||
|
|
||
| "SkiaSharpSample.Skia.Gtk\\SkiaSharpSample.Skia.Gtk.csproj", | ||
| ] | ||
| } | ||
| } |
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.