Skip to content

Package a worker

Make dotnet publish write a worker's nupkg. The properties and what the nupkg contains are in Packaging a worker.

Opt in

Set VirtufinPackageWorker in the worker's csproj. dotnet publish then writes <VirtufinWorkerNupkgDir>/<PackageId>.nupkg:

<PropertyGroup>
  <AssemblyName>MyWorker</AssemblyName>
  <PackageId>Virtufin.Worker.My</PackageId>
  <PackageVersion>0.0.0-local</PackageVersion>
  <Authors>Virtufin</Authors>
  <Description>What the worker does.</Description>
  <VirtufinPackageWorker>true</VirtufinPackageWorker>
</PropertyGroup>

The target comes in through the package's buildTransitive/ folder, so it is there whether the worker references the DevKit directly or through a domain devkit. Projects that don't opt in (devkits, tests, notebooks) are unaffected.