N. Taylor Mullen
6f7cb763a2
Update TModel code generation.
...
- Prior to this TModel would be set to a potentially non-fully qualified name. This would cause errors in default MVC templates.
- Regenerated test files to reflect new TModel.
- Updated unit test to reflect new behavior.
#1222
2017-04-14 12:32:20 -07:00
Ryan Nowak
c0e3519bc3
Set an order on @inject to run behind @namespace
...
The problem is that @inject uses the type name, and @namespace can change
it. Setting an explicit order makes sure that these things happen in a
sensible sequence.
2017-04-13 13:59:47 -07:00
N. Taylor Mullen
1b8a4e704c
Rename ITagHelperDescriptorBuilder => TagHelperDescriptorBuilder.
...
#1210
2017-04-11 17:08:38 -07:00
Ryan Nowak
e5cac9fb7f
Implement @namespace
...
This change adds support for @namespace, and introduces a set of
changes that are needed to support @namespace in the parser.
@namespace and @class have always been treated as reserved words by Razor,
with the intent that someday they would be allowed as directives.
This changes makes that possible.
You will still get an error about @namespace being a reserved word if you
don't have the directive.
2017-04-11 12:46:02 -07:00
Ryan Nowak
b4b4a19549
Fix #1194 - DirectiveIRNode doesn't have source
...
Now with line mappings!
2017-04-11 10:45:24 -07:00
Pranav K
e2267f54a6
Add support for naming a page ( #1204 )
2017-04-11 10:10:45 -07:00
Ryan Nowak
207f40f92d
Move test infrastructure
...
This moves the test infrastructure to a common project and udpates the MVC
tests to use the good integration testing features.
2017-04-10 19:42:56 -07:00
Ajay Bhargav Baaskaran
0f7b0f5d8c
[ Fixes #1196 ] Remove Content property from HtmlContentIRNode
2017-04-10 12:54:11 -07:00
N. Taylor Mullen
0618bae3bd
Rename Microsoft.AspNetCore.Razor.Evolution => Microsoft.AspNetCore.Razor.Language.
...
- Also updated corresponding test project to go from Evolution => Language.
- Regenerated test files to reflect new file paths.
#1169
2017-04-10 10:20:04 -07:00
Ryan Nowak
dbb682799e
Update generated designer files
2017-04-04 09:14:03 -07:00
Ryan Nowak
3ec4e244db
Cleanup around ViewImports
...
Added a default for the imports filename.
Deleted unused test files
2017-04-03 20:23:02 -07:00
Ajay Bhargav Baaskaran
a74cda4402
Setting TokenKind for RazorIRToken
2017-03-31 14:52:10 -07:00
Ajay Bhargav Baaskaran
bc347d736f
[ Fixes #964 ] Removed Content property from CSharpStatementIRNode
2017-03-31 10:52:53 -07:00
N. Taylor Mullen
fdea42624d
Fix UrlResolutionTagHelper tag helper inclusion.
...
- Also fixed test name to assert all defaultly included TagHelpers instead of just the UrlResolutionTagHelper
2017-03-29 16:30:28 -07:00
Ryan Brandenburg
60a87829f8
Fix type name
2017-03-29 16:19:12 -07:00
Jass Bagga
582ffe2e10
Add HeadTagHelper and BodyTagHelper
...
Addresses aspnet/Mvc#5728
2017-03-29 12:23:55 -07:00
Ajay Bhargav Baaskaran
0b5113c76e
Suppress compilation errors for TModel in imports
2017-03-29 11:42:13 -07:00
Ryan Nowak
8d1cc43f8e
Get rid of extra dependencies
...
This project shouldn't have any dependencies besides Razor.
2017-03-27 14:04:11 -07:00
Ryan Nowak
1683018d71
Add a static 'register' method to MVC's extensions
...
This will be called by the IDE, and by MVC to register all of the
functionality in Microsoft.AspNet.Mvc.Razor.Extensions.
2017-03-24 15:56:32 -07:00
Ryan Brandenburg
b4640f8bb8
Use AspNetCore.Mvc.RazorPages
2017-03-24 13:08:07 -07:00
Ryan Brandenburg
9ffc745e76
Add Mvc.Razor.Extensions to VSIX
2017-03-24 11:45:04 -07:00
Pranav K
2ea0659e60
Change compilation targets.
...
* Remove net451 as a compilation target
* Upgrade to netcoreapp2.0
2017-03-24 07:49:34 -07:00
Ryan Brandenburg
72febdac64
Move Razor.Host to Razor
2017-03-22 16:10:44 -07:00