1
---
2
name: logicapps-custom-code-net10-migration
3
description: 'Migrate Azure Logic Apps Standard local-function custom-code projects from .NET 8 to .NET 10. Use for legacy Logic Apps custom-code workspace upgrades, project/package configuration, custom-worker settings, publication, and integrated VS Code debugging. Not for ordinary .NET applications, standalone Azure Functions, Consumption workflows, or cloud deployment.'
4
license: MIT
5
---
6
7
# Logic Apps custom code .NET 10 migration
8
9
Read [the migration procedure](references/migration.md) before editing. Resolve bundled
10
files relative to this skill, not the target repository. Python 3.11+ is required only
11
for the helper; do not install dependencies or start services merely by activating this skill.
12
13
## Procedure
14
15
1. Establish the solution root, custom-code `.csproj`, and Logic Apps `host.json` root.
16
Infer existing names/layout; ask only about ambiguous project selection or effects.
17
Read repository instructions and affected configuration, including dirty changes,
18
inherited build/package/SDK settings, workspace and tool paths. Do not inspect C#
19
contents unless separately authorized to diagnose a build failure.
20
2. Run the bundled helper in its default dry-run mode:
21
22
```powershell
23
python "<skill root>\scripts\migrate.py" --root "<solution root>"
24
```
25
26
Use `--project "<csproj path>"` to select among multiple custom-code projects.
27
The helper resolves `LogicAppFolderToPublish`; it does not require `Functions`
28
or `LogicApps` folder names. Read all reported blockers/warnings. It prints no
29
settings values and writes nothing in dry-run mode.
30
Default edits cover framework/SDK/publication/runtime alignment, not reference
31
dependency parity. Preserve absent Worker packages and existing debugger configuration.
32
Use `--integrated-debug` only when coordinated launching is requested/needed.
33
3. For a requested migration, apply the reviewed plan with the same coordinates and
34
`--apply`. Do not apply for a comparison/plan-only request. The helper guards changed
35
files and rolls back its own completed writes on failure; it is not an atomic
36
multi-file transaction or a persistent backup. Preserve unrelated user edits.
37
4. If the helper refuses central/conditional/imported configuration, newer unreviewed
38
SDK targets, or an unfamiliar debugger/layout, do not bypass the guard. Read the
39
owning configuration, resolve scope with the user when shared projects are affected,
40
and make targeted agent edits using repository tools. Never claim universal helper
41
coverage. Repeat the dry run to check idempotency for supported layouts.
42
5. Validate with the repository's build/analyzers and approved package source. Use the
43
exact SDK selected by VS Code, not just PATH. Verify assembly/dependency publication
44
and generated local-function metadata. Review custom build/publication hooks and
45
obtain separate authorization for any deployment/network effects before building;
46
a disposable copy does not neutralize those hooks. Obtain permission for trigger/connector
47
effects before host startup or workflow execution. Follow the installed Logic Apps
48
runtime skill/procedure when available; otherwise perform ownership-aware VS Code
49
launch and verify actual execution, not just debugger attachment.
50
If the SDK's directory scan fails on a clean build, rerun the helper dry run/apply
51
with `--ensure-output-directory`, then repeat the failed build. Do not introduce
52
the guard as a universal framework requirement. Resolve genuine missing-dependency
53
errors individually; do not add Worker/HTTP/telemetry packages just to match a sample.
54
6. Report changed configuration, dry-run/apply/tests, and separate states:
55
configuration migrated, build verified, local-function execution verified.
56
State blockers plainly. Always report the later deployment prerequisite:
57
Azure app settings must carry `LOGIC_APPS_CUSTOMCODE_DOTNETVERSION=net10.0` and
58
`FUNCTIONS_INPROC_NET8_ENABLED=1`. Deployment through the Logic Apps extension
59
in VS Code copies these settings; pipelines must explicitly include them.
60
A local settings file alone does not configure Azure. Do not deploy, change
61
Azure app settings, or assert cloud/production support.
62
63
## Invariants
64
65
- Only upgrade the custom-code library; preserve host .NET 8 configuration.
66
- Preserve names, workflows, connections, authentication, storage, unrelated dependencies,
67
workspace/task conventions, comments and secret exclusions.
68
- Do not add sample-only HTTP, telemetry or framework references.
69
- Do not introduce `Program.cs` or an executable worker host. Library `Main()` is
70
not automatically executed; source preservation is intent, not verified API compatibility.
71
- No C# rewrites, SDK installation, restore, host start, Azure mutation or persistent
72
secret backups inside the configuration helper.
73
- Do not silently downgrade packages, rewrite shared package management, suppress
74
restore/build errors, copy .NET 10 DLLs to `net472`, or manufacture passing checks.
75
76
Installation and test commands are in [README.md](README.md).
77
Bundled resources include the [migration helper](scripts/migrate.py),
78
[regression tests](tests/test_migrate.py), and [MIT license](LICENSE).
79