System.Activity for dotNET 6

@alexandru

Hello Alexandru,

referring to our discussion here a few tiny questions:

  1. Do you plan to release the System.Activity and Workflow.Foundation classes for dotNET 6 independently from your release 22.4? This would give us a chance to build packages in advance and make them available with the upcoming release that supports dotNET 6.

  2. Would you recommend building packages that support dotNET 6 right now?

  3. From your perspective, is it necessary to support dotNET 5 and dotNET 6 in the future so that packages can also be used from the release 21.10? Or how long do you think we should support packages for the release >= 21.10 until full dotNET 6 support?

Thanks and best regards
Stefan

@alexandru

Hello Alexandru,

this morning I tried to build a cross-plattform activity for Windows and Mac OS X but I got a lot of warnings, the compatibility of the platform was checked and not passed (CA1416).

Warning CA1416: This call site is reachable on: 'Windows' all versions. 'OutArgument<string>.Set(ActivityContext, string)' is only supported on: 'Windows' 7.0 and later.
Warning CA1416: This call site is reachable on: 'macOS/OSX'. 'OutArgument<string>.Set(ActivityContext, string)' is only supported on: 'Windows' 7.0 and later.
Warning CA1416: This call site is reachable on: 'Linux'. 'OutArgument<string>.Set(ActivityContext, string)' is only supported on: 'Windows' 7.0 and later.
Warning CA1416: This call site is reachable on all platforms. 'OutArgument<string>.Set(ActivityContext, string)' is only supported on: 'Windows' 7.0 and later.

As far as I can see is the library System.Activities.dll, which contains the OutArgument class, only for the target platform Windows7.0. So I would like to add one more to my questions above:

  1. When do you plan to release your System.Activities library for the net5.0 respectively net6.0 target platform?

Thanks and best regards
Stefan

@StefanSchnell you got it right :slight_smile: we are heading to .NET 6 as a LTS version

  1. Yes, System.Activity and Workflow.Foundation are independent of 22.4 release, we plan to have them available ahead. Most likely we will have something in January - February next year.

  2. You can plan ahead :slight_smile: but until we deliver the first port of Studio/Robot you will not benefit from the new activities

  3. We will provide a patch for 21.10 with NET6 so in the future having just NET6 should also cover this usecase. We don’t have a timeline yet, but it will happen early next year.

  4. What version of System.Activities are you using? It should also work for cross-platform with net5.0.

Hope this helps,

1 Like

@alexandru

Hello Alexandru,

thank you very much for your reply.

I use the version 5.0.0-20210922 from the Studio release 21.10.2.

Best regards
Stefan

The version looks good… Can you maybe take a look at our guide for .NET activities and try again? Maybe you missed something?

Thanks,

1 Like

@alexandru

Hello Alexandru,

are you really sure?

If I compile the activity with the mac OS X Assistant’s System.Activity.dll, it works without any problems. With the Windows library I get the errors mentioned above. And the manifest of the Windows library shows that the TargetPlatform and the SupportedOSPlatform attributes are Windows7.0.

Thanks and best regards
Stefan