-
Notifications
You must be signed in to change notification settings - Fork 551
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
[FEATURE] Make the Views.WindowsForms and Views.WPF actually target .NET Core #1029
Comments
I might be able to help get dual targeting working for Currently, Are these references needed? Are they only runtime dependencies on them? (After removing references to I can get Instead of targeting This makes things easier, because Even after removing the references to |
Quoting from #1011 (comment)
I think this describes a problem I had as well. Both |
THANKS! It could also be an issue with all the old versions of things used in the master branch. Try using the dev/vs-2019 branch. I will be merged that in soon and it makes life much easier. I think the multi-targeting is broken a bit with the old .net core 2.1 |
It is better. That problem with I think I can combine Does that sounds like a good idea? |
* Views.Desktop.Common now multitargets Standard 2.0, Framework 4.5, and Core 3.0 #1029 * Removed Views.Desktop.Common.NetStandard
It does :) PR merged. |
I think these Does anyone know anything about these dependencies? |
Maybe the references can be removed for WPF. But, I see the OpenTK is built for net20, so even if the references are not "official" .net core, it should work... But, for WPF, if we aren't using it, then we can remove it. |
What is the actual reason you can't target netcoreapp with a reference to OpenTK? Is it a compiler error? Runtime error? I know I have a sample netforeapp3.0 that uses the WPF views as is. |
My concern is just these warnings.
I also noticed that these packages target .NET Framework 2.0. It does seem like a .NET Core 3.0 application should be able to utilize .NET Framework 2.0 dependencies (based on this table).
They aren't being used at compile time. That much is for sure. Sometimes though a NuGet package needs to be included because of a runtime-only dependency. Maybe that is the case here. I don't know. Even if the compatibility isn't perfect or these dependencies can be removed, adding the dual target seems better than the status quo. I will make a PR soon. P.S. |
Oh no! 😭
EDIT I see the discussion and the reasons. The new namespace will be OpenToolkit - which is a nice name, just a bit more work ;) |
Should be able to make quick work of it via find/replace. |
I'm a bit more worried about people updating the package and then blowing up at runtime or something. |
* Views.WPF now multitargets Framework 4.5 and Core 3.0 #1029 * added .NET Core 3.0 to View.Desktiop.Common nuspec file * added .NET Core 3.0 to View.WPF nuspec file
I see the actual WPF nuspec did not depend on OpenTK, so I think we should be good with the updates. Either that or I have been release broken packages 😆 |
Great observation :) PR #1078 up for that change |
I didn't make any changes to Should this issue stay open until it is also dual targeting with .NET Core? |
Yep, it should. Thanks. |
* Upgraded a good few things - multitargeting for netstandard1.3, netstandard2.0, netcoreapp3.0 and net45 - iOS, tvOS, macOS, watchOS now builds on non-macOS (not embedded binaries) - removed empty assembly infos - using Directory.Build.* to clean up a few things - improved the msbuild tasks to properly skip * Add the targets file to the nuget * Let all the tests run before failing the build * Pack and validate in one go * Update the samples to use the new projects * Use VS 2017 for native builds for now * Update Dockerfiles * removed references from Views.WPF to OpenTK #1029 (#1078) * Install the type redirector * Update depot_tools * Don't do any signing for macOS Co-authored-by: Tyson Williams <34664007+bender2k14@users.noreply.github.com>
Is your feature request related to a problem? Please describe.
Right now, installing the SkiaSharp.Views.WindowsForms or SkiaSharp.Views.WPF packages will give a warning saying that it is not targeting the right thing and all that.
Describe the solution you'd like
We would like a nice package that targets both net45 and netcoreapp
Describe alternatives you've considered
We can use the NoWarn feature, but that is extra work that is unnecessary.
The text was updated successfully, but these errors were encountered: