Run the solution with Ctrl+F5 (Start Without Debugging); if all projects start successfully, treat this as the reported .NET 11 multi-project F5 debugger/runtime regression and update Visual Studio and its bundled .NET 11 SDK together—or temporarily return to the last working SDK—rather than changing the property-evaluation option again.^1^
1. Isolate debugger involvement
- Select the same multi-project launch profile.
- Choose Debug > Start Without Debugging, or press Ctrl+F5.
- Check the result:
- Ctrl+F5 works, F5 fails: this strongly isolates the problem to debugger/runtime interaction. A related report documents
ExecutionEngineException or AccessViolationException specifically under F5.^2^
- Ctrl+F5 also fails: investigate the
Assembly.LoadFrom call and assembly resolution as described below.
Error 0x80131506 in this matching .NET 11/F5 scenario indicates an internal CLR failure rather than an ordinary managed exception that application code can reliably catch.^1^
2. Align Visual Studio and the .NET 11 SDK
Open Help > About Microsoft Visual Studio and check the version, then run:
dotnet --info
dotnet --list-sdks
The documented primary supported combination is Visual Studio 18.12 with .NET 11.0.1xx. A newer SDK can run with an older Visual Studio, but targeting its newer runtime is unsupported; for previews, only the corresponding latest Visual Studio preview is tested.^3^
- If Visual Studio is older, update it through Visual Studio Installer > Update.
- Prefer the .NET SDK bundled with that Visual Studio release.
- Check for
global.json in the solution or parent directories. If it pins a different SDK feature band, update it to an installed, supported SDK or temporarily remove the pin for testing.
- If the failure began with a specific update and the latest matched Visual Studio/.NET servicing release still fails, temporarily return to the last configuration that worked and report the regression.
3. If Ctrl+F5 also fails, inspect Assembly.LoadFrom
Log the exact path and assembly identity before loading:
using System.Reflection;
string path = Path.GetFullPath(pluginPath);
Console.WriteLine($"Loading: {path}");
Console.WriteLine($"Exists: {File.Exists(path)}");
AssemblyName identity = AssemblyName.GetAssemblyName(path);
Console.WriteLine($"Identity: {identity.FullName}");
Assembly assembly = Assembly.LoadFrom(path);
Then check for:
- The same assembly identity copied into multiple project output directories.
- Different versions of the DLL loaded by separate startup projects.
- Missing transitive dependencies beside the loaded assembly.
- Architecture mismatch, such as a 32-bit assembly loaded into a 64-bit process.
- A relative path resolving differently because each startup project has a different working directory.
Assembly.LoadFrom uses the load-from context. If an assembly with the same identity is already loaded, it can return that assembly even when another path was supplied; duplicate identities in different locations can also cause InvalidCastException, MissingMethodException, or other unexpected behavior.^4^
Where possible, use normal project/package references or a deliberate AssemblyLoadContext design instead of loading arbitrary paths.
4. Report the regression if it remains F5-only
In Visual Studio, select Help > Send Feedback > Report a Problem and include:
- Visual Studio version.
- Output of
dotnet --info.
- Whether Ctrl+F5 succeeds.
- Whether one startup project works and multiple startup projects fail.
- The
.slnLaunch profile, with sensitive values removed.
- The full debugger and Windows Event Viewer entries.
- A minimal reproducer if available.
The already-disabled implicit property evaluation setting is the documented workaround for ordinary debugger function evaluation, but its failure to help here is consistent with needing to investigate the F5/runtime path instead.^5^
References
- Visual Studio multi-project F5 triggers intermittent .NET 11 CLR FuncEval crash 0x80131506 - Developer Community
- Visual Studio F5 triggers ExecutionEngineException or AccessViolationException - Developer Community
- .NET SDK, MSBuild, and Visual Studio versioning
- Assembly.LoadFrom Method (System.Reflection) | Microsoft Learn
- Error: The target process exited with code 'code' while evaluating the function 'function'