Share via


System.Activities for .Net Core

Question

Wednesday, June 27, 2018 10:31 AM

I am using 

using System.Activities;

using System.Activities.Expressions;.

using System.Windows.Markup;

using System.Activities.Tracking;

using System.Activities.Validation;

using System.Activities.Hosting; in my .Net Framework 4.6.1 Project

using System.Activities.XamlIntegration;

using Microsoft.Activities.UnitTesting;

Namespaces in my .Net Framework 4.6.1 , What will be the equivalent namespace in .Net Core 2.1.

All replies (7)

Wednesday, June 27, 2018 10:39 AM

.NET Core 3 will have XMAL support.

https://blogs.msdn.microsoft.com/dotnet/2018/05/07/net-core-3-and-support-for-windows-desktop-applications/


Wednesday, June 27, 2018 1:44 PM

Thanks,  So .Net Core 2.1 doesn't have any equivalent for these namespaces , How can then I implement System.Activites and related functionality in .Net Core 2.1


Wednesday, June 27, 2018 1:51 PM

Thanks,  So .Net Core 2.1 doesn't have any equivalent for these namespaces , How can then I implement System.Activites and related functionality in .Net Core 2.1

First, this is a ASP.NET forum not XAML.  You're asking the wrong audience.   I suggest that you ask this question support forum where the members a familiar with XAML.  Another option is asking this question on ASP Core GIT repo.


Wednesday, June 27, 2018 1:55 PM

I am trying to port an application from .Net Framework 4.6.1 to .Net Core 2.1 , so I asked in the ASP.NET Core section.


Wednesday, June 27, 2018 2:19 PM

Hi,

Yes but it seems more a Windows based rather than a Web based application ? IMHO there is no need to rush to ASP.NET Core especially for an application that use many features that are beyond the current API surface exposed by .NET Core 2.x. Do you expect some real benefit ?


Wednesday, June 27, 2018 2:22 PM

Thanks,  So .Net Core 2.1 doesn't have any equivalent for these namespaces , How can then I implement System.Activites and related functionality in .Net Core 2.1

Quite a lot has been discussed, so read it through https://github.com/dotnet/corefx/issues/2394


Wednesday, June 27, 2018 2:41 PM

Thanks,  So .Net Core 2.1 doesn't have any equivalent for these namespaces , How can then I implement System.Activites and related functionality in .Net Core 2.1

you write a windows only .net core app. set the target framework to net472. then you can include windows only dlls. you may need to create a .net standard library project in .net 4.7.2 as a wrapper. then include this project in .net core solution. 

note: as windows workflow is not likely to be ported to core (its barely supported now), you should really look at an alternative.