Azure / Azure/azure-functions-powershell-worker

Add support for worker.config.json being determined by build target

Open
#1,126 0 comments 0 reactions 1 assignee Claimed by @andystaples View on GitHub
enhancement
Dominant language
C#
Stars
215
Forks
61
Avg merge
21h 4m
Merged PRs (30d)
6

Description

Currently, we manually choose which PS worker contains the top-level worker.config.json file (`powershell/worker.config.json`) by adding it as a contentFile to the build output. Add a system that uses targets allowing the consumer of the worker to set PowerShellWorkerConfigVersion and choose which worker config takes precedence:

Rough sketch:
Target file
```xml

<_PowershellWorkerConfigCopyDependsOn>
$(_PowershellWorkerConfigCopyDependsOn);
_PowershellWorkerConfigVersionCheck_{Version}


<_PowershellWorkerVersion Condition="'$(_PowershellWorkerVersion)' < '{Version}'>{Version}
<_PowershellWorkerConfig Condition="'$(_PowershellWorkerVersion)' == '{Version}'>this_instances_worker_config



```

For csproj
```xml
7.6
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.