RazorEngine 3.6.0

RazorEngine - A Templating Engine based on the Razor parser.

There is a newer version of this package available.
See the version list below for details.
Install-Package RazorEngine -Version 3.6.0
dotnet add package RazorEngine --version 3.6.0
paket add RazorEngine --version 3.6.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

ICodeInspector API is now obsolete (it has been removed in 4.0.0).
Nested classes can now be used as template-base-class.
ViewBag data can now be used in overwritten SetModel calls
Viewbag is set like the model on template creation (not in the ExecuteContext)
This leads to some minor breaking changes
- Creating a ExecuteContext with a non-null viewbag throws a NotSupportedException (obsolete API)
- added a DynamicViewBag parameter to IInternalTemplateService.Resolve (you should not need to use that API)
- ITemplate.SetModel has changed to ITemplate.SetData (you are not affected if you use TemplateBase or TemplateBase<T> as base class, which is recommended)
These changes are strictly speaking breaking, but they shouldn't practically affect anyone.
Watch out for new Obsolete warnings and fix them.

Version History

Version Downloads Last updated
4.5.1-alpha001 7,916 9/2/2017
4.5.0-rc1 4,646 6/16/2017
4.4.3-rc1 26,849 11/13/2016
4.4.2-rc1 358 11/13/2016
4.4.1-rc1 507 10/28/2016
4.4.0-rc1 10,579 7/17/2016
4.3.2-beta1 2,987 4/15/2016
4.3.1-beta1 556 4/3/2016
4.3.0-beta1 254 4/3/2016
4.2.7-beta1 14,918 1/20/2016
4.2.6-beta1 806 12/22/2015
4.2.5-beta1 563 12/14/2015
4.2.4-beta1 550 11/21/2015
4.2.3-beta1 2,276 10/6/2015
4.2.2-beta1 3,739 8/22/2015
4.2.1-beta1 302 8/22/2015
4.2.0-beta3 384 8/21/2015
4.2.0-beta2 1,622 5/1/2015
4.2.0-beta1 372 4/26/2015
4.1.6-beta1 331 4/22/2015
4.1.5-beta1 389 4/10/2015
4.1.4-beta1 453 3/27/2015
4.1.3-beta2 313 3/24/2015
4.1.2-beta1 304 3/23/2015
4.1.1-beta1 481 3/2/2015
4.1.0-beta1 465 2/12/2015
4.0.3-beta1 479 1/27/2015
4.0.2-beta1 446 1/23/2015
4.0.1-beta1 340 1/23/2015
4.0.0-beta2 621 1/6/2015
4.0.0-beta1 430 1/1/2015
3.10.1-alpha001 533 9/2/2017
3.10.0 1,013,404 6/16/2017
3.9.3 527,834 11/13/2016
3.9.2 5,343 11/13/2016
3.9.1 48,099 10/28/2016
3.9.0 378,957 7/17/2016
3.8.2 330,159 4/15/2016
3.8.1 43,545 4/3/2016
3.8.0 999 4/3/2016
3.7.7 213,839 1/20/2016
3.7.6 61,917 12/22/2015
3.7.5 18,638 12/14/2015
3.7.5-beta2 254 12/2/2015
3.7.5-beta1 272 12/2/2015
3.7.4 58,717 11/21/2015
3.7.3 132,913 10/6/2015
3.7.2 118,300 8/22/2015
3.7.1-alpha1 385 5/1/2015
3.7.0 243,647 5/1/2015
3.7.0-beta1 268 4/26/2015
3.6.6 15,680 4/22/2015
3.6.6-beta2 270 4/13/2015
3.6.6-beta1 263 4/13/2015
3.6.5 15,954 4/10/2015
3.6.5-beta1 264 4/10/2015
3.6.4 17,716 3/27/2015
3.6.3 11,297 3/24/2015
3.6.3-beta2 278 3/24/2015
3.6.3-beta1 270 3/24/2015
3.6.2 2,131 3/23/2015
3.6.1 60,383 2/23/2015
3.6.0 32,831 2/12/2015
3.5.3 36,547 1/27/2015
3.5.2 2,549 1/23/2015
3.5.1 1,417 1/23/2015
3.5.0 22,580 1/14/2015
3.5.0-beta3 346 1/6/2015
3.5.0-beta2 348 1/1/2015
3.5.0-beta1 323 1/1/2015
3.4.2 80,873 11/28/2014
3.4.1 545,042 1/17/2014
3.4.0 56,719 10/20/2013
3.3.0 276,127 7/13/2013
3.2.0 201,183 1/17/2013
3.1.0 16,558 1/12/2013
3.0.8 88,304 1/31/2012
3.0.7 5,206 1/3/2012
3.0.6 491 1/2/2012
3.0.5 1,378 12/12/2011
3.0.4 509 12/12/2011
3.0.3 1,710 11/27/2011
3.0.0 3,487 11/24/2011
2.1.0 45,420 1/22/2011
Show less