Skip to content

Consider not setting PreserveCompilationContext in the RazorSDK when targeting 6.0 or later #5068

Closed
dotnet/sdk
#16656
@pranavkm

Description

@pranavkm

Related issue: https://github.com/dotnet/cli/issues/9135. We set PreserveCompilationContext=true for all project types in the Razor.Sdk. This results in an refs directory to be created in the build output directory which is undesirable. We should consider setting PreserveCompilationContext=true only if the app's an executable.

Metadata

Metadata

Assignees

Labels

DoneThis issue has been fixedaffected-mostThis issue impacts most of the customersarea-mvcIncludes: MVC, Actions and Controllers, Localization, CORS, most templatesfeature-razor-pagesseverity-nice-to-haveThis label is used by an internal tooltask

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions