Build Information
Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=1472636
Build error leg or test failing: Microsoft.NET.Sdk.Razor.Tests.MvcBuildIntegrationTest50.IncrementalBuild_WithP2P_WorksWhenBuildProjectReferencesIsDisabled
Pull request: #54845
Details
Exception Message
Expected value to be 0 because Expected command to pass but it did not.
Working Directory:
File Name: /tmp/helix/working/AA0009A6/p/d/dotnet
Arguments: msbuild /t:Build /private/tmp/helix/working/AA0009A6/t/dotnetSdkTests.URC7mGWI/IncrementalBu---79A8D79D/AppWithP2PReference/AppWithP2PReference.csproj /restore
Exit Code: 1
StdOut:
MSBuild version 18.9.0-preview-26311-113+50e862b8d for .NET
Determining projects to restore...
Restored /private/tmp/helix/working/AA0009A6/t/dotnetSdkTests.URC7mGWI/IncrementalBu---79A8D79D/ClassLibrary/ClassLibrary.csproj (in 90 ms).
Restored /private/tmp/helix/working/AA0009A6/t/dotnetSdkTests.URC7mGWI/IncrementalBu---79A8D79D/AppWithP2PReference/AppWithP2PReference.csproj (in 96 ms).
/tmp/helix/working/AA0009A6/p/d/sdk/11.0.100-ci/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.RuntimeIdentifierInference.targets(385,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [/private/tmp/helix/working/AA0009A6/t/dotnetSdkTests.URC7mGWI/IncrementalBu---79A8D79D/AppWithP2PReference/AppWithP2PReference.csproj]
This writer does not support components.
at Microsoft.AspNetCore.Razor.Language.CodeGeneration.IntermediateNodeWriter.WriteMarkupElement(CodeRenderingContext context, MarkupElementIntermediateNode node)
at Microsoft.AspNetCore.Razor.Language.DefaultRazorCSharpLoweringPhase.Visitor.VisitMarkupElement(MarkupElementIntermediateNode node)
at Microsoft.AspNetCore.Razor.Language.CodeGeneration.CodeRenderingContext.RenderChildren(IntermediateNode node)
at Microsoft.AspNetCore.Razor.Language.DefaultRazorCSharpLoweringPhase.Visitor.VisitMethodDeclaration(MethodDeclarationIntermediateNode node)
at Microsoft.AspNetCore.Razor.Language.CodeGeneration.CodeRenderingContext.RenderChildren(IntermediateNode node)
at Microsoft.AspNetCore.Razor.Language.DefaultRazorCSharpLoweringPhase.Visitor.VisitClassDeclaration(ClassDeclarationIntermediateNode node)
at Microsoft.AspNetCore.Razor.Language.CodeGeneration.CodeRenderingContext.RenderChildren(IntermediateNode node)
at Microsoft.AspNetCore.Razor.Language.DefaultRazorCSharpLoweringPhase.Visitor.VisitNamespaceDeclaration(NamespaceDeclarationIntermediateNode node)
at Microsoft.AspNetCore.Razor.Language.CodeGeneration.CodeRenderingContext.RenderChildren(IntermediateNode node)
at Microsoft.AspNetCore.Razor.Language.DefaultRazorCSharpLoweringPhase.Visitor.VisitDocument(DocumentIntermediateNode node)
at Microsoft.AspNetCore.Razor.Language.DefaultRazorCSharpLoweringPhase.WriteDocument(RazorCodeDocument codeDocument, CancellationToken cancellationToken)
at Microsoft.AspNetCore.Razor.Language.DefaultRazorCSharpLoweringPhase.ExecuteCore(RazorCodeDocument codeDocument, CancellationToken cancellationToken)
at Microsoft.AspNetCore.Razor.Language.RazorEngine.Process(RazorCodeDocument codeDocument, CancellationToken cancellationToken)
at Microsoft.NET.Sdk.Razor.Tool.GenerateCommand.<>c__DisplayClass57_0.<GenerateCode>b__0(Int32 i) in /_/src/RazorSdk/Tool/GenerateCommand.cs:line 380
at System.Threading.Tasks.Parallel.<>c__DisplayClass19_0`2.<ForWorker>b__1(RangeWorker& currentWorker, Int64 timeout, Boolean& replicationDelegateYieldedBeforeCompletion)
--- End of stack trace from previous location ---
at System.Threading.Tasks.Parallel.<>c__DisplayClass19_0`2.<ForWorker>b__1(RangeWorker& currentWorker, Int64 timeout, Boolean& replicationDelegateYieldedBeforeCompletion)
at System.Threading.Tasks.TaskReplicator.Replica.Execute()
/tmp/helix/working/AA0009A6/p/d/sdk/11.0.100-ci/Sdks/Microsoft.NET.Sdk.Razor/targets/Microsoft.NET.Sdk.Razor.CodeGeneration.targets(150,5): error : rzc generate exited with code 1. [/private/tmp/helix/working/AA0009A6/t/dotnetSdkTests.URC7mGWI/IncrementalBu---79A8D79D/ClassLibrary/ClassLibrary.csproj]
StdErr:
, but found 1 (difference of 1).
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.Pass() in /_/test/Microsoft.NET.TestFramework/Assertions/CommandResultAssertions.cs:line 27
at Microsoft.NET.Sdk.Razor.Tests.MvcBuildIntegrationTest50.IncrementalBuild_WithP2P_WorksWhenBuildProjectReferencesIsDisabled() in /_/test/Microsoft.NET.Sdk.Razor.Tests/MvcBuildIntegrationTest50.cs:line 59
at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
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)
Error Message
DO NOT USE JSON BELOW IF THIS IS A BUILD BREAK otherwise build analysis will allow pull requests to merge that break the build worse. For a build break, do not use this issue form. Make a regular new issue.
Fill the error message using step by step known issues guidance.
{
"ErrorMessage": "",
"ErrorPattern": "Microsoft\\.NET\\.Sdk\\.Razor\\.CodeGeneration\\.targets(150,5): error : rzc generate exited with code 1\\.",
"BuildRetry": false,
"ExcludeConsoleLog": false
}
Known issue validation
Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=1472636
Error message validated: [Microsoft\.NET\.Sdk\.Razor\.CodeGeneration\.targets(150,5): error : rzc generate exited with code 1\.]
Result validation: ❌ Known issue did not match with the provided build.
Validation performed at: 6/19/2026 5:19:01 PM UTC
Report
Summary
| 24-Hour Hit Count |
7-Day Hit Count |
1-Month Count |
| 0 |
0 |
0 |
Build Information
Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=1472636
Build error leg or test failing: Microsoft.NET.Sdk.Razor.Tests.MvcBuildIntegrationTest50.IncrementalBuild_WithP2P_WorksWhenBuildProjectReferencesIsDisabled
Pull request: #54845
Details
Exception Message
CallStack
Error Message
DO NOT USE JSON BELOW IF THIS IS A BUILD BREAK otherwise build analysis will allow pull requests to merge that break the build worse. For a build break, do not use this issue form. Make a regular new issue.
Fill the error message using step by step known issues guidance.
{ "ErrorMessage": "", "ErrorPattern": "Microsoft\\.NET\\.Sdk\\.Razor\\.CodeGeneration\\.targets(150,5): error : rzc generate exited with code 1\\.", "BuildRetry": false, "ExcludeConsoleLog": false }Known issue validation
Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=1472636
Error message validated:
[Microsoft\.NET\.Sdk\.Razor\.CodeGeneration\.targets(150,5): error : rzc generate exited with code 1\.]Result validation: ❌ Known issue did not match with the provided build.
Validation performed at: 6/19/2026 5:19:01 PM UTC
Report
Summary