workflow-core icon indicating copy to clipboard operation
workflow-core copied to clipboard

Workflow example for .net framework 4.52

Open SigiFromMettler opened this issue 9 years ago • 14 comments

Is it possible to get an example for a "classic" .net framework implementation?

Best regards Sigi

SigiFromMettler avatar Sep 22 '17 08:09 SigiFromMettler

Hi,

To use the latest version, you will need at least .NET 4.6. You could use WorkflowCore 1.2.7, that was the last version to support .NET 4.5.2

Kind regards, Daniel

danielgerlag avatar Sep 23 '17 17:09 danielgerlag

Hi Daniel Thanks for the answer.

With .net61, I get following message Error CS0103 The name 'TypeExtensions' does not exist in the current context WorkflowCore(net461)

Question: How is it possible to create a running workflow core 1.3.2 for the .net framework without major changes? Best regards, Sigi

SigiFromMettler avatar Sep 28 '17 09:09 SigiFromMettler

Could you share a project that can replicate this problem?

danielgerlag avatar Sep 29 '17 02:09 danielgerlag

Hi Daniel The only thing you have to do is the following change in the workflow core project file

TargetFrameworks>netstandard1.3;net461</TargetFrameworks

ItemGroup Condition=" '$(TargetFramework)' == 'net461' " Reference Include="System" / Reference Include="Microsoft.CSharp" / /ItemGroup This is a modified version from the 1.2.7 workflow core

PS: Is it possible to get a .net framework example (e.g. sample 6)?

Best regards Sigi

SigiFromMettler avatar Sep 29 '17 05:09 SigiFromMettler

This is not necessary because .net46 supports .net standard 1.3

https://docs.microsoft.com/en-us/dotnet/standard/net-standard

The samples will work exactly the same under the full framework

danielgerlag avatar Sep 29 '17 15:09 danielgerlag

Hi Daniel Thanks for the answer. I'm not able to generate a sample under .net framework. it's a pity but I have to implement a workflow engine under .net framework. I'll try another engine. PS: I know this Microsoft page. This is theory https://www.youtube.com/watch?v=qc2WFaMfdp8 Best regards Sigi

SigiFromMettler avatar Sep 29 '17 17:09 SigiFromMettler

What version of visual studio are you running?

danielgerlag avatar Sep 29 '17 18:09 danielgerlag

For this case VS2017 normaly VS2015

Best regards, Sigi

SigiFromMettler avatar Sep 29 '17 18:09 SigiFromMettler

Which update of VS2017 have you installed?

danielgerlag avatar Sep 29 '17 18:09 danielgerlag

I've installed the VS 2017community edition for this test. Normaly, we use VS2015 professional in our company. Why? Best regards, Sigi

SigiFromMettler avatar Sep 29 '17 18:09 SigiFromMettler

If you click Help -> About, what is the version number? eg. 15.3.0?

danielgerlag avatar Sep 29 '17 18:09 danielgerlag

Hmm, sorry but I'm at home now. I'm not sure but I've installed the software two weeks ago. Let me check the version at monday. But what could possibly be the problem? Best regards Sigi

SigiFromMettler avatar Sep 29 '17 19:09 SigiFromMettler

Here is a working .NET 4.6.1 project

ConsoleApp38.zip

danielgerlag avatar Sep 29 '17 23:09 danielgerlag

Hi Daniel Thank you very much. Best regards Sigi

SigiFromMettler avatar Oct 02 '17 12:10 SigiFromMettler