Search code examples
.net-coremessagebox

MessageBox in .Net Core 3.1


Microsoft documentation for .Net Core 3.1 says there is a MessageBox Class. If so, what is the NuGet package I need to download?

https://learn.microsoft.com/en-us/dotnet/api/system.windows.messagebox?view=netcore-3.1


Solution

  • The answer for me was to create a project in the solution using .Net framework. Specifically a Project/Class called NetFrame/Bridge. Then my .Net core projects in the solutions can call the .Framework project's one line method for MessageBox.

    I am happy to report than having moved 250k lines of code from .Net Framework to .Net Core MessageBox is the ONLY method I had to add to the Bridge class!