.net
473 TopicsDurable Task extension for Microsoft Agent Framework is now Generally Available
Today, we’re excited to announce the general availability of the Durable Task extension for Microsoft Agent Framework. It brings the reliable execution model of Durable Task to Agent Framework, helping agents and agentic workflows recover from failures and interruptions without losing their progress. Saving a conversation is only part of the story. When an agent is doing work, your application also needs to know which steps have finished, which jobs are still running, and whether it’s waiting for someone’s approval. If the application restarts, that information makes the difference between continuing the work and figuring out where to begin again. The Durable Task extension keeps track of that state for you. Agents can continue the same conversation after a worker restart, and workflows can pick up interrupted work without repeating steps whose results have already been saved. They can also wait for approvals or external events without keeping a worker running. You can focus on what your agents do, with less state management and recovery code to build yourself. Run durable agents and workflows in Azure Functions, or self-host them in your own .NET or Python application. Key capabilities of the Durable Task extension The Durable Task extension adds two capabilities to Microsoft Agent Framework that work together: durable agents and durable workflows. Durable agents keep conversation and session state between requests. Each agent call runs through Durable Task, so saved session state stays available even if a worker restarts or another application instance handles the next request. The conversation can continue without relying on the original process. Durable workflows keep track of work that takes multiple steps or runs over time. You can write Durable Task orchestrations to coordinate agent calls, application activities, and external events. If you prefer Agent Framework’s graph-based workflows, the extension runs those graphs as Durable Task orchestrations and handles registration of their agents and executors. The two come together when an interactive agent needs to start work that won’t finish in a single request. The agent can launch a workflow and return its instance ID rather than keep the user waiting. The workflow continues independently, including waiting for results or approvals. The agent can use that ID later to check progress or send an event, such as an approval decision. The examples below show how this works in practice: continuing a conversation, coordinating work across multiple steps, waiting for someone’s input, and managing session state and model context. Later in the post, we’ll show how to set up the host that runs these examples. Agent sessions that survive interruptions Suppose a customer starts a support conversation, then comes back with their order number. In between, your application restarts or another worker takes over. The agent should be able to pick up the conversation where it left off. Agent Framework can keep sessions in memory or use a persistent history provider to save messages between requests. A durable agent builds on that with a managed path for running agent calls and restoring session state, so you don’t have to wire that together yourself. With the Durable Task extension, each conversation has a stable durable session ID, and saved session state lives outside the worker process. Your application keeps the session reference. When the customer returns, another compatible worker can use that reference to continue the same conversation. The examples below show two separate requests. The first starts the conversation and serializes its session reference, which your application must save for later use. Serialization alone does not save it. The later request loads that reference and reconnects to the same durable session, without needing the original session object. Both requests use the same Durable Task backend, with SupportAgent registered through the extension. C# using System.Text.Json; using Microsoft.Agents.AI; using Microsoft.Agents.AI.DurableTask; // First request: start the conversation and return its session object. static async Task<JsonElement> StartConversationAsync( IServiceProvider services) { AIAgent agent = services.GetDurableAgentProxy("SupportAgent"); AgentSession session = await agent.CreateSessionAsync(); await agent.RunAsync( "I need help with my order.", session: session); // SerializeSessionAsync returns only the lightweight JSON session reference // (containing the durable session ID); Durable Task already stores the // conversation history in the backend. return await agent.SerializeSessionAsync(session); } // Later request, after a restart or on another compatible worker. // Load savedSession from your application's durable storage before calling. static async Task<AgentResponse> ContinueConversationAsync( IServiceProvider services, JsonElement savedSession) { AIAgent agent = services.GetDurableAgentProxy("SupportAgent"); AgentSession session = await agent.DeserializeSessionAsync(savedSession); return await agent.RunAsync( "The order number is 12345.", session: session); } Python from typing import Any from agent_framework import AgentResponse from agent_framework_durabletask import ( DurableAIAgentClient, DurableAgentSession, ) # First request: start the conversation and return its serialized session reference. def start_conversation( durable_client: DurableAIAgentClient, ) -> dict[str, Any]: agent = durable_client.get_agent("SupportAgent") session = agent.create_session() agent.run("I need help with my order.", session=session) # to_dict() returns only the lightweight session reference dict (containing # durable_session_id); Durable Task already stores the conversation history # in the backend. return session.to_dict() # Later request, after a restart or on another compatible worker. def continue_conversation( durable_client: DurableAIAgentClient, saved_session: dict[str, Any], ) -> AgentResponse: agent = durable_client.get_agent("SupportAgent") session = DurableAgentSession.from_dict(saved_session) return agent.run("The order number is 12345.", session=session) Coordinate multi-step agentic workflows reliably A simple customer question can lead to several steps: look up records, prepare a response, and send it to the right person or system. If something interrupts the process halfway through, your application needs to know what has already finished and what still needs to happen. Durable Task saves the results of agent calls and activities as the workflow progresses. After an interruption, the orchestration replays its history, reuses saved results, and continues with unfinished work. Completed agent calls whose results have been recorded don’t need to call the model again during replay, avoiding unnecessary token usage and inference costs during recovery. C# // Registered as the Durable Task orchestration for this workflow. static async Task<string> RunOrderResponseWorkflowAsync( TaskOrchestrationContext context, string orderNumber) { DurableAIAgent agent = context.GetAgent("OrderAgent"); AgentSession session = await agent.CreateSessionAsync(); AgentResponse<TextResponse> summary = await agent.RunAsync<TextResponse>( message: $"Summarize order {orderNumber}.", session: session); AgentResponse<TextResponse> reply = await agent.RunAsync<TextResponse>( message: $"Draft a customer reply: {summary.Result.Text}", session: session); return reply.Text; } Python # Registered as the Durable Task orchestration for this workflow. def run_order_response_workflow( context: OrchestrationContext, order_number: str, ): agent_context = DurableAIAgentOrchestrationContext(context) agent = agent_context.get_agent("OrderAgent") session = agent.create_session() summary = yield agent.run( messages=f"Summarize order {order_number}.", session=session, ) reply = yield agent.run( messages=f"Draft a customer reply: {summary.text}", session=session, ) return reply.text Make graph-based workflows durable If you prefer to build workflows as graphs in Agent Framework, you can use that approach too. The Durable Task extension runs your graph as a durable orchestration, keeping track of its progress so it can recover from failures and interruptions. You only need to register the graph. The extension takes care of registering its agents, activities for the other executors, and the orchestration that runs it. C# Workflow expertTeamWorkflow = new WorkflowBuilder(questionParser) .WithName("ExpertTeamReview") .AddFanOutEdge(questionParser, [biologist, physicist]) .AddFanInBarrierEdge([biologist, physicist], responseAggregator) .Build(); services.ConfigureDurableWorkflows( options => options.AddWorkflow(expertTeamWorkflow)); Python expert_team_workflow = ( WorkflowBuilder( name="ExpertTeamReview", start_executor=question_parser, ) .add_fan_out_edges( source=question_parser, targets=[biologist, physicist], ) .add_fan_in_edges( sources=[biologist, physicist], target=response_aggregator, ) .build() ) # agent_worker wraps the Durable Task worker. agent_worker.configure_workflow(expert_team_workflow) As agents and executors finish their work, Durable Task saves their results and reuses them during replay. You define how the work connects in the graph, and Durable Task handles preserving progress and recovering execution. Human in the loop Sometimes an agent needs someone to review a draft, approve an action, or provide more information before the work can continue. That response might take an hour, a day, or longer. Keeping a worker running just to wait can add cost and prevent the application from scaling down. With the Durable Task extension, the workflow can save its progress and wait for an external event without keeping a worker active. When the person responds, an HTTP endpoint, agent tool, or other application code sends the event to the matching workflow instance. The orchestration picks up from its saved state and continues the work. C# // Registered as the Durable Task orchestration for this workflow. static async Task<string> RunContentReviewWorkflowAsync( TaskOrchestrationContext context, GeneratedContent draft) { await context.CallActivityAsync(nameof(NotifyReviewer), draft); HumanApprovalResponse decision = await context.WaitForExternalEvent<HumanApprovalResponse>( eventName: "HumanApproval", timeout: TimeSpan.FromHours(24)); if (!decision.Approved) return "Content was not approved."; await context.CallActivityAsync(nameof(PublishContent), draft); return "Content published."; } // From the approval endpoint or agent tool, outside the orchestration: await client.RaiseEventAsync(instanceId, "HumanApproval", approvalResponse); Python # Registered as the Durable Task orchestration for this workflow. def run_content_review_workflow( context: OrchestrationContext, draft: dict[str, str], ): yield context.call_activity("notify_reviewer", input=draft) decision = yield context.wait_for_external_event("HumanApproval") if not decision["approved"]: return {"status": "not-approved"} yield context.call_activity("publish_content", input=draft) return {"status": "published"} # From the approval endpoint or agent tool, outside the orchestration: client.raise_orchestration_event( instance_id=instance_id, event_name="HumanApproval", data={"approved": True}, ) Observe agents and workflows in one place When your application uses the Durable Task Scheduler as the durable backend, you can see what your agents and workflows are doing in the Durable Task Scheduler dashboard, whether they run in Azure Functions or a self-hosted application. Open an agent session to review its conversation history, see the timeline of its execution, and check reported token usage. For workflows, you can check their status and see how the work has progressed through the timeline, event history, and flow views. Open an individual step to inspect its inputs and outputs, understand what happened, or investigate a failure. Build with the Durable Task extension You can run durable agents and workflows in Azure Functions, or host them in your own .NET or Python application. The examples below show how to register your agents and workflows with the host that runs them. They assume you’ve already defined the agents, workflow graphs, and orchestration functions. Hosting environment .NET Python Azure Functions Microsoft.Agents.AI.Hosting.AzureFunctions agent-framework-azurefunctions Self-hosted applications Microsoft.Agents.AI.DurableTask agent-framework-durabletask Azure Functions Azure Functions gives you managed HTTP endpoints and scales with demand. To get started, add Microsoft.Agents.AI.Hosting.AzureFunctions for .NET or agent-framework-azurefunctions for Python to your Functions project, and configure its Durable Task backend. C# example for Azure Functions Register standalone agents and agents used by your own orchestrations with ConfigureDurableAgents. For Agent Framework workflow graphs, use ConfigureDurableWorkflows. You can use either method on its own or combine them to host agents and graphs in the same application. using IHost app = FunctionsApplication .CreateBuilder(args) .ConfigureFunctionsWebApplication() .ConfigureDurableAgents(options => options.AddAIAgent(agent)) .ConfigureDurableWorkflows(options => options.AddWorkflow(workflow)) .Build(); app.Run(); For a Durable Task orchestration, mark its entry point with [Function] and [OrchestrationTrigger] so Azure Functions can discover it. If you register an Agent Framework graph, the extension creates the supporting orchestration for you. Python Pass standalone agents and agents used by your own orchestrations to AgentFunctionApp through the agents argument. For an Agent Framework graph, use the workflow argument. You can provide either or both. from agent_framework_azurefunctions import AgentFunctionApp app = AgentFunctionApp( agents=[agent], workflow=workflow, ) For a Durable Task orchestration, mark its entry point with app.orchestration_trigger(context_name="context"). For an Agent Framework graph, AgentFunctionApp adds that trigger for you. The C# Functions samples and Python Functions samples show the full project setup and how to call your agents and workflows. Self-hosted applications You can also run durable agents and workflows in your own application with Microsoft.Agents.AI.DurableTask for .NET or agent-framework-durabletask for Python. You choose where the application runs and how users or other systems call it. Durable Task handles saving execution state and recovering work after interruptions. C# example for self-hosted applications Configure the Durable Task worker and client, register your agents, and add any Agent Framework graphs. using IHost host = Host.CreateDefaultBuilder(args) .ConfigureServices(services => { services.ConfigureDurableAgents( options => options.AddAIAgent(agent), workerBuilder: builder => builder.UseDurableTaskScheduler(connectionString), clientBuilder: builder => builder.UseDurableTaskScheduler(connectionString)); services.ConfigureDurableWorkflows( options => options.AddWorkflow(workflow)); }) .Build(); await host.RunAsync(); For a Durable Task orchestration, also register it through AddTasks in the workerBuilder callback. For example, this registers the earlier order-response function and passes it the orchestration input: workerBuilder: builder => { builder.UseDurableTaskScheduler(connectionString); builder.AddTasks(registry => registry.AddOrchestratorFunc( "RunOrderResponseWorkflow", (TaskOrchestrationContext context) => RunOrderResponseWorkflowAsync( context, context.GetInput<string>() ?? throw new ArgumentException( "An order number is required.")))); } The scheduler integration requires Microsoft.DurableTask.Worker.AzureManaged and Microsoft.DurableTask.Client.AzureManaged alongside the extension. Python example for self-hosted applications Pass your configured Durable Task worker to DurableAIAgentWorker, then register your agents, orchestrations, and workflow graphs before starting the worker. from agent_framework_durabletask import DurableAIAgentWorker agent_worker = DurableAIAgentWorker(worker) # Register an agent and an orchestration you wrote directly. agent_worker.add_agent(order_agent) worker.add_orchestrator(run_order_response_workflow) # Register a graph and let the extension configure its components. agent_worker.configure_workflow(workflow) worker.start() Register only the components your application needs, or combine them in the same worker. Your application keeps the worker running and calls worker.stop() when it shuts down. When you deploy, configure your Durable Task Scheduler endpoint, task hub, and authentication. Durable Task Scheduler is the recommended backend for Durable Functions and the Durable Task SDKs. Start with a sample You don’t have to start from scratch. Pick a sample for your language and hosting environment, and build from there: - .NET Azure Functions samples - .NET self-hosted samples - Python Azure Functions samples - Python Durable Task samples Read the Durable Task extension documentation to get started, and share feedback or contribute in the Microsoft Agent Framework Durable Task extension repository299Views1like0CommentsC# .NET Framework 4.8 -> .NET 9
So, I recently realized that I had been building my project off of the outdated .NET Framework 4.8. I recently decided to dig into it and update it to as far as my IDE (VS 2022) allows ... .NET 9 for C#13. For the most part, it was a very straightforward transition. I copied all of the source code files into the new directory, fixed whatever lingering errors there were, and it built and ran on my development machine (Win11). BUT ...... when I put the EXE on a Win10 machine, it won't run. With the .NET Framework 4.8 build, all I had to do was paste the EXE onto the target PC and it would just work. Attempting to do that here, it won't fly ...... EXE will not launch. Searching online, it appeared that installing the .NET runtimes would be the fix. I made sure the frameworks were installed on both PCs by typing [dotnet --list-frameworks] into CMD. Still doesn't work. Ensured targeted CPU was x64. Still nothing. The one thing that DOES work is if I publish the EXE as a standalone. That pretty much tells me it is still a .NET issue, but I can't fathom why. I would like to get away from relying on this because it makes the resulting file absolutely huge. Can someone possibly point me in the right direction as to how to get the EXE to run without a standalone build?59Views0likes1CommentHow Microsoft Intune team upgraded a .NET service with GitHub Copilot modernization
Microsoft's Customer Zero blog series gives an insider view of how Microsoft builds and operates Microsoft using our trusted, enterprise-grade platform. Learn best practices from our engineering teams through real-world lessons, architectural patterns, and operational strategies for building, operating, and scaling AI-powered systems across the organization. A hosting platform transition gave our team an opportunity to modernize a Microsoft Intune enrollment service to .NET 8. I used GitHub Copilot modernization to assist with that work while retaining responsibility for design decisions and validation. Using GitHub Copilot modernization, I saved more than four weeks on the first library alone. The more durable outcome was the working method built around the agent: three working files that I kept alongside the code and owned myself, rather than leaving that state to the model, that let a months-long migration be paused, corrected and resumed without re-deriving the analysis every time. What follows is how that worked in practice, including where the agent stopped helping. The Challenge: retiring a hosting platform without carrying the framework forward My team owns a Platform as-a Service (PaaS) service that supports devices enrolling into Intune at the start of their enrollment journey. Microsoft Intune is a cloud-based endpoint management service that secures and manages an organization's devices and apps. It lets a company’s IT team manage and secure employees’ laptops, phones, tablets, apps, and company data from one central service. It supports Android, iOS/iPadOS, Linux, macOS, tvOS, visionOS, and Windows devices. This Service was running on .NET Framework 4.7.2, hosted on a non-AKS hosting platform. I moved it to Azure Kubernetes Service (AKS) hosting environment which is what started the work. The modernization combined two related but distinct changes: moving the workload to AKS and modernizing the application code to .NET. 8. The heaviest part was dependency mapping. A key part of the migration was mapping dependencies across shared libraries, namespaces, and APIs, including Intune owned and even team-owned libraries, some of which also needed modern .NET-compatible packages. The service had a substantial codebase with dependencies across multiple libraries, namespaces, and APIs. Some APIs were unchanged, some were renamed, and some had no direct replacement and required a design decision. These APIs were most often from internal Intune libraries. Without reusable mappings, those questions recur across projects and files. To maintain continuity across the migration as this was a long-term project, I kept an explicit record of decisions, completed work, and the next steps. The service spans several libraries and multiple endpoints that support about 20 plus different enrollment flows across Windows, Linux, Android, iOS, and macOS platforms. A single pull request covering the full migration was not possible, so I divided the work into increments small enough to review, test, and merge, or to isolate by enrollment flow, with a way to stop one day and pick up the next without paying the analysis cost twice. The Solution: a modernization agent with engineer-owned working content I started the side-by-side .NET framework service to .NET 8 service migration by hand, then brought in GitHub Copilot. In my early tests, I needed .NET migration-specific domain context beyond what I had established in my copilot session. The limitation was missing domain context, not an inability to generate code, and that is the gap a purpose-built tool closes. GitHub Copilot modernization is an agent built on GitHub Copilot, with Microsoft's language teams supplying domain knowledge. For .NET, its recommendations draw on current assembly and NuGet package analysis rather than relying only on patterns learned during model training. GitHub Copilot modernization is now available in Visual Studio, Visual Studio Code, GitHub Copilot CLI, GitHub Copilot app, and GitHub.com. When I did this migration, it was available only in Visual Studio and Visual Studio Code. For this migration, I chose GitHub Copilot modernization in Visual Studio through GitHub Copilot Chat in agent mode. I tested the modernization agent against work it could already check, running it over the same project and classes that I had migrated by hand and comparing the two. They were very close. That comparison, rather than anything in the tool's description, is what established enough confidence to point it at code nobody had migrated or analyzed manually yet. Once I started using the modernization agent, I realized that it was able to map .NET specific and global libraries as well as the API calls efficiently. The agent analyzed well but did not reliably retain migration state across sessions. Returning to the work could trigger a new assessment that overwrote prior artifacts. To avoid this, the more transferable part of my approach was the working context I built around the agent: a migration plan (migrationplan.md), a progress record (progress.md), and context notes. The agent generated a migrationPlan.md and progress.md at my request; I added the context from my notes from my previous sessions and manual migration and kept all three current in my local repository. The context preserved mappings I had already established by hand, so the agent could reuse settled decisions instead of researching them again. I kept them in my local repository rather than checking them in. The migrationplan.md broke the work into phases and day-sized tasks, and the progress.md file was updated after each increment. The next session could resume the recorded task instead of reassessing the codebase. When a migration increment surfaced a build issue, fixing it meant a side conversation, and the thread of the main work got lost in it. To avoid this, I started recording each failure under that day's task: what failed, what was tried, and what was ruled out. That gave the investigation somewhere to live without overwriting the main work. The current agents experience records task failures in progress-details.md. The Migrationplan.md is an editable markdown file, not opaque internal state, and I edited it when needed. Where a generated step was wrong for the service, or I wanted smaller increments of work per pull request, or to migrate a scenario before another, or to focus on one API path per pull request, or even to change the ordering, I updated the file with the correct information and the agent picked up the revision and carried on rather than reverting to its own plan. That made the editable plan especially useful when the migration approach changed. Plan granularity is also how I controlled pull request size. I used the plan to constrain each increment: for example, three model files and a view file, or one small end-to-end enrollment flow at a time, or one controller at a time, or sometimes not even a whole controller, just one API path, I made this judgement depending on the complexity of the scenario I wanted to migrate. Small increments stayed reviewable, and a broken build left a smaller surface to investigate. Supplying the build error and asking the agent to re-examine that increment produced a focused follow-up change. I began using the .NET modernize agent with an internal library, that supports Windows client calls made over Simple Object Access Protocol (SOAP). Before discovering the tool, I had already side-by-side migrated the .NET framework version of that library into another .NET8 successor library and had updated portions of the service’s windows enrollment flow. I used the mapping I had made between framework and .NET 8 libraries and APIs during this migration as a context for the tool, allowing each migration pass to reuse and add to the mappings established in previous one. The tool’s recommendations closely aligned with my manual migration approach on redo of the first library, which built my confidence in its output. I then used it for my next two internal library migrations, and the remaining Apple and Android enrollment flows in the service. The Impact: what the approach saved, and what it did not The internal library that handles Windows enrollment calls was estimated and took roughly six weeks of work but the tool completed it in one and a half weeks, a 75% schedule reduction, and on the second internal library dependency, also estimated at six weeks, I saved time again. I was able to reapply those savings to the remaining enrollment flows as I continued the service migration. The saving came from work that did not have to happen twice. Mappings settled in one phase were reused in the next rather than rediscovered. Project file conversion and NuGet package resolution, which is mechanical but voluminous, moved to the agent. What stayed with me was review, integration, the decisions, and the containerization and move to AKS itself. Without the agent, I would have needed to prioritize the migration more exclusively, which would have cut into the other project work I was delivering at the same time. Where the agent stopped helping In my experience, public libraries and Microsoft-wide libraries mapped well. Intune-internal libraries did not. In a subsequent internal prototype, I tested the agent on another service with different migration dependencies. For Intune-internal libraries, it could not identify which modern NuGet package or API replaced each dependency because those mappings were not available in its context. It still removed some of the mechanical work, but the mappings themselves stayed manual. During the prototype, I also built skills that work as a wrapper for the modernization agent that provides this internal migration context. I checked those skills into our internal repository so other Microsoft Intune engineering teams can use them internally through a plugin. What another team should take from this Validate it against work already done by hand to gain confidence. Running the agent over classes you have already migrated manually and comparing the output is cheap, and it gives you evidence for deciding whether to use the agent on code it has not yet migrated. Own the plan, not just the prompt. The agent writes its own plan and progress files to the repository. Read them and correct them, and it will follow your edits. For what it can't know, such as internal library mappings or your team's coding conventions, add a custom skill to the repository, and the agent will follow that too. Control pull request size through the plan rather than after the fact. Break pull requests into small increments. Scoping an increment to one controller, one API path, or a small end-to-end scenario keeps the change reviewable and testable, with a clear boundary for investigating migration issues. Reuse dependency mapping instead of rediscovering them. A large part of time savings come from carrying mappings established in previous phases into subsequent ones, even across libraries and services. Mechanical work like project conversion and NuGet package resolution can be handed off to the agent while you retained responsibility for integration, review and design decisions. Looking ahead The application-layer modernization is finished, while parity validation and the AKS traffic rollout continues. The reusable skills are checked into an internal repository and available to Intune engineering teams through an internal plugin, so another library or service can reuse established dependency-mapping work as well as Intune internal guidelines. I also shared the method and its measured time savings through Intune learning sessions, show and tell, Teams posts, and a newsletter. Learn more about GitHub Copilot modernization for .NET at https://dotnet.microsoft.com/platform/modernize and about Microsoft Intune at What is Microsoft Intune? - Microsoft Intune | Microsoft Learn.495Views0likes0CommentsAre Your Obfuscated .NET Builds Reproducible? Why It Matters for Production Diagnostics
I've seen a recurring issue across teams that use .NET obfuscation as part of their release pipeline. A protected build ships successfully, everything passes testing, and a few weeks later a customer reports a production crash. The stack trace contains obfuscated symbol names, so the team tries to locate the corresponding rename map. At that point, one of several things happens: The map file was never archived. The map file belongs to a different build. The build cannot be reproduced exactly because protection settings were not deterministic. As a result, diagnosing what should have been a routine production issue becomes far more difficult than expected. I'm curious how other teams are handling this, but first I'd like to share a few practices that have consistently helped. What does a reproducible protected build mean? For an obfuscated .NET application, I would consider a build reproducible when: The same source revision and protection settings produce the same protected output. The rename mapping file generated during protection is preserved alongside the release artifacts. Strong-name signing remains valid after the protection process. Without these safeguards, it becomes harder to: Decode production stack traces. Compare releases reliably. Verify that a rebuild actually matches the deployed artifact. Common Sources of Non-Determinism Randomized Renaming or Protection Seeds Many protection tools support randomization for renaming and transformation phases. If a new random seed is used for every build, identical source code can produce different outputs and different rename maps. One approach is to keep the protection project configuration under source control and use a fixed seed when reproducible builds are a requirement. Compiler Build Settings Deterministic compilation should also be considered. For SDK-style projects this typically means enabling: <PropertyGroup Condition="'$(Configuration)'=='Release'"> <Deterministic>true</Deterministic> </PropertyGroup> Without deterministic compilation, builds may still differ due to embedded metadata and other environmental factors. Signing Sequence Since obfuscation modifies IL and metadata, any strong-name signature applied before protection becomes invalid. The signing operation generally needs to occur after the final protected assembly is produced. Rename Map Retention In my experience, this is the most common operational issue. A rename map is often generated successfully but never stored as a release artifact. Once the build agent is cleaned up, the information required to translate production stack traces may be gone. Treat Protection Configuration as Part of the Build One practice that has worked well is treating protection settings the same way we treat source code and pipeline definitions. That typically means: Storing protection project files in source control. Reviewing configuration changes through pull requests. Running protection from CI/CD rather than manually. Pulling signing keys from a secure store. Publishing both protected binaries and rename maps as versioned artifacts. At a high level, the process looks something like: Source Commit / Tag ↓ Deterministic Release Build ↓ Protection Step ↓ Strong-Name Re-signing ↓ Archive Binary + Mapping File Verification Checklist Before releasing a protected build, I usually recommend confirming: The assembly's strong name is valid. Rebuilding the same commit produces identical protected output. Automated tests run against the protected assembly, not only the original one. The rename map is archived and associated with the build identifier. If two builds from the same source revision produce different hashes, the first places I would investigate are deterministic compilation settings and protection randomness. Typical Symptoms and Their Causes Symptom Possible Cause Strong-name validation errors Assembly was signed before protection Obfuscation tool cannot resolve dependencies Search paths do not include required assemblies Production stack traces cannot be decoded Rename map is missing or mismatched Identical commits generate different outputs Non-deterministic build or protection configuration Discussion For teams using obfuscation in production, how are you handling reproducibility and artifact retention? Do you archive rename maps alongside release artifacts, use symbol servers, maintain internal tooling, or follow another approach? I'd be especially interested in hearing how others have integrated obfuscation into modern Azure DevOps or GitHub Actions pipelines while keeping builds reproducible and supportable over time.41Views0likes0CommentsIntroducing a Guided Copilot Experience for Building Azure Apps in VS Code
Today we're previewing a new way to build cloud apps with GitHub Copilot in VS Code: a guided Copilot experience that takes you from idea to a deployed Azure app through a structured, predictable workflow instead of a free-form chat session that may or may not land where you need it to. The problem: Copilot is powerful, but unpredictable Ask Copilot to "build me a Node.js API on Azure Functions with a Postgres database" today, and you might get a working project, or you might not. Sometimes Copilot scaffolds the app but skips infrastructure. Sometimes it generates a deployment script that fails halfway through. Sometimes it forgets what you were building three prompts later. The underlying model is capable. The problem is the shape of the experience: an open-ended chat with no checkpoints, no guardrails, and no consistent path from "I have an idea" to "it's running in Azure." How it works The guided Copilot experience adds to that open-ended flow with three clear, explicit stages: 1. Project scaffolding: Describe your app in plain language. Copilot proposes an architecture and asks for anything that is missing (e.g., language, app type, Azure services) through simple forms and pickers, not more back-and-forth chat. You review and approve the plan before any code is written. 2. Local development: Your project is scaffolded then Copilot checks for the runtimes, emulators, and tools you'll need and helps you install what's missing, so the project runs locally from the very first launch. Debug configurations are wired up automatically, so you can test and iterate on your app before it ever touches Azure. 3. Deployment: Copilot shows the tools that will be used for deployment along with a summary of all resources that will be created and a cost estimate so you can be confident in what you're getting. Infrastructure files are created for your app to ensure a consistent and reproducible deployment environment for testing and staging before going to production. Deployment runs through the same reliable tooling used across Azure (az and azd), so if something goes wrong, you get a clear explanation and a concrete next step instead of a wall of CLI output. Once your app is live, the guided experience doesn't disappear, Copilot retains context about your project's architecture, so coming back later to add a service or make a change picks up right where you left off. 🎉 What this means for how you work Determinism over guesswork. The same input reliably produces the same kind of outcome, so no more wondering which "mode" Copilot is going to be in. First try success. Projects are built to run and deploy on the first attempt, not after several rounds of manual repair. Structure over chat walls. Decisions that matter such as architecture choices, missing configuration, and deployment targets are surfaced through real UI, so you're not parsing paragraphs of text to figure out what Copilot needs from you. Stay in VS Code. The entire journey, from planning through deployment, happens without leaving your editor. What's in the initial preview The first version focuses on JavaScript and TypeScript projects, including web apps, Azure Functions, Container Apps, and Static Web Apps, with support for PostgreSQL, Azure Storage, Azure Key Vault, and Azure OpenAI. .NET and Python support are on the roadmap for a future release. Nothing about your existing Copilot workflows changes, the guided experience is an additional, opinionated path alongside the free form chat you already know, for when you want a reliable, structured way to go from zero to deployed. What's next This is an early look at a broader shift in how we think about AI-assisted development on Azure: less "ask and hope," more structured collaboration with clear checkpoints and real UI where it counts. We're continuing to expand language support, refine the deployment experience, and incorporate feedback from developers using it in the wild. Install the Azure Tools extension pack and open an empty folder to try the guided Copilot experience and let us know what you think. File issues or share feedback on the GitHub repo.1.6KViews2likes1CommentCVE-2024-43484
Has anyone been able to find a fix for CVE-2024-43484? I have a vulnerable file version here: C:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319\System.io.compression.dll has version 4.8.9221.0. KB5066131 's file information csv shows that this file gets updated to version 4.8.9277.0 but the machines won't accept the KB to install it. I did also try looking for the latest KB that superseded it which is as of this post Septembers KB5126052 however, when I look at the file information csv for KB5126052 it shows this file back to the old version at 4.8.9221.0. What gives? Did Microsoft update this file and then revert it in later KB or is it just a mistake? Is there any fix?95Views0likes0CommentsCVE-2024-43484
Has anyone been able to remediate CVE-2024-43484? I do actually see the vulnerable file version on machines in this location: C:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319\System.io.compression.dll has version 4.8.9221.0. Okay, so I download KB5066131 which says in it's file information csv that it updates this .dll to file version 4.8.9277.0. I try to install it and get a message that the KB is not applicable to my system. I run the commands to extrand the .cab file then install it with DISM and reboot the machine...but the file version doesn't update. So I look at the latest KB that superceeded KB5066131which is as of today september's KB5126052 but when you look at the listed file information csv it says it reverts this file back to version 4.8.9221.0. I'm so confussed now. Was this a Microsoft mistake or is there an actual fix to this?108Views0likes0CommentsWhat I Learned Contributing to .NET Runtime #135120 — Why More Developers Should Try Open Source
Contributing to the .NET Runtime was something I had wanted to try for a long time. Recently, I opened PR #135120 in the dotnet/runtime repository. https://github.com/dotnet/runtime/pull/135120 What surprised me most was not just the code change, but the engineering process behind making even a focused change in a large, production-grade open-source project. WHAT I LEARNED 1. Reading source code is a skill Before changing anything, I had to understand how the existing implementation worked and how the surrounding code was designed. 2. Tests tell a story Existing tests helped me understand the expected behavior and gave me confidence that the change was not breaking existing scenarios. 3. Small changes can require deep investigation A change that looks small from the outside can involve understanding implementation details, existing conventions, edge cases, and compatibility considerations. 4. Code review is part of the learning process A pull request is not simply code submitted for approval. It is an opportunity to learn from developers who know the codebase extremely well. 5. You do not have to be an expert before contributing This has probably been my biggest takeaway. I used to think I needed to understand the entire .NET Runtime before contributing to it. I don't. You can start with one problem, investigate it deeply, and learn along the way. MY QUESTION FOR THE .NET COMMUNITY For developers who have contributed to .NET, ASP.NET Core, EF Core, or other major open-source projects: What was your first contribution, and what did it teach you that you would not have learned from building your own applications? I would love to hear your experiences and advice for developers who are considering their first open-source contribution.119Views0likes0Comments