Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change UseConsolidatedMvcViews to default to true #10795

Merged
merged 3 commits into from
Aug 28, 2024

Conversation

chsienki
Copy link
Contributor

@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
Contributor 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