RazorEngine 3.6.0

RazorEngine - A Templating Engine based on the Razor parser.

There is a newer prerelease 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 734 9/2/2017
4.5.0-rc1 1,786 6/16/2017
4.4.3-rc1 11,680 11/13/2016
4.4.2-rc1 222 11/13/2016
4.4.1-rc1 354 10/28/2016
4.4.0-rc1 5,268 7/17/2016
4.3.2-beta1 2,448 4/15/2016
4.3.1-beta1 436 4/3/2016
4.3.0-beta1 148 4/3/2016
4.2.7-beta1 1,839 1/20/2016
4.2.6-beta1 642 12/22/2015
4.2.5-beta1 430 12/14/2015
4.2.4-beta1 442 11/21/2015
4.2.3-beta1 2,116 10/6/2015
4.2.2-beta1 1,906 8/22/2015
4.2.1-beta1 200 8/22/2015
4.2.0-beta3 273 8/21/2015
4.2.0-beta2 1,456 5/1/2015
4.2.0-beta1 264 4/26/2015
4.1.6-beta1 224 4/22/2015
4.1.5-beta1 279 4/10/2015
4.1.4-beta1 347 3/27/2015
4.1.3-beta2 205 3/24/2015
4.1.2-beta1 197 3/23/2015
4.1.1-beta1 358 3/2/2015
4.1.0-beta1 346 2/12/2015
4.0.3-beta1 350 1/27/2015
4.0.2-beta1 264 1/23/2015
4.0.1-beta1 229 1/23/2015
4.0.0-beta2 490 1/6/2015
4.0.0-beta1 301 1/1/2015
3.10.1-alpha001 50 9/2/2017
3.10.0 125,010 6/16/2017
3.9.3 269,377 11/13/2016
3.9.2 1,649 11/13/2016
3.9.1 30,260 10/28/2016
3.9.0 184,242 7/17/2016
3.8.2 227,668 4/15/2016
3.8.1 30,716 4/3/2016
3.8.0 686 4/3/2016
3.7.7 147,391 1/20/2016
3.7.6 49,521 12/22/2015
3.7.5 13,911 12/14/2015
3.7.5-beta2 163 12/2/2015
3.7.5-beta1 180 12/2/2015
3.7.4 34,880 11/21/2015
3.7.3 89,524 10/6/2015
3.7.2 84,518 8/22/2015
3.7.1-alpha1 287 5/1/2015
3.7.0 142,573 5/1/2015
3.7.0-beta1 174 4/26/2015
3.6.6 12,713 4/22/2015
3.6.6-beta2 176 4/13/2015
3.6.6-beta1 167 4/13/2015
3.6.5 13,600 4/10/2015
3.6.5-beta1 169 4/10/2015
3.6.4 14,951 3/27/2015
3.6.3 8,679 3/24/2015
3.6.3-beta2 182 3/24/2015
3.6.3-beta1 175 3/24/2015
3.6.2 1,749 3/23/2015
3.6.1 45,016 2/23/2015
3.6.0 (current version) 21,337 2/12/2015
3.5.3 27,836 1/27/2015
3.5.2 2,036 1/23/2015
3.5.1 1,232 1/23/2015
3.5.0 16,400 1/14/2015
3.5.0-beta3 247 1/6/2015
3.5.0-beta2 248 1/1/2015
3.5.0-beta1 221 1/1/2015
3.4.2 51,602 11/28/2014
3.4.1 365,768 1/17/2014
3.4.0 40,054 10/20/2013
3.3.0 197,491 7/13/2013
3.2.0 147,622 1/17/2013
3.1.0 13,854 1/12/2013
3.0.8 72,089 1/31/2012
3.0.7 4,911 1/3/2012
3.0.6 330 1/2/2012
3.0.5 1,199 12/12/2011
3.0.4 340 12/12/2011
3.0.3 1,467 11/27/2011
3.0.0 2,938 11/24/2011
2.1.0 38,791 1/22/2011
Show less