What versions of MVC does ServiceStack work with? - servicestack

Was curious if it will work with MVC 1.0? Looks like the mvc powerpack works with MVC 3 and 4.

ServiceStack hasn't been tested with MVC v1.0 (and wont be supported). The recommended versions are MVC 3/4+. If you need something more lightweight than this, consider using servicestack on its own e.g. razor.servicestack.net.

Related

How can I use a Service Model from ServiceStack 4.0 in a ServiceStack 5.0 Project?

I have begun the process of migrating one of our many ServiceStack services from .Net Framework to .Net core. Most of the migration has been relatively smooth, but I have run into a brick wall with Service Models. This service is dependent on using other ServiceStack services that are still on version 4.0. When I attempt to use Service Models from those services in the new project I get an error saying that the IReturn<> interface wants the version 4.0 assembly specifically, and does not want the 5.0 version of ServiceStack.Interfaces. Downgrading just ServiceStack.Interfaces causes a similar error, but the inverse where everything else that depends on that assembly wants version 5.0. Is there a way to upgrade one project without upgrading every project? I think we all know that real systems need a transition period, and that there's just no way to migrate every service simultaneously.
Please read the existing links from this answer:
https://stackoverflow.com/a/51252374/85785
TL;DR you can’t share the same .dll, you either need to multi-target or decouple the binary dependency by using C# Add ServiceStack Reference.
Other solutions is having old Framework projects Reference the old compiled ServiceModell.dll (alternative to multi targeting) or just copy the source code of the DTOs you need (alternative to C# Add ServiceStack Reference).

MSMQ support for .net core

It looks like there are no libraries provided in .net standard / .net core to support MSMQ.
In that case, how can we use MSMQ while working with asp.net core 2.0 and above web application?
I recently noticed this NUGET package: Experimental.System.Messaging
I've not yet tried it but it seems like it might be helpful for what you need.

Using Azure packages with .NET Core / MVC

I'm exploring Core MVC 1.0.
Is it possible to use Azure nuget packages I've been using in the past in previous Web API projects? For example, I've been using Microsoft.Azure.Mobile.Server.Notifications which gives me extension methods on HttpConfiguration that I can use in my controllers like:
var pushClient = Configuration.GetPushClient();
But I understand HttpConfiguration no longer exists.
Is there any way to use Azure packages like this with MVC controllers, or should I just be waiting until they release versions that target .net core? If so, are they even working on this? I can find anything anywhere.
Technically you can work with ASP.NET Core packages targetting the Full Framework too. We have several apps that are targetting netcoreapp and others targetting net461 due to Azure packages, but both use ASP.NET Core packages. Of course, this is valid if your environment has the Full Framework (Azure App Service does).
You can see how both the netcoreapp and net46 versions go related to NetStandard here.
To achieve this, remove the Microsoft.NETCore.App from the dependencies and change netcoreapp1.0 to net461 on your frameworks declaration.
When the NetCore-compatible packages go live, just reverse the change and your app will keep working.
With regard to the Mobile Apps Server SDK support for ASP.NET Core, the work is on our backlog, but we don't have a timeline to share. This is partly because some of the dependencies (such as Asp.NET OData and OData) don't yet support ASP.NET Core.
In the meantime, you could try #matias-quaranta's answer for how to use both together.

Is there any way to use ajaxcontroltoolkit textditor in asp.net mvc5

I am developing asp.net mvc5 project and now I want to use text editor in the project so I have downloaded richtexteditor from nuget to the mvc project but I do not know how to use thisin the prohect .please help me to solve this problem
Ajax Control Toolkit can not be used in ASP.NET MVC projects, only non-MVC ASP.NET projects.

SubSonic 2.2 Scaffolding in MVC 1

Can anyone point me to a doc on how to get Subsonic's 2.2 scaffolding working in MVC 1. Or, does Subsonic's 2.2 scaffolding even work in MVC 1?
Love this software btw...Thanks Rob and others.
The scaffold stuff is a Server Control so in short - it won't work (MVC doesn't support controls).
That said you can use the MVC tooling to create what you need in short order...

Resources