Go to file
N. Taylor Mullen d6f3a1bd22 Enable using directive IntelliSense auto-completion.
- Allow identical `@using` directives in the primary document. This means that if a user types `@using System` twice in the primary document (i.e. `Index.cshtml`) then we'll generate that using statement twice; this enables proper C# IntelliSense to light up on both using statements and allows auto-completion to work because there's no more magical distinction logic for Razor code that is in the current document.
- Prior to this change if you had two identical using statements in the same document one would be in no-mans land mapped to nothing (not C#, not HTML) and the other would be mapped to C#; the second a user differentiated the two statements (i.e. adding a `.`) we'd distinctify the using statements resulting in an invalid completion.
- This PR has an end-user impact where they will now receive the normal C# warning about having duplicate using. I treated this prior behavior more as a bug because we threw away the first using directive instance which impacted editing and in general was a silly thing to correct for the user.
- Added new integration test showing how using directives are not de-duplicated in the primary document.

#1255
2018-06-15 13:17:09 -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
src Enable using directive IntelliSense auto-completion. 2018-06-15 13:17:09 -07:00
test Enable using directive IntelliSense auto-completion. 2018-06-15 13:17:09 -07:00
tooling Make local VSIX builds debuggable. 2018-05-21 17:25:42 -07:00
.editorconfig
.gitattributes
.gitignore
.travis.yml
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
NuGetPackageVerifier.json Exclude Visual Studio packages from default NGPV ruleset (#2352) 2018-05-15 10:04:01 -07:00
README.md
Razor.sln
build.cmd
build.sh
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
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.