Skip to content

Conversation

@chsienki
Copy link
Member

@chsienki chsienki commented Aug 27, 2024

UseConsolidatedMvcViews determines the namespace and visibility of generated MVC view classes. The source generator unconditionally sets UseConsolidatedMvcViews to true. The only time actual on-disk code is emitted with it false is when a user has disabled the source generator and is using RZC, which produces a separate views assembly.

The IDE Tooling uses whatever is set as default. That means that for the vast majority of customers the visibility of the compiler generated code and the tooling generated code is different. This flips the default to true so that tooling most often matches what the user is actually producing.

Matching SDK fix: dotnet/sdk#43037

Fixes: #9352

@chsienki chsienki added the area-compiler Umbrella for all compiler issues label Aug 27, 2024
@chsienki chsienki requested review from a team as code owners August 27, 2024 17:01
@chsienki
Copy link
Member Author

@dotnet/razor-compiler for review please

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-compiler Umbrella for all compiler issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants