Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is System.Messaging.dll not available in .Net Core?

I have a C# Publisher-Subscriber project intended to make use of the MSMQ service in Windows. The code was developed in .Net Framework 4. I want to run it in .Net Core. But I am getting the error

"The type or namespace name "Messaging" donot exist in the namespace System".

Does .Net Core support MSMQ?

Does .Net Core has a corresponding System.Messaging.dll which appears to be missing.?

like image 424
jerinsibi Avatar asked Mar 01 '18 07:03

jerinsibi


People also ask

Is Msmq supported in .NET core?

Microsoft Message Queuing (MSMQ) is currently not available for . NET Core. While other message queuing systems are generally preferred, many enterprise applications were based on MSMQ and this creates a problem for teams looking to migrate from .

What is dotnet DLL?

What is a dll file ? A . dll file contains compiled code you can use in your application to perform specific program functions and may be required by another application or module (such as .exe or . dll) to load it through an entry point.


2 Answers

MSMQ is not platform independent and therfore not supported by .Net Core.

like image 121
Hyarus Avatar answered Sep 22 '22 02:09

Hyarus


Even though MSMQ is Windows only, the future even on Windows is .NET Core and .NET Framework basically is end-of-life.

Currently the only way to use MSMQ on .NET Core is via the following package:

  • https://github.com/krazure/Experimental.System.Messaging
like image 45
Ramon Smits Avatar answered Sep 23 '22 02:09

Ramon Smits