Debug mode works but release fails to start. both work with same solution in VS 2022
- Dominant language
- C#
- Stars
- 38.4k
- Forks
- 10.9k
- Avg merge
- 2d 9h
- Merged PRs (30d)
- 276
Description
_This issue has been moved from [a ticket on Developer Community](https://developercommunity.visualstudio.com/t/Debug-mode-works-but-release-fails-to-st/10979824)._
---
[severity:I'm unable to use this version]
I have a multi-project solution, containing razor libraries, EF libraries, and multiple razor server projects that share the libraries. All works fine in VS 2022 (debug and release). Projects are all DotNet 9. The bug in VS Insider is StaticAssetsExtension.cs throws InvalidOperationException("ETag header not found.") when running release mode. Debug works fine.
Contributor guide
Research direction
Start by examining StaticAssetsExtension.cs and reproduce the reported behavior with a multi-project .NET 9 solution in VS 2022 or the VS Insider build. Compare debug and release startup, focusing on the InvalidOperationException stating "ETag header not found." Done means the release configuration starts successfully without that exception and the behavior is covered by an appropriate regression test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- backend, web-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100