Is System.Messaging.dll not available in .Net Core?
Asked Answered
C

2

8

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.?

Cyanic answered 1/3, 2018 at 7:1 Comment(1)
Since you don't need cross platform support (MSMQ is microsoft-only) - you probably won't benefit from moving to .net core anyway.Jail
E
6

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

Emblaze answered 1/3, 2018 at 7:11 Comment(2)
MSMQ may not be, but .net core itself is platform independent. .net core processes running on any environment should be able to connect and use MSMQ instances running on Windows, so this should not be the reason.Celka
The .NET runtime targets all platforms, but that doesn't mean that a Windows-specific library cannot target .NET. So this isn't a reason. Although the yes/no answer is presumably correct.Clairclairaudience
A
4

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:

Actable answered 5/6, 2019 at 7:9 Comment(1)
There's another port to.NET CORE for MSMQ here nuget.org/packages/MSMQ.Messaging, which I found while reading through all the .NET CORE github comments!Placeeda

© 2022 - 2024 — McMap. All rights reserved.