Debug assert thrown when creating new MVC project targeting F#
- Dominant language
- No language data
- Stars
- 1.7k
- Forks
- 399
- Avg merge
- 3d 5h
- Merged PRs (30d)
- 39
Description
### Product
dotnet CLI (dotnet new)
### Describe The Bug
https://dev.azure.com/dnceng-public/public/_build/results?buildId=660886&view=ms.vss-test-web.build-test-results-tab&runId=16380260&resultId=100079&paneView=debug
Microsoft.DotNet.Cli.New.IntegrationTests.WebProjectsTests.AllWebProjectsRestoreAndBuild(testName: \"mvc_fs-70\", args: [\"mvc\", \"-lang\", \"F#\", \"-f\", \"net7.0\"])
Expected command to exit with 0 but it did not.\nFile Name: /Users/runner/work/1/s/artifacts/bin/redist/Release/dotnet/dotnet\nArguments: new mvc -lang F# -f net7.0 --debug:custom-hive /Users/runner/work/1/s/artifacts/tmp/Release/dotnet-new.IntegrationTests/SharedHomeDirectory/20240430161855664\nExit Code: 134\nStdOut:\n\nStdErr:\nProcess terminated. Assertion failed.\nUnbalanced condition\n at Microsoft.TemplateEngine.Core.Expressions.Cpp.CppStyleEvaluatorDefinition.EvaluateCondition(IReadOnlyList1 tokens, IReadOnlyList1 values)\n at Microsoft.TemplateEngine.Core.Expressions.Cpp.CppStyleEvaluatorDefinition.Evaluate(IProcessorState processor, Int32& bufferLength, Int32& currentBufferPosition, Boolean& faulted)\n at
### To Reproduce
dotnet new mvc -lang F# (with a debug build of templating)
https://github.com/dotnet/templating/blob/main/src/Microsoft.TemplateEngine.Core/Expressions/Cpp/CppStyleEvaluatorDefinition.cs#L530
### dotnet Info
repros in main through 6.0.
### Visual Studio Version
_No response_
### Additional context
_No response_
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.