Go to file
N. Taylor Mullen 41fad8a33a Don't smart indent code inside of Razor block constructs.
- Prior to this change we weren't strict enough with where our smart indenter ran. We made the assumption that every code block could be smart indented and then Roslyn would "do the right thing". However, in nested code block scenarios we found that Roslyn and us would both indent resulting in extra newlines. These changes make the criteria for applying smart indentation a little stricter.
- Updated directive code block parsing to add a C# marker symbol in cases of an empty code block directive.
- Added unit tests to verify new smart indenter behavior.
- Updated existing tests to expect new syntax tree marker symbol for empty directive bits.
- Regenerated baselines.

#2410
2018-06-18 20:38:01 -07:00
benchmarks/Microsoft.AspNetCore.Razor.Performance Add some benchmarks for project system 2018-05-16 13:21:39 -07:00
build Update dependencies.props 2018-06-07 19:44:53 +00:00
shared/Microsoft.AspNetCore.Razor.TagHelpers.Testing.Sources Refocus Razor runtime assemblies 2017-12-19 13:26:07 -08:00
src Don't smart indent code inside of Razor block constructs. 2018-06-18 20:38:01 -07:00
test Don't smart indent code inside of Razor block constructs. 2018-06-18 20:38:01 -07:00
tooling Make local VSIX builds debuggable. 2018-05-21 17:25:42 -07:00
.editorconfig
.gitattributes
.gitignore Add support for relative paths 2018-02-05 14:19:52 -08:00
.travis.yml Enable dotnet-build bot 2018-03-15 17:40:54 -07:00
CONTRIBUTING.md
Directory.Build.props Add certificate names for code signing 2018-06-05 22:34:33 -07:00
Directory.Build.targets Upgrade to netcoreapp22 2018-05-08 15:22:54 -07:00
LICENSE.txt
NuGet.config Use MSBuild to set NuGet feeds instead of NuGet.config 2017-11-20 12:30:45 -08:00
NuGetPackageVerifier.json Exclude Visual Studio packages from default NGPV ruleset (#2352) 2018-05-15 10:04:01 -07:00
README.md Remove AppVeyor status tag. 2018-03-06 10:58:22 -08:00
Razor.sln PreserveCompilationContext needs to be set only if a project has any Razor files 2018-02-28 11:45:20 -08:00
build.cmd Update bootstrappers 2017-10-09 12:45:14 -07:00
build.sh Update bootstrappers 2017-10-09 12:45:14 -07:00
korebuild-lock.txt Update dependencies.props 2018-06-07 19:44:53 +00:00
korebuild.json Merge branch 'rel/vs15.8' into dev 2018-05-21 10:48:16 -07:00
run.cmd Update bootstrappers 2017-10-09 12:45:14 -07:00
run.ps1 Update bootstrapper scripts (automated commit) [ci skip] 2018-05-25 16:16:52 -07:00
run.sh Update bootstrapper scripts (automated commit) [ci skip] 2018-05-25 16:16:52 -07:00
version.props Revert "Fix local VSIX creation." 2018-05-21 17:20:48 -07:00

README.md

Razor

Travis: Travis

The Razor syntax provides a fast, terse, clean and lightweight way to combine server code with HTML to create dynamic web content. This repo contains the parser and the C# code generator for the Razor syntax.

This project is part of ASP.NET Core. You can find samples, documentation and getting started instructions for ASP.NET Core at the Home repo.

Building from source

To run a complete build on command line only, execute build.cmd or build.sh without arguments. See developer documentation for more details.