Go to file
N. Taylor Mullen d36838ed88 Handle imported @page directives.
- Prior to this imported `@page` directives would flow through the Razor system without error. This resulted in inconsistent behavior between MVC and Razor. Now, imported `@page` directives result in diagnostics on the page directive node.
- Added two tests to verify that we still treat views with imported page directives as Razor pages BUT we also log a diagnostic on the page directive node.
- Renamed the `ViewComponentDiagnosticFactory` class to `RazorExtensionsDiagnosticFactory` so it can be used for more than just view component diagnostics. This way we can ensure that our diagnostics don't end up overlapping.

#1503
2017-07-03 17:11:17 -07:00
build DiagnosticSource to 4.4.1 2017-07-03 15:09:38 -07:00
shared/Microsoft.AspNetCore.Razor.TagHelpers.Testing.Sources
src Handle imported @page directives. 2017-07-03 17:11:17 -07:00
test Handle imported @page directives. 2017-07-03 17:11:17 -07:00
tooling/Microsoft.VisualStudio.RazorExtension
.editorconfig
.gitattributes
.gitignore
.travis.yml
CONTRIBUTING.md
LICENSE.txt Update LICENSE.txt text 2017-07-03 14:07:34 -07:00
NuGet.config
NuGetPackageVerifier.json
README.md
Razor.sln
appveyor.yml Restore the VSIX project with MSBuild instead of NuGet.exe (#1471) 2017-06-27 10:28:23 -07:00
build.cmd
build.ps1
build.sh
version.props

README.md

Razor

AppVeyor: AppVeyor

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.