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

[Question] Using Microsoft.AspNetCore.Razor as a standalone library #1855

Closed
conniey opened this issue Dec 19, 2017 · 1 comment
Closed

[Question] Using Microsoft.AspNetCore.Razor as a standalone library #1855

conniey opened this issue Dec 19, 2017 · 1 comment
Labels
Milestone

Comments

@conniey
Copy link

conniey commented Dec 19, 2017

Hi,

I am trying to migrate RazorEngine to .NET Core. However, when we restore the Microsoft.AspNetCore.Razor package and use it in an F# script as part of a build process, it fails with TypeLoadException since many of the types are removed from version 1.1.2 and 2.0.0 of the package. Is there a package with the implementation that we should be referencing?

Difference between version 1.1.2 and 2.0.0 of Microsoft.AspNetCore.Razor
image

The original issue is: Antaris/RazorEngine#486

@NTaylorMullen
Copy link
Member

We've moved a ton of that code and made the Microsoft.AspNetCore.Razor and Microsoft.AspNetCore.Razor.Runtime assemblies runtime focused.

The default Razor code generation process is encompassed in 3 assemblies now:

  • Microsoft.AspNetCore.Razor.Language - Core Razor pieces not dependent on Roslyn
  • Microsoft.CodeAnalysis.Razor - Razor pieces that depend on Roslyn
  • Microsoft.AspNetCore.Mvc.Razor.Extensions - Mvc extension of the core Razor pieces (adds pieces like @model, @page etc.)

Hope this helps!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants