Skip to content

Commit 1f5af74

Browse files
committed
Updating dependencies
1 parent 25001df commit 1f5af74

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

MSBuildRazorCompiler/MsBuildRazorCompiler.nuspec

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
<group targetFramework=".NETCoreApp3.1">
1010
<dependency id="RazorLight" version="2.0.0-beta7" />
1111
<dependency id="ILRepack.MSBuild.Task" version="2.0.13" />
12+
<dependency id="Microsoft.AspNetCore.Mvc.Razor.Extensions" version="3.1.3" />
13+
<dependency id="Microsoft.AspNetCore.Razor.Language" version="3.1.3" />
1214
</group>
1315
</dependencies>
1416
</metadata>

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ Because this library generates `.cs` files you don't need to worry about compila
2222
3. Compile - you should now see `SomeFile.cshtml.cs` next to your `SomeFile.cshtml`, this new file will contain a class `SomeFile` that extends `RazorLight.TemplatePage<TModel>` and will be in the namespace of your project at the folder level your file was in
2323
4. Execute the following code to get a rendered result (note: you'll need to add a `using RazorRenderer;`): `new SomeFile().Render(model, viewBag or null)` - there is also an async variant
2424

25+
By default your dll will use IlRepack to internalise RazorRenderer and RazorLight so your assembly won't have any transitive dependencies outside of `Microsoft.AspNetCore.Mvc.Razor.Extensions` and `Microsoft.AspNetCore.Razor.Language`.
26+
2527
## Configuration
2628

2729
If you want to configure the options for the compiler you can override any of these default variables in your `.csproj` file:

0 commit comments

Comments
 (0)