Skip to content

File-based apps: add support for #:include#52347

Merged
jjonescz merged 19 commits into
dotnet:release/10.0.3xxfrom
jjonescz:sprint-include
Feb 24, 2026
Merged

File-based apps: add support for #:include#52347
jjonescz merged 19 commits into
dotnet:release/10.0.3xxfrom
jjonescz:sprint-include

Improve item mapping handling

43b0a55
Select commit
Loading
Failed to load commit list.
Build Analysis / Build Analysis succeeded Jan 20, 2026 in 0s

.NET Result Analysis

Details

All checks completed

[dotnet-sdk-public-ci]

Build Rerun

✔️ Build passed after 1 retries.

(Attempt #1) [link to build]

dotnet-sdk-public-ci / Build / TemplateEngine: windows (x64) / 🟣 Run TemplateEngine Tests

[ 🚧 Report infrastructure issue] [ 📄 Report repository issue]
    ❌XUnit(0,0): error : (NETCORE_ENGINEERING_TELEMETRY=Test) Tests failed: D:\a\_work\1\s\artifacts\TestResults\Release\dotnet-new.IntegrationTests_net10.0_x64.html [net10.0|x64]

Non-Deterministic Test Failures Detected

Microsoft.DotNet.Cli.New.IntegrationTests.DotnetNewInstantiateTests.CanOverwriteFilesWithForce [Details] [0.58% failure rate]
[ 🚧 Report test infrastructure issue] [ 📄 Report test repository issue]

Failing Configuration

Exception Message
Expected value to be 0 because Expected command to exit with 0 but it did not.\r\nWorking Directory: D:\\a\\_work\\1\\s\\artifacts\\tmp\\Release\\testing\\dotnet-new.IntegrationTests\\CanOverwriteFilesWithForce\\20260120131721261\r\nFile Name: D:\\a\\_work\\1\\s\\artifacts\\bin\\redist\\Release\\dotnet\\dotnet.exe\r\nArguments: new console --no-restore --force --debug:custom-hive D:\\a\\_work\\1\\s\\artifacts\\tmp\\Release\\testing\\dotnet-new.IntegrationTests\\SharedHomeDirectory\\20260120131711411\r\nExit Code: 100\r\nStdOut:\r\n\r\nStdErr:\r\nTemplate \"Console App\" could not be created.\r\nFailed to create template.\r\nDetails: Error while processing file /content/ConsoleApplication-CSharp/Company.ConsoleApplication1.csproj\r\nThe process cannot access the file 'D:\\a\\_work\\1\\s\\artifacts\\tmp\\Release\\testing\\dotnet-new.IntegrationTests\\CanOverwriteFilesWithForce\\20260120131721261\\20260120131721261.csproj' because it is being used by another process.\r\n\r\nFor details on the exit code, refer to https://aka.ms/templating-exit-codes#100\r\n, but found 100 (difference of 100).
CallStack
   at FluentAssertions.Execution.LateBoundTestFramework.Throw(String message)
   at FluentAssertions.Execution.DefaultAssertionStrategy.HandleFailure(String message)
   at FluentAssertions.Execution.AssertionChain.FailWith(Func`1 getFailureReason)
   at FluentAssertions.Numeric.NumericAssertionsBase`3.Be(T expected, String because, Object[] becauseArgs)
   at Microsoft.NET.TestFramework.Assertions.CommandResultAssertions.ExitWith(Int32 expectedExitCode) in /_/test/Microsoft.NET.TestFramework/Assertions/CommandResultAssertions.cs:line 21
   at Microsoft.DotNet.Cli.New.IntegrationTests.DotnetNewInstantiateTests.CanOverwriteFilesWithForce() in D:\a\_work\1\s\test\dotnet-new.IntegrationTests\DotnetNewInstantiateTests.cs:line 115
   at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
   at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

Was this helpful? Yes No