Doug Bunting
f7ef604b86
Regenerate .kproj files
...
- does not seem to have a negative impact
- e.g. sample web projects run / debug fine
2014-11-04 22:41:53 -08:00
Pranav K
d5515bfbb6
Adding arg null or empty checks to RazorViewEngine.FindView &
...
FindPartialView
2014-11-02 18:33:56 -08:00
Pranav K
74da350086
Remove enableInstrumentation from CompilerCache and IMvcRazorHost
2014-11-02 18:15:39 -08:00
N. Taylor Mullen
4720381d78
Change the IRazorCompilationService's DI lifetime.
...
- Modified the MvcServices registration of IRazorCompilationService to be transient to ensure the IMvcRazorHost does not maintain state.
2014-10-31 22:41:07 -07:00
Doug Bunting
e73655229c
Correct some `ViewDataDictionary` constructor calls
...
- ensure correct `ViewData.ModelState` value in a `RazorPage` instance
- let view components inherit `ViewData.Model` from surrounding context
- do not create an isolated `ViewDataDictionary<TModel>` in one HTML helper
- allows previous `ViewDataDictionary<TModel>` constructor to be `internal`
- also add comments for that constructor
- change two `ViewDataDictionary` copy constructor calls to avoid uselessly
copying `Model` and related information from source
2014-10-29 19:18:20 -07:00
Kirthi Krishnamraju
dc1aaf0664
Merge branch 'release' into dev
2014-10-29 13:42:56 -07:00
Kirthi Krishnamraju
028a2359a4
Added description in project.json for all projects
2014-10-29 13:40:31 -07:00
Pranav K
d35057deea
Reacting to Roslyn version changes
2014-10-28 06:34:06 -07:00
Doug Bunting
1f670bf3a7
Merge branch 'release' into dev
2014-10-27 16:43:02 -07:00
David Fowler
653d31b336
Don't lock metadata references
2014-10-27 16:14:32 -07:00
Pranav K
e0116bab30
Modifying ArgumentNullOrEmpty message to be consistent with Mvc 5 \
...
testing code.
2014-10-27 15:07:53 -07:00
David Fowler
c39efc88aa
Merge branch 'release' into dev
2014-10-22 23:23:09 -07:00
David Fowler
4cddf880ec
React to KRuntime change
2014-10-22 23:21:41 -07:00
YishaiGalatzer
4efdae2190
Merge branch 'release' into dev
2014-10-22 17:15:41 -07:00
YishaiGalatzer
f9661dfcd0
Fix pdb generation for win7/coreclr
2014-10-22 17:09:39 -07:00
Pranav K
9e3a92e569
Revert "Mvc should not pull in the K.Roslyn package"
...
This reverts commit 6050d73554 .
2014-10-22 15:27:16 -07:00
Pranav K
6050d73554
Mvc should not pull in the K.Roslyn package
...
Fixes #1427
2014-10-22 11:15:57 -07:00
Pranav K
66f626b828
Remove unnecessary references from project.json
2014-10-17 14:26:58 -07:00
Pranav K
b8d30f29c6
Add IsPartial property to IRazorPage
...
Fixes #1002
2014-10-17 10:52:39 -07:00
Stephen Halter
a21ed4bc51
Replace calls to GetService<T> with GetRequiredService<T>
...
Even though GetService<T> still exists, GetRequiredService<T> preserves
the old behavior of throwing for missing services.
2014-10-16 14:51:41 -07:00
Stephen Halter
54ac14fa0f
IServiceProvider.GetService now returns null for missing services
...
Previously GetService would throw if the requested service was missing.
This commit updates MVC to account for the change in behavior.
2014-10-16 14:51:34 -07:00
Pranav K
75c6327b2e
Layout property needs to be propogated between nested view starts
...
Fixes #1364
2014-10-15 18:54:02 -07:00
Hao Kung
448ac5a0dc
React to options and hosting changes
2014-10-14 19:20:28 -07:00
Pranav K
2d67f2fc27
Modify precompilation to always generate instrumentation
2014-10-14 16:10:33 -07:00
Pranav K
3f29de5a5f
Ensure PDB writer component is available before emiting PDB
...
Ported from
36cd4901f6
Fixes #1324
2014-10-14 06:17:52 -07:00
Pranav K
4ec6da1ed3
Adding RenderSectionAsync to RazorPage
...
Fixes #845
2014-10-13 17:44:49 -07:00
Pranav K
a633ef4f97
Modify Razor components to use RazorViewEngineOptions.FileSystem
...
Fixes #1302
2014-10-13 14:34:31 -07:00
YishaiGalatzer
0d603a38cf
PR feedback and sort/clean MvcServices
2014-10-12 16:37:17 -07:00
Pranav K
18e11f546d
DecorateWriter does not get called for partial views rendered via
...
Html.PartialAsync
* Introducing StringCollectionTextWriter to buffer the contents of
PartialAsync
* Ensure DecorateWriter is called for partial views
Fixes #1266
2014-10-12 14:24:29 -07:00
Pranav K
20eadb94ee
Remove instrumentation from public API surface
...
Fixes #1262
2014-10-12 12:57:04 -07:00
YishaiGalatzer
75084ba0cd
Move caching of compilation results to its own layer.
...
This will allow only creating the razor compilation when really needed, with the right lifetime.
2014-10-11 15:35:11 -07:00
YishaiGalatzer
13ee27c92c
Rename IControllerAssemblyProvider to IAssemblyProvider and follow through resultant renames
2014-10-11 13:26:07 -07:00
Pranav K
b19764d922
Reacting to CLR package versioning changes
2014-10-10 10:34:01 -07:00
YishaiGalatzer
275f63e91f
Prevent Roslyn from loading prematurely on cold start
2014-10-09 23:34:02 -07:00
Pranav K
ba6813a418
Support specifying paths starting with ~/ for layout and partial views
...
Fixes #821
2014-10-09 17:15:09 -07:00
N. Taylor Mullen
b68fae9b8c
Removed the TypeActivator from TagHelper creation.
...
- We now new up TagHelper's, requiring them to have parameterless constructors.
- Added test to validate throwing.
- Removed existing tests that expected the constructor injection behavior.
#1303
2014-10-09 12:48:20 -07:00
NTaylorMullen
3dff1ca410
Add ITagHelperActivator.
...
- The TagHelperActivator enables dependency injection via properties and allows access to the ViewContext.
- This replaces the ICanHasViewContext mechanism that we had in place before.
- Added tests and fixed up existing to work with new format for providing ViewContext.
#1258
2014-10-09 12:39:57 -07:00
Doug Bunting
05c35dd3ba
Add missing access modifier
2014-10-09 12:39:45 -07:00
Doug Bunting
639a788ed8
Tag Helpers: add `ModelExpression` class to support `Expression<Func<TModel, TValue>>` attributes
...
- includes new `RazorPage<TModel>.CreateModelExpression<TValue>()` method
- #1240
nit:
- regenerating the resources reordered Microsoft.AspNet.Mvc.Core's Resources.designer.cs
2014-10-09 12:39:19 -07:00
Doug Bunting
3290791c5f
Use nameof when initializing `GeneratedTagHelperContext`
...
nits:
- missing blank line before a comment
- cleanup line breaks in `RazorPage.CreateTagHelper`
2014-10-09 12:39:04 -07:00
Doug Bunting
9899cb336a
Cleanup tabs in project.json files
2014-10-09 12:38:52 -07:00
NTaylorMullen
d041249b27
Add CreateTagHelper to RazorPage.
...
- The CreateTagHelper method is responsible for creating and activating TagHelpers.
- Added the support for requesting the ViewContext.
- Added tests to validate the tag helper creation mechanism.
#1104
2014-10-09 12:38:31 -07:00
N. Taylor Mullen
082512f63c
Add writing scopes to RazorPage.
...
- RazorPage now has the ability to use writing scopes to control where things are written.
- This enables RazorPages to use these writing scopes with TagHelpers. TagHelpers use them to buffer attributes that have C# contained within them and to also buffer content of TagHelpers whos ContentBehavior is Modify.
- Added RazorPage tests to validate their functionality.
#1102
2014-10-09 12:38:19 -07:00
N. Taylor Mullen
757441777e
Use Microsoft.AspNet.Razor.Runtime project.
2014-10-09 12:37:54 -07:00
N. Taylor Mullen
2670b19f5c
Remove framework assembly versions.
2014-10-06 14:57:43 -07:00
David Fowler
5890b5b254
Fixed up references
2014-10-05 13:24:00 -07:00
David Fowler
f076fc7dcf
React to roslyn changes
2014-10-03 03:23:04 -07:00
Pranav K
12477c9f52
Changes to make EnableInstrumentation conditionally enabled
2014-10-02 17:55:40 -07:00
Pranav K
5d32d224f4
Changes to support PageExecutionContext in Razor
...
Fixes #1083
2014-10-02 17:55:23 -07:00
Pranav K
ad8ab4b8fd
Adding support for ViewLocationExpanders to allow modifying view locations
...
without changing the view engine.
Fixes #1039
2014-10-01 16:15:25 -07:00