Skip to content

Latest commit

 

History

History
53 lines (35 loc) · 2.7 KB

File metadata and controls

53 lines (35 loc) · 2.7 KB

TALXIS.DevKit.Build.Dataverse.WorkflowActivity

MSBuild integration for Dynamics 365 custom workflow activity assembly projects. Mirrors the Plugin package pattern: configures Visual Studio project type GUIDs, applies automatic Git-based versioning, and exposes metadata targets that allow Solution projects to discover and integrate workflow activity assemblies during build.

Installation

<PackageReference Include="TALXIS.DevKit.Build.Dataverse.WorkflowActivity" Version="0.0.0.1" PrivateAssets="All" />

Or use the SDK approach:

<Project Sdk="TALXIS.DevKit.Build.Sdk/0.0.0.1">
  <PropertyGroup>
    <ProjectType>WorkflowActivity</ProjectType>
  </PropertyGroup>
</Project>

How It Works

The package sets ProjectType to WorkflowActivity and configures ProjectTypeGuids for workflow activity recognition in Visual Studio.

Build-time targets

  • TalxisBeforeBuild (runs before BeforeBuild) -- executes GenerateVersionNumber followed by ApplyPluginVersionNumber to set AssemblyVersion, FileVersion, Version, and PackageVersion from Git.

Integration targets

These targets are called by TALXIS.DevKit.Build.Dataverse.Solution when it discovers this project via ProjectReference:

  • GetProjectType -- returns WorkflowActivity so the Solution build knows how to handle this reference.
  • GetWorkflowActivityAssemblyInfo -- returns WorkflowActivityRootPath, WorkflowActivityAssemblyId, TargetFramework, PublishFolderName, and AssemblyName for automatic workflow activity assembly metadata generation in the solution.

MSBuild Properties

Property Default Description
ProjectType WorkflowActivity Marks the project as a workflow activity for reference discovery.
Version (required) Base version; major/minor are used for Git versioning.
ApplyToBranches (none) Semicolon-separated branch rules (e.g. master;hotfix;develop:1;pr:3;feature/*:2).
LocalBranchBuildVersionNumber 0.0.0.1 Fallback version when Git versioning is not applied.
WorkflowActivityTargetFramework $(TargetFramework) or net462 Target framework used to locate the compiled workflow activity DLL.
WorkflowActivityPublishFolderName publish Publish folder name under bin\<Configuration>\<TFM>\.
WorkflowActivityAssemblyId (auto-generated) Explicit GUID for the workflow activity assembly metadata; a new GUID is generated if empty.

Related Packages

  • Depends on: TALXIS.DevKit.Build.Dataverse.Tasks, Microsoft.PowerApps.MSBuild.Plugin, Microsoft.CrmSdk.CoreAssemblies
  • Consumed by: TALXIS.DevKit.Build.Dataverse.Solution projects via ProjectReference