Blog Post

Azure Integration Services Blog
5 MIN READ

Logic Apps Standard custom code now supports .NET 10

WSilveira's avatar
WSilveira
Icon for Microsoft rankMicrosoft
Nov 05, 2026

You have a Logic Apps Standard workflow and C# code that belongs alongside it. You want to build and debug that code in the same workspace, using .NET 10.

The latest Azure Logic Apps (Standard) extension for Visual Studio Code (VS Code) now supports .NET 10 custom code. You can create new .NET 10 local-function projects and migrate your existing .NET 8 projects without turning them into separate Azure Functions apps.

Check your prerequisites

  • Install the Azure Logic Apps (Standard) extension for VS Code, version 5.1013.4.
  • Use Logic Apps Standard extension bundle 1.194.31.

After the extension's dependency setup completes, the .NET 10 software development kit (SDK) and runtime should be installed in its managed dependencies folder. On Windows, the default .NET location is:

%USERPROFILE%\.azurelogicapps\dependencies\DotNetSDK

Check that installation, rather than relying on the dotnet command elsewhere on your PATH. If you've customized the extension's dependency location, check the configured location instead.

New projects target .NET 10

When you create a new custom-code project through the extension, .NET 10 is now the only supported target. The .NET 8 option has been removed for new projects.

Existing .NET 8 projects still need a configuration migration before they target .NET 10. Updating the extension isn't the same as retargeting your project. Unchanged project will continue to run on .NET 8 until the configuration changes below are applied.

If you use the C# code action

If your workflow uses the C# code action, add the runtime setting to your Logic Apps project's settings - either in a local project or on an Azure application. Set LOGIC_APPS_CUSTOMCODE_DOTNETVERSION to net10.0.

Migrate an existing .NET 8 project

You don't need to start with a new workspace. Back up your workspace, including local configuration, before making the changes below. Paths are relative to each project's folder.

Changes in the custom-code project

File or settingChange
Project .csproj: target frameworkSet TargetFramework to net10.0. Keep the project as a library.
Project .csproj: SDK packagesMicrosoft.Azure.Workflows.Webjobs.Sdk: 1.4.1
Microsoft.Azure.Functions.Worker.Sdk: 2.0.7
Project .csproj: supporting packagesAlign dependencies as needed. Our migration required:
Microsoft.Azure.Functions.Worker: 2.51.0
Existing Microsoft.Extensions.Logging: 10.0.0
Existing Microsoft.Extensions.Logging.Abstractions: 10.0.0
Project .csproj: dependency copying and publicationSet CopyLocalLockFileAssemblies to true. Keep build-triggered publication into the Logic Apps folder.
.vscode\settings.jsonUpdate the framework segment of azureFunctions.deploySubpath to net10.0.

Those package versions describe the configuration we tested, not a universal minimum dependency set. Resolve the dependencies your project actually needs rather than copying every package from a sample.

A sample project file will look like this

<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <IsPackable>false</IsPackable>
    <TargetFramework>net10.0</TargetFramework>
    <AzureFunctionsVersion>v4</AzureFunctionsVersion>
    <OutputType>Library</OutputType>
    <PlatformTarget>AnyCPU</PlatformTarget>
    <LogicAppFolderToPublish>$(MSBuildProjectDirectory)\..\{your logic app target folder}</LogicAppFolderToPublish>
    <CopyToOutputDirectory>Always</CopyToOutputDirectory>
    <SelfContained>false</SelfContained>
    <CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
 </PropertyGroup>
 
  <ItemGroup>
    <PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.Abstractions" Version="1.3.0"/>
    <PackageReference Include="Microsoft.Azure.Functions.Worker" Version="2.51.0"/>
    <PackageReference Include="Microsoft.Azure.Functions.Worker.Sdk" Version="2.0.7"/>
    <PackageReference Include="Microsoft.Azure.Workflows.Webjobs.Sdk" Version="1.4.1"/>
    <PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="10.0.0"/>
    <PackageReference Include="Microsoft.Extensions.Logging" Version="10.0.0"/>
  </ItemGroup>
 
  <Target Name="TriggerPublishOnBuild" AfterTargets="Build">
      <CallTarget Targets="Publish"/>
  </Target>
</Project>

Changes in the Logic Apps project

File or settingChange
local.settings.json: custom-code runtimeSet Values.LOGIC_APPS_CUSTOMCODE_DOTNETVERSION to net10.0.
local.settings.json: host runtime flagKeep Values.FUNCTIONS_INPROC_NET8_ENABLED set to 1. This is still required.
.vscode\launch.json: coordinated debuggingUse a launch configuration with:
type=logicapp and request=launch
funcRuntime=coreclr
customCodeRuntime=coreclr
isCodeless=true

Verify the migration

Save all files, restore, and build. Confirm publication under lib\custom\net10.0 in the Logic Apps folder, then run the workflow that calls your edited function and verify its breakpoint.

Use the ready-made migration skill

We've prepared the logicapps-custom-code-net10-migration skill to guide a coding agent through the same process. It inspects your workspace, plans configuration changes before applying them, and guides build and publication verification. It preserves your function and workflow implementations rather than rewriting them.

The skill is available in Awesome Copilot.

With GitHub CLI (command-line interface) version 2.90.0 or later, inspect the skill and install it for Copilot across projects. These skill commands are currently in preview.

gh skill preview github/awesome-copilot logicapps-custom-code-net10-migration

gh skill install github/awesome-copilot logicapps-custom-code-net10-migration --agent github-copilot --scope user

Installation makes the skill available to Copilot; it doesn't run the migration. After installation, you can ask your agent:

Migrate this Logic Apps Standard .NET 8 custom-code workspace to .NET 10 using the logicapps-custom-code-net10-migration skill. Preserve my workflows, back up the project first, and include coordinated VS Code debugging.

Keep the host and deployment settings in view

The custom-code target framework isn't the Logic Apps host runtime. Keep the existing host settings, including FUNCTIONS_WORKER_RUNTIME=dotnet. Don't switch the host to dotnet-isolated just because the custom code targets .NET 10.

Preserving your existing code is the migration's starting point, not a guarantee that it will build and run unchanged. Use the build and an executed local function to check the result.

For Azure execution, the deployed Logic Apps application settings must include both LOGIC_APPS_CUSTOMCODE_DOTNETVERSION=net10.0 and FUNCTIONS_INPROC_NET8_ENABLED=1. The .NET 8 host flag is still required even though your custom code targets .NET 10.

When you deploy through the Logic Apps extension in VS Code, these settings are copied to the Azure app. If you deploy through a pipeline, make sure your deployment configuration explicitly includes both application settings. A local settings file alone doesn't configure the Azure app, so verify the deployed runtime configuration after deployment.

The migration skill doesn't change Azure resources as a side effect.

Try the updated extension with one of your custom-code projects. If migration or debugging needs a step we've missed, share the configuration and the symptom in the comments, without credentials or private data. I want to hear where the build or debugging experience still gets in your way.

 

Updated Nov 10, 2026
Version 6.0

15 Comments

  • ronaldbosma's avatar
    ronaldbosma
    Brass Contributor

    I get a build error in my GitHub Actions workflow when building my .NET 10 custom code project with the Release configuration using "dotnet build --configuration Release". I think it's because .NET 11 is preinstalled on the agent. I explicitely install .NET 10, but "11.0.100" is returned when executing "dotnet --version".

    I have .NET 11 installed on my local machine and I can reproduce the issue by executing "dotnet build --configuration Release" from a normal Windows Terminal. This is the error output.

    Restore complete (0,0s)

    WorkerExtensions net8.0 succeeded (1,3s) → obj\Release\net10.0\WorkerExtensions\bin\Release\net8.0\Microsoft.Azure.Functions.Worker.Extensions.dll

    Functions net10.0 failed with 1 error(s) (0,4s) → bin\Release\net10.0\publish\

    C:\Users\...\.nuget\packages\microsoft.azure.workflows.webjobs.sdk\1.4.0\build\Microsoft.Azure.Workflows.WebJobs.Sdk.targets(55,9): error Failed to process the functions.metadata at the following location: C:\...\azure-logicappsstandard-azd-extension-sample\src\logicAppWithCode\Functions\bin\Release\net10.0\. Exception: 'Failed to load the assembly named C:\...\azure-logicappsstandard-azd-extension-sample\src\logicAppWithCode\Functions\bin\Release\net10.0\Functions.dll. Exception: 'Could not load file or assembly 'Functions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. A different copy of assembly 'Functions' is already loaded. Loaded assembly: 'Functions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' from 'C:\...\azure-logicappsstandard-azd-extension-sample\src\logicAppWithCode\Functions\bin\Debug\net10.0\Functions.dll'''

    Build failed with 1 error(s) in 2,0s


    When I execute "dotnet build" without release configuration from the Windows Terminal, the build succeeds.

     

    When I execute 'dotnet --list-sdks' in my Windows Terminal, I get these SDKS:

    10.0.403 [C:\Program Files\dotnet\sdk]

    10.0.404 [C:\Program Files\dotnet\sdk]

    11.0.100 [C:\Program Files\dotnet\sdk]

     

    When I execute "dotnet build --configuration Release" from a terminal in VS Code, it succeeds because it uses the installed .NET SDKs from the Logic App extension. When I execute 'dotnet --list-sdks', I get these SDKS:

    6.0.428 [C:\Users\...\.azurelogicapps\dependencies\DotNetSDK\sdk]

    8.0.427 [C:\Users\...\.azurelogicapps\dependencies\DotNetSDK\sdk]

    10.0.403 [C:\Users\...\.azurelogicapps\dependencies\DotNetSDK\sdk]

     

    By adding a global.json with the following contents to my Logic App's workspace folder, "dotnet build --configuration Release" succeeds from my normal Windows Terminal as well. 

    {
      "sdk": {
        "version": "10.0.403",
        "rollForward": "latestFeature"
      }
    }

     

  • ronaldbosma's avatar
    ronaldbosma
    Brass Contributor

    Not a big problem, but a former colleague and I both noticed that after upgrading to .NET 10, the assemblies of the custom code project are no longer shown on the Artifacts > Assemblies screen of a Logic App. They are still visible when using .NET 8.

    I suspect this is because the assemblies are stored in the '/lib/custom/net10.0' folder, whereas the portal seems to be looking in '/lib/custom/net10'. I noticed this difference by inspecting the network traffic in my browser's developer tools.

  • PlamenP's avatar
    PlamenP
    Copper Contributor

    Hi WSilveira​ 

    thanks for the .NET 10 guidance!

    We use NuGet-based projects with custom built-in connectors (our own), referenced as NuGet packages. We have no custom code functions.

    Following your June post, we set LOGICAPP_INPROC_REDIRECT=1 and still run in-proc on .NET 8.
    The latest Microsoft.Azure.Workflows.WebJobs.Extension (1.194.31) targets net8.0.

    1. Our connectors register through IWebJobsStartup / IServiceOperationsProvider. Is it expected to still work in the out-of-proc host and on .NET 10? If not, how should we register a custom built-in connector there?

    2. Is there some timeline on the guidance for NuGet-based apps announced in the June post?

    3. Until then, is it correct to stay on net8.0 with FUNCTIONS_INPROC_NET8_ENABLED=1 and LOGICAPP_INPROC_REDIRECT=1?


    Thanks much in advance and kind regards!
    Plamen

    • WSilveira's avatar
      WSilveira
      Icon for Microsoft rankMicrosoft

      Hi Plamen,

      Thanks for the detailed questions. We've now validated your exact scenario end to end, locally and in Azure: a NuGet-based app with a custom built-in connector, referenced as a NuGet package, and no custom code. The full walkthrough is in [link to the new post]. Here's the short version.

      1. Does IWebJobsStartup / IServiceOperationsProvider still work on .NET 10?

      Yes. Keep your [assembly: WebJobsStartup] attribute, your IWebJobsStartup registration and your IServiceOperationsProvider implementation as they are. You don't change any C# or workflows, and you don't add an isolated worker project or a Program.cs file.

      The net8.0 target of Microsoft.Azure.Workflows.WebJobs.Extension doesn't stop a net10.0 app from referencing it. 1.194.31 is newer than the 1.170.91 minimum, so you don't need to downgrade. These are the changes you do need:

      • Projects: retarget the connector, its tests and the Logic App project to net10.0, pin the .NET 10 SDK (10.0.403 or later) in global.json, and publish a new connector package version.
      • Restore errors: fix any NU1605 downgrade errors with direct package references. For us that was Microsoft.Extensions.DependencyInjection.Abstractions 10.0.0 and Microsoft.Extensions.Primitives 9.0.9. Yours may differ.
      • Keep Microsoft.NET.Sdk.Functions (4.5.0 or later) in the Logic App project. It generates the bin\extensions.json file that registers your connector.
      • Local: set FUNCTIONS_WORKER_RUNTIME to dotnet-isolated in local.settings.json and use Core Tools 4.16.0 or later. With dotnet, Core Tools always starts its .NET 8 in-process host. This doesn't move you to the isolated worker model; it only changes which host starts.
      • Azure: keep FUNCTIONS_WORKER_RUNTIME=dotnet and remove LOGICAPP_INPROC_REDIRECT. Also delete the AzureFunctionsJobHost__extensionBundle__id and __version app settings if they're there. They override host.json, and your connector won't register: you'll see "'/serviceProviders/…' is not valid" and no callback URL.

      Our sample connector has an action. We haven't validated trigger providers yet, so test every operation your connectors expose.

      1. Is there a timeline for the NuGet guidance?

      We don't have a confirmed date for the Microsoft Learn update. The new post is the guidance today. I'd recommend you don't wait, because .NET 8 reached end of support on November 10, 2026.

      1. Is it correct to stay on net8.0 with those settings for now?

      Yes, while you prepare. Keep your existing app settings, including LOGICAPP_INPROC_REDIRECT=1. They keep your current .NET 8 deployment stable while you validate the migration.

      Remove the redirect when you deploy the .NET 10 package, not before. If you remove it early, the app moves to the new host before your connectors are rebuilt. On .NET 10, FUNCTIONS_INPROC_NET8_ENABLED isn't needed, but it's harmless if you leave it.

      If you need to roll back, redeploy the .NET 8 package and restore LOGICAPP_INPROC_REDIRECT=1.

      Try it on a sample first

      This repo has a working sample and the migration skill, so you can run the migration on it before you touch your own connectors: https://github.com/wsilveiranz/custom-connector-migration-net10 - it has a .net8.0 branch to use as a starter point if you want.

      If something breaks, post the connector shape (actions, triggers, converters), your package versions and the error here, and I'll take it back to the team.

      I am preparing a blog post with all this guidance, but wanted to give you the information first. Keep an eye on Tech Community for the full post.

      Cheers, Wagner (with the invaluable help of Copilot)

      • PlamenP's avatar
        PlamenP
        Copper Contributor

        Hi Wagner,

        Thanks much for the quick response, the walkthrough (the "short" version ;] ) and the sample (with the skill). 
        Looks quite clear, so we'll start migrating - connectors and projects. I'll keep you posted.

        Kind regards,
        Plamen

  • We have noticed the new template for Logic App with Custom Code has a number of differences vs what is provided in the instructions above - can you confirm if these should be applied to our existing code bases when upgrading?

    - Program.cs file is added (I assume we use this instead of the StartupConfiguration/IConfigureStartup implementation to enable dependency injection)

    - Additonal package references are added:

    •   <FrameworkReference Include="Microsoft.AspNetCore.App" /> (adding this then adds NU1510 warnings that 

      Microsoft.Extensions.Logging and Microsoft.Extensions.Logging.Abstractions will not be pruned and therefore their PackageReference item should be removed)

    •   <PackageReference Include="Microsoft.ApplicationInsights.WorkerService" Version="2.21.0" />
    •   <PackageReference Include="Microsoft.Azure.Functions.Worker" Version="2.51.0" />
    •   <PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.Http.AspNetCore" Version="2.1.0" />

    - Targets for workarounds:

    •   Workaround: FindFunctionJsonFolders expects the output directory to exist
    •   Workaround: Host resolves custom code from lib/custom/net472/ but build outputs to lib/custom/net10.0/. Copy published output to net472 folder as well so the host can find it.
    • WSilveira's avatar
      WSilveira
      Icon for Microsoft rankMicrosoft

      ChrisStylianou​,

      Thanks for reporting. Extension version 5.1013.2 was pointing to an old version of the project template. The latest version of the template have the following fixes:

       

      1. Don't include Program.cs file (since the target of the project is a library not a program).
      2. Cleans the cs project removing not required references and post build target workarounds
      3. Uses the latest required SDKs (most notable is Microsoft.Azure.Workflow.Webjobs.Sdk to 1.4.1 - which also fixes the dependency injection issue that ronaldbosma​ raised).

       

      Please check the latest version and let me know if you find any issues.

  • ronaldbosma's avatar
    ronaldbosma
    Brass Contributor

    Hi WSilveira​ 

    Not sure if this is a bug, but I'm running into another issue.

    I've created a couple of functions in https://github.com/ronaldbosma/track-availability-in-app-insights/blob/main/src/logicApp/Functions/AvailabilityTestFunctions.cs that I use to track availability in Application Insights. In the code, I create a new Activity in the TrackAvailability method, which under the hood relies on Activity.Current.

    Before my upgrade, my workflow logging and the availability telemetry were correlated in Application Insights. Here's a screenshot with the availability telemetry at the bottom: https://ronaldbosma.github.io/images/track-availability-in-app-insights-series/track-availability-in-app-insights-using-logic-app-workflow/logic-app-workflow-end-to-end-transaction-details.png

    After upgrading to .NET 10, the availability telemetry is no longer correlated with the workflow logging. (Traces when using _logger.LogInformation are still correlated.)

    I've added the following to the `TrackAvailability` method:

    Activity currentActivity = Activity.Current;
    _logger.LogInformation(
      "Current Activity Static: Id={Id}, IdFormat={IdFormat}, " +
      "TraceId={TraceId}, SpanId={SpanId}, ParentSpanId={ParentSpanId}",
      currentActivity?.Id,
      currentActivity?.IdFormat,
      currentActivity?.TraceId,
      currentActivity?.SpanId,
      currentActivity?.ParentSpanId);

     

    This is logged in .NET 8:

    Severity level: Information, Message: Current Activity Static: Id=00-83fc6659fbfc9f475575d0f73c7b70d7-3e208e36e4d0b070-00, IdFormat=W3C, TraceId=83fc6659fbfc9f475575d0f73c7b70d7, SpanId=3e208e36e4d0b070, ParentSpanId=0000000000000000

    This is logged in .NET 10:

    Severity level: Information, Message: Current Activity Static: Id=(null), IdFormat=(null), TraceId=(null), SpanId=(null), ParentSpanId=(null)


    Activity.Current is null after the upgrade to .NET 10. Is this a bug/regression or do I have to correlate my availability telemetry another way in my Logic App?

    • WSilveira's avatar
      WSilveira
      Icon for Microsoft rankMicrosoft

      Hi Ronald,

      Thanks for the details. I can reproduce this with a .NET 10 custom code project, and I've found the cause and a workaround.

      Why  Activity.Current  is null

      On .NET 8, your code had an active  Activity  when it ran. On .NET 10, custom code runs in an isolated worker. That worker creates a per-call  Invoke  activity, linked to the workflow's trace context, only when an  ActivityListener  is subscribed to the  Microsoft.Azure.Functions.Worker  source. Nothing subscribes by default, so  Activity.Current  is null. Your  new Activity("AvailabilityContext")  then starts a new trace, and the availability telemetry isn't correlated with the workflow.

       _logger.LogInformation  traces are still correlated because the logger gets its context from the host through a different path.

      Workaround

      Register a listener in your existing  Startup.Configure :

       

      //------------------------------------------------------------
      // Copyright (c) Microsoft Corporation. All rights reserved.
      //------------------------------------------------------------
      
      namespace Contoso.Utils
      {
          using System;
          using System.Diagnostics;
          using Microsoft.Azure.Functions.Extensions.Workflows;
          using Microsoft.Extensions.DependencyInjection;
      
          /// <summary>
          /// Configures services for the custom code worker.
          /// </summary>
          public class Startup : IConfigureStartup
          {
              public const string EnableActivityListenerSetting = "CUSTOMCODE_ENABLE_WORKER_ACTIVITY_LISTENER";
      
              private static ActivityListener workerActivityListener;
      
              public static bool WorkerActivityListenerEnabled => workerActivityListener != null;
      
              public void Configure(IServiceCollection services)
              {
                  if (!string.Equals(Environment.GetEnvironmentVariable(EnableActivityListenerSetting), "true", StringComparison.OrdinalIgnoreCase))
                  {
                      return;
                  }
      
                  // The isolated worker only creates its per-invocation "Invoke" Activity (parented to the host's
                  // traceparent) when a listener subscribes to its ActivitySource; otherwise Activity.Current is null.
                  workerActivityListener = new ActivityListener
                  {
                      ShouldListenTo = source => source.Name.StartsWith("Microsoft.Azure.Functions.Worker", StringComparison.Ordinal),
                      Sample = (ref ActivityCreationOptions<ActivityContext> _) => ActivitySamplingResult.AllData,
                  };
      
                  ActivitySource.AddActivityListener(workerActivityListener);
              }
          }
      }
      

      I've added a sample here: wsilveiranz/custom-code-exception-tracking-samples

      Keep the listener in a static field so it stays alive for the life of the worker. You don't need to change  TrackAvailability : your  new Activity(...)  picks up  Activity.Current  as its parent again.

      With the listener registered, I get this locally on .NET 10:

      • Activity.Current.Id = 00-d96b925068c2b790ad0b7521810212ec-a261a4014efb3812-00
      • Activity.Current.ParentId = 00-d96b925068c2b790ad0b7521810212ec-34d5ba0f94942b0f-00
      • Source / OperationName = Microsoft.Azure.Functions.Worker / Invoke

      Your availability activity then gets the same trace ID as the workflow call, and that ID becomes the operation ID in Application Insights.

      Two notes

      • Don't try to read the trace context from a  FunctionContext  parameter. In custom code it fails with an  InvalidCastException  because your assembly is loaded in an isolated assembly load context.

      • I've confirmed that  Activity.Current  is set and carries the workflow's trace ID. I haven't yet confirmed in Application Insights that the end-to-end transaction view shows the availability record. I'm testing that in Azure now. If you try it first, let me know what you see.

      I'm also raising with the team whether the worker should do this by default, so custom code gets the same behaviour it had on .NET 8.

      Cheers,

      Wagner (with the useful help of Copilot)

      • ronaldbosma's avatar
        ronaldbosma
        Brass Contributor

        Hi WSilveira​.

        It works and I've verified that the end-to-end transaction view in App Insights shows the availability telemetry and workflow logging together.

        Thanks again for the help,
        Ronald

        I'm getting a 404 Not Found on https://github.com/wsilveiranz/custom-code-exception-tracking-samples by the way.

  • ronaldbosma's avatar
    ronaldbosma
    Brass Contributor

    Hi WSilveira​, 

    Thanks for this write-up!

    I'm running into an issue with one of my projects. I'm using dependency injection as described in https://learn.microsoft.com/en-us/azure/logic-apps/create-run-custom-code-functions#enable-dependency-injection

    However, the project fails to build because the IConfigureStartup interface appears to be missing from the Microsoft.Azure.Functions.Extensions.Workflows namespace.

    The interface is available in version 1.3.0 of the Microsoft.Azure.Workflows.WebJobs.Sdk NuGet package, but it seems to be missing in version 1.4.0.

    Is there a fix or alternative way to implement dependency injection with the newer package version?

    Thanks in advance for your help!

    • WSilveira's avatar
      WSilveira
      Icon for Microsoft rankMicrosoft

      Hi ronaldbosma​,

      Thanks for reporting this issue. We found a dependency issue on the Microsoft.Azure.Workflows.WebJobs.Sdk 1.4.0, so we fixed and published a new version (1.4.1). Update the versionon your project to:

      <PackageReference Include="Microsoft.Azure.Workflows.Webjobs.Sdk" Version="1.4.1"/>

      This should fix the problem.
      I've also updated the skill to use the new version (1.4.1) and we will have a new extension update that creates new project using the updated version on Monday.

      Let me know if that fix it for you too.