![]() |
VOOZH | about |
dotnet add package workflow-80 --version 6.0.3
NuGet\Install-Package workflow-80 -Version 6.0.3
<PackageReference Include="workflow-80" Version="6.0.3" />
<PackageVersion Include="workflow-80" Version="6.0.3" />Directory.Packages.props
<PackageReference Include="workflow-80" />Project file
paket add workflow-80 --version 6.0.3
#r "nuget: workflow-80, 6.0.3"
#:package workflow-80@6.0.3
#addin nuget:?package=workflow-80&version=6.0.3Install as a Cake Addin
#tool nuget:?package=workflow-80&version=6.0.3Install as a Cake Tool
A port of the Windows Workflow Foundation (WF) runtime to .NET 6. It is under the MIT License.
This is not an official Microsoft release of WF on .NET 6. CoreWF is a derivative work of Microsoft's copyrighted Windows Workflow Foundation.
Workflows are multi-step processes composed of activities. Activities are single-purpose elements that can be composed of other activities. Workflows have only one root activity in the same way that an XML document has only one root element.
Developers can create workflows in code:
var helloWorldActivity = new Sequence()
{
Activities =
{
new WriteLine
{
Text = "Hello World!"
}
}
};
The workflow can be run with the following code:
System.Activities.WorkflowInvoker.Invoke(helloWorldActivity);
The similarity of workflow/activity concepts to XML's document/element concepts means it's possible to write workflows in XML; specifically, an extension of XML called XAML . The "Hello World!" workflow from above can be written as:
<Activity
x:Class="WorkflowConsoleApplication1.HelloWorld"
xmlns="http://schemas.microsoft.com/netfx/2009/xaml/activities"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Sequence>
<WriteLine Text="Hello World!" />
</Sequence>
</Activity>
The XAML workflow can be loaded in CoreWF through ActivityXamlServices:
var helloWorldActivity = ActivityXamlServices.Load(new StringReader(xamlString));
System.Activities.WorkflowInvoker.Invoke(helloWorldActivity);
WF in the .NET Framework includes a visual, drag-and-drop designer for workflows that produces XAML. The "Hello World!" workflow looks like this in the designer:
The designer experience is not part of CoreWF but the XAML produced by the designer can be run in CoreWF (with some limitations). The WF designer experience is available in Visual Studio 2019 by enabling the "Windows Workflow Foundation" individual component in the Visual Studio Installer.
CoreWF targets .NET 6 and .NET 6 Windows. The .NET Windows target uses the System.Xaml included in the .NET Desktop Runtime. To use CoreWF on non-Windows runtimes, use the portable .NET 6 target. This is possible because CoreWF includes a copy of the System.Xaml code.
To add this library to your project, use the NuGet package.
Check out the for information on how to help CoreWF.
This project has adopted the code of conduct defined by the Contributor Covenant to clarify expected behavior in our community. For more information see the .NET Foundation Code of Conduct.
This project is supported by the .NET Foundation.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net8.0-windows7.0 net8.0-windows7.0 is compatible. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
Showing the top 1 NuGet packages that depend on workflow-80:
| Package | Downloads |
|---|---|
|
SD.Infrastructure.WWF
SD.Framework 基础设施 - WWF基础 |
This package is not used by any popular GitHub repositories.