Go to file
Ryan Nowak bafe1b27ff Add line numbers for design time directives
Addresses a blocking issue for FAR of types when used in user-code in a
directive. The FAR infrastructure is skipping over the directive code
because it's mapped to `#hidden`. As you can see in the code, the token
provided by the user is already included in the projection mappings.

I think we didn't do this before because we didn't expect this code to
need line numbers - it's not really debuggable, and design-time codegen
doesn't happen when you build the project.

I think it's OK for now that we don't line-map (or include) directives
based on view imports. If you trigger FAR on an `@inject ...` in an
import for instance, you'll find the reference for the view import file.
That seems pretty good, and the only cases I can really imagine it being
broken would be for go-to-definition (within a Razor view). Lets revisit
in the future based on feedback.
2018-10-18 13:46:24 -07:00
.vsts-pipelines/builds
benchmarks/Microsoft.AspNetCore.Razor.Performance
build Update VS dependencies 2018-10-16 17:58:03 -07:00
shared/Microsoft.AspNetCore.Razor.TagHelpers.Testing.Sources
src Add line numbers for design time directives 2018-10-18 13:46:24 -07:00
test Add line numbers for design time directives 2018-10-18 13:46:24 -07:00
tooling Update VS dependencies 2018-10-16 17:58:03 -07:00
.editorconfig
.gitattributes
.gitignore
.travis.yml
CONTRIBUTING.md
Directory.Build.props automated: bulk infrastructure updates. Update bootstrapper scripts and remove unnecessary signing properties 2018-09-28 17:10:38 -07:00
Directory.Build.targets
LICENSE.txt Update LICENSE.txt 2018-09-27 15:21:53 -07:00
NuGet.config
NuGetPackageVerifier.json
README.md
Razor.sln Move RazorGenerate and RazorTagHelper tasks in to the Sdk 2018-09-19 10:09:56 -07:00
build.cmd
build.sh
korebuild-lock.txt Revert "Update dependencies.props" 2018-10-01 13:00:44 -07:00
korebuild.json
run.cmd
run.ps1 automated: bulk infrastructure updates. Update bootstrapper scripts and remove unnecessary signing properties 2018-09-28 17:10:38 -07:00
run.sh automated: bulk infrastructure updates. Update bootstrapper scripts and remove unnecessary signing properties 2018-09-28 17:10:38 -07:00
version.props

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.