Skip to content
This repository was archived by the owner on Dec 19, 2018. It is now read-only.
This repository was archived by the owner on Dec 19, 2018. It is now read-only.

Enable RazorCompileOnBuild=true by default #1986

@rynowak

Description

@rynowak

Due to how our factoring is being done in 2.1-preview1 - the necessary properties to activate Razor compilation (using RazorSDK) during publish are part of the Web SDK. This means that a class library project won't do precompilation during publishing by default.

The workaround is to define a property that the WebSDK sets.

  <PropertyGroup>
    <TargetFramework>netcoreapp2.0</TargetFramework>
    <ResolvedRazorCompileToolset>RazorSDK</ResolvedRazorCompileToolset>
  </PropertyGroup>

We plan to take ownership of these definitions from the WebSDK in 2.1-preview2 so this should just get solved at that point.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions