-
Notifications
You must be signed in to change notification settings - Fork 437
Add .NET Core 3.0 WinForms/WPF/OffScreen examples #57
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
Conversation
|
Please add the examples to their own solution as we still need to support older versions of
|
8a4fc06 to
f67bb37
Compare
|
OK, I reverted the changes to |
|
Great, thanks 👍 How practical do you think it is to reuse the code files? By this I mean just using a different I see examples of this in https://github.com/microsoft/WPF-Samples/tree/master/Input%20and%20Commands/CaptureUnCaptureMouse Thoughts? |
…eusing the existing code files. Issue cefsharp/CefSharp#2796
f67bb37 to
8c7d7fe
Compare
Thanks, I applied this by creating new A minor drawback of this approach is that when you want to switch between the .NET Core and .NET Framework solutions, you might have to delete the existing |
|
Great, thanks 👍 Will merge this after |
|
I have also added a .NET Core project file for Note: The change to
Once this is released, we can remove the Thanks! |
|
Version |
|
Thanks, I upgraded the .NET Core examples to I also updated the Thanks! |
Excellent start, thanks 👍 |
|
Thanks for your hard work on this 👍 Merging now. |
Add a WinForms, WPF and OffScreen example using .NET Core 3.0. For this, I added new
.netcore.csprojfiles in the existing project folders, and (for WinForms) adjusted the output of the status bar to display the .NET Core version.See cefsharp/CefSharp#2796
Current limitations of using
CefSharp.WinForms,CefSharp.WpfandCefSharp.OffScreenwith .NET Core 3.0:CefSharp.BrowserSubprocess.exeis still used.CefSharp.WinForms/CefSharp.WPF/CefSharp.OffScreen, as well asCefSharp.CoreandCefSharpto use<Private>true</Private>, as otherwise the CoreCLR would not load these libraries as they would not be specified in the.deps.jsonfile.win-x64orwin-x86, you need to set thePlatformproperty tox64orx86; as otherwise it would beAnyCPUand the check in the.targetsfile of the NuGet package would fail.Example:
x86:
dotnet publish -f netcoreapp3.0 -r win-x86 -p:Platform=x86x64:
dotnet publish -f netcoreapp3.0 -r win-x64 -p:Platform=x64The application can also be published as single EXE file by adding
-p:PublishSingleFile=true.Thank you!