Pranav K
bbdb2dfbf2
Adding support for activating view properties
...
Fixes #700
2014-07-15 16:26:07 -07:00
Pranav K
f6106e424e
Reacting to System.Collections versioning change
2014-07-14 15:54:00 -07:00
Pranav K
3692cc7d83
Revert "Adding support for activating view properties"
...
This reverts commit 21bb8cb9fb .
2014-07-14 11:42:41 -07:00
Pranav K
21bb8cb9fb
Adding support for activating view properties
...
Fixes #700
2014-07-14 10:40:07 -07:00
David Fowler
7e7c56ce48
Renamed configurations to frameworks in project.json
2014-07-13 21:58:12 -07:00
Brice Lambson
172dcd179b
Bump version to 6.0.0-*
2014-06-19 11:21:43 -07:00
Pranav K
cc0dadc6b6
More Stylecop cleanup for ModelBinding and Razor
2014-06-09 14:27:12 -07:00
Pranav K
59e419ba0a
Adding support for @Inject to Mvc
2014-06-09 13:43:08 -07:00
David Fowler
812d5328d2
React to aspnet/KRuntime#65
2014-05-28 02:00:03 -07:00
David Fowler
7388dece9f
Fixed project.json casing
2014-05-26 02:50:43 -07:00
N. Taylor Mullen
a51ae39693
Adjust context property on RazorView.
...
Context is now HttpContext which pulls from ViewContext which is now a member.
#377
2014-05-23 15:45:25 -07:00
Pranav K
1adcf14b3d
Renaming Common to Microsoft.AspNet.Mvc.Common
2014-05-21 19:16:45 -07:00
Pranav K
0c66074033
Modify MvcRazorHost to use a fixed namespace for generated views.
...
Fixes #554
2014-05-20 17:00:02 -07:00
Pranav K
a53e378cf4
Updating kproj file to match tooling changes
2014-05-18 20:13:56 -07:00
Yishai Galatzer
db3cdfb97a
Remove content (and versions from AssemblyInfo)
2014-05-11 08:42:32 -07:00
Andrew Peters
f13865dedc
Updating copyright headers
2014-05-08 23:01:20 -07:00
Wei Wang
dc8b5010a0
Merge branch 'sort-dependencies' into dev
...
Conflicts:
src/Microsoft.AspNet.Mvc.Core/project.json
src/Microsoft.AspNet.Mvc.Razor.Host/project.json
src/Microsoft.AspNet.Mvc.Razor/project.json
2014-05-08 11:16:25 -07:00
David Fowler
3b31df3d29
React to renames
2014-05-08 03:24:18 -07:00
David Fowler
6fb34c6ab7
React to renames
2014-05-08 03:06:18 -07:00
David Fowler
c94cfc5b0e
Updated to use the new Roslyn.
2014-05-07 22:53:45 -07:00
Wei Wang
7b2feab670
Sort dependencies and remove duplicates in dependencies
2014-05-07 18:24:04 -07:00
Pranav K
076dedcca5
Reacting to package and namespace changes
2014-05-06 14:06:29 -07:00
Ryan Nowak
4ece9969bf
HttpAbstractions
2014-05-05 16:29:14 -07:00
Ryan Nowak
a9a7663cbd
Update MVC for reflection package changes
2014-05-05 10:38:07 -07:00
N. Taylor Mullen
6dc6ba6d37
Add User helper to controllers and views.
...
#277
2014-05-02 14:48:21 -07:00
N. Taylor Mullen
4494f40d67
Addressed code review comments.
2014-05-02 12:16:28 -07:00
N. Taylor Mullen
3e398be1f8
Require cshtml ending for full path view names.
...
If a view represents a full path and does not end in .cshtml the FindView and FindPartialView methods will throw.
#206
2014-05-02 12:16:24 -07:00
anpete
71acc74899
Merge branch 'dev' of github.com:aspnet/WebFx into dev
2014-05-01 17:42:48 -07:00
anpete
8208cd6b2f
Update file headers
2014-05-01 17:42:33 -07:00
N. Taylor Mullen
af18392815
Re-updated System.IO.FileSystem version.
2014-05-01 17:11:23 -07:00
N. Taylor Mullen
40bb9d0421
Update FileSystem package version.
2014-05-01 17:01:13 -07:00
Ryan Nowak
81611f13da
TEMPORARILY turning off warnings as errors to unblock the CI
2014-04-30 21:55:17 -07:00
David Fowler
8d53d40647
CR feedback
2014-04-28 11:19:36 -07:00
David Fowler
cff4a21e08
Make razor roslyn compilation work on mono
...
- Added a metadata cache (we need this for core clr). Will consider
moving this into the core
- Skip pdb generation on mono
2014-04-28 11:19:36 -07:00
N. Taylor Mullen
d46389888d
Modify search location for views.
...
When areas are not provided area locations are not searched for views. Also
added tests for search locations in RazorViewEngine failures.
2014-04-24 14:03:36 -07:00
dougbu
b8eb16d98d
Fix #266 : Throw when views aren't found at call sites
...
- note `htmlHelper.Display()` does not throw on failures
2014-04-17 12:05:16 -07:00
Louis DeJardin
f19fe0cbef
Filters version 2.0
...
This is functionally much more similar to legacy MVC.
Rather than a pure single pipeline, filter execution takes place in more
stages.
2014-04-17 11:45:58 -07:00
Ryan Nowak
40e7fcc9ba
Turning on warnings as errors
2014-04-16 20:21:07 -07:00
Ryan Nowak
d2453c5832
Bringing back Razor.Host as an assembly as a TEMPORARY WORKAROUND
...
The tooling team needs this as separate assembly. This will be removed
again soon.
2014-04-10 15:54:47 -07:00
Ryan Nowak
408d4056b1
Rearrange ViewContext
2014-04-10 11:40:57 -07:00
David Fowler
b1fd5cc689
Made a few more changes since we have new tooling
...
- Remove runtime interface declarations and use
Microsoft.Net.Runtime.Interfaces package
- Made tests compile for net45 and made default
intellisense view net45 for unit tests since Moq
doesn't work
2014-04-09 12:24:16 -07:00
David Fowler
a970fa04ab
Updated to use the new tooling
2014-04-09 12:24:16 -07:00
Ryan Nowak
e740633c06
CR feedback
2014-04-08 16:05:49 -07:00
Ryan Nowak
ab605ef935
Fix for #215 - nullref trying to generate link in a partial
...
The fix here is to do some cleanup we've been planning to do for a while,
rather than flowing IUrlHelper and IComponentHelper as part of the
ViewContext, they now are just grabbed from the service provider.
This simplifies the code for invoking a view, and gets us closer to the
desired API surface of ViewContext
2014-04-08 16:05:48 -07:00
dougbu
4feb8f4f28
Remove reduncant `ArgumentNullOrEmpty` resource from Core project
...
- came from Rendering but Core already had `ArgumentCannotBeNullOrEmpty`
- moved wording from "argument must not be" to "value cannot be"
Also make similar resources consistent in this repo
- adjust Razor's `ArgumentCannotBeNullOrEmpty` resource to use same wording
as Core, adding "The"
- update ModelBinding to also have `ArgumentCannotBeNullOrEmpty` and to use
it consistently with Core and Razor
2014-04-08 12:03:50 -07:00
Ryan Nowak
faa8251b70
Merging Mvc.Rendering and Mvc.Core
2014-04-07 17:32:49 -07:00
Pranav K
931d18b851
Adding exceptions for RenderSection, DefineSection and RenderBody
2014-04-07 12:25:44 -07:00
Pranav K
94c028a5df
Adding support for RazorView.IsSectionDefined
2014-04-06 17:18:37 -07:00
Pranav K
9291cbc50b
Adding support for RenderSection
...
* Adding unit tests for DefineSection \ RenderSection
* Changes per code review feedback
2014-04-03 15:00:06 -07:00
Pranav K
df9d5c4875
Adding support for Render Section
...
Initial draft for DefineSection \ RenderSection. This change is based on
changes to the Razor parser to enable Razor to generate HelperResults for
section instead of void delegates.
2014-04-03 14:26:54 -07:00
Pranav K
75dae948b2
Change IViewEngine.FindView to be synchronous
2014-04-03 14:20:39 -07:00
Pranav K
2e0bed750e
Adding support for Url.Content, Href and ~/ in Razor views
2014-04-03 14:12:55 -07:00
Ryan Nowak
1b4754454b
Relayering MVC Dependencies Part 1/N
...
Merging Mvc.Razor.Host into Mvc.Razor
2014-04-02 18:28:34 -07:00
N. Taylor Mullen
a5ed1157d5
Refactor ViewEngine to support partials.
...
This references WEBFX-95 and is the preliminary part to support Partial helpers.
2014-03-30 17:20:09 -07:00
dougbu
2b70156cf4
Inject `HtmlHelper` property into `RazorView<T>`
...
- add `IHtmlHelper<T>` and `ICanHasViewContext`
- adjust `HtmlHelper` and `HtmlHelper<T>` to match
- throw if `ViewContext` accessed prior to `Contextualize` call
- XML comments (from old world) all around
Note
- no current need for an `HtmlHelper` copy constructor or `Clone()` method
- expect recursion code to get another injected `IHtmlHelper<T>` and then
"contextualize" that instance with a new `ViewContext`
2014-03-28 17:29:00 -07:00
Pranav K
f1efbde29d
Revive HelperResult to allow using @helper in views
2014-03-28 11:08:15 -07:00
dougbu
655b329dd0
Increment System.Threading.Tasks package version
...
- today's build break, mark II
also remove dangling reference to TestCommon
2014-03-27 19:56:27 -07:00
dougbu
8ed5b7b079
Fix WebFx-169 and #118
...
- move `DynamicObject` derivation up to new `DynamicViewData` class, fixing [WebFx-169](http://projectk-tc:8080/browse/WEBFX-169 )
- avoid direct `_data` lookup in previous `TryGetMember()`, fixing [#118 ](https://github.com/aspnet/WebFx/issues/118 )
- rename ViewData -> ViewDataDictionary
Also
- flesh out `IDictionary<string, object>` implementation in `ViewData`
- provide `ViewData` copy constructor that allows TModel to change
- remove `TryGetIndex()` and `TrySetIndex()` implementations; use `ViewData[]` instead
- restore `ViewContext.ViewBag` from legacy MVC
2014-03-26 11:42:52 -07:00
Ryan Nowak
6fb0d5b282
Commonize 'throw on view not found'
...
Deduping this code by moving it to ViewEngineResult.
2014-03-25 14:25:49 -07:00
Ryan Nowak
fa21d1cd65
Remove extra TextWriter parameter from IView
...
This was here in the legacy code for legacy reasons. We're passing the writer
as part of the ViewContext, so we can remove this extra parameter.
2014-03-25 14:19:43 -07:00
Ryan Nowak
86ac978451
Implementation of ViewComponents
2014-03-25 11:04:37 -07:00
David Fowler
699b146d1f
Bumped the version of immutable collections.
2014-03-25 02:06:59 -07:00
dougbu
d3217fd3af
Cleanup warnings
...
- primary action is removing interfaces from Razor that Core exports
- also remove an unused field from Core's `DefaultControllerAssemblyProvider`
2014-03-22 18:58:23 -07:00
dougbu
32d031c6eb
Add `ModelMetadata` to `ViewData`
...
- demonstrate `ModelMetadata` is available in a view
Also
- simplify `View()` overloads in `Controller`, pending #110 decisions
- make `Model` in `RazorView<T>` readonly
2014-03-21 14:42:42 -07:00
Ryan Nowak
1ca2203421
cr feedback
2014-03-21 11:13:15 -07:00
Ryan Nowak
6610788b75
Restore the TextWriter to ViewContext
2014-03-21 11:13:14 -07:00
Pranav K
8ea196023e
Modify controller discovery to only look for types that reference Mvc.Core
...
assembly
2014-03-21 10:02:54 -07:00
dougbu
5875452755
Quick fix-ups
...
- Move .NET test projects back into net45 folder
- Catch up with latest System.Runtime.InteropServices version
2014-03-19 23:41:17 -07:00
Yishai Galatzer
dcc286a299
Refactor FindView to always take a viewName (no null support)
...
and only use RouteValues (or generically just Dictionary<string, object>).
This is temporary and will change once we get Partials (which are currently just dead code)
For now this will unblock ViewComponents
2014-03-19 18:48:36 -07:00
Yishai Galatzer
227121b3f9
CR Feedback
2014-03-19 09:26:20 -07:00
Yishai Galatzer
cfb06c0de3
Areas feature - Phase I
...
1. Areas defined by the Area attribute
2. Areas are a routeconstraint on the actiondescriptor
3. Areas find pages through route values
Other changes:
1. Remove Path from ActionDescriptor - It doesn't make sense with this change
2. Add sample Area
2014-03-19 09:26:18 -07:00
dougbu
3a0add8be8
Cleanup pass: Move Rendering classes to correct namespace
...
- use Microsoft.AspNet.Mvc.Rendering namespace throughout assembly
Also
- move `IdAttributeDotReplacement` from `TagBuilder` to `HtmlHelper`
- remove commented-out code in `HtmlHelper`
- use `var` and `[NotNull]` more
- `String` -> `string`
- correct Resources references; add missing resources
2014-03-18 14:02:39 -07:00
N. Taylor Mullen
f8179f03e4
Trigger view rendering asynchronously.
...
This is as simple as modifying the base class to return task and await the ExecuteAsync method. Also added a piece to the sample project to verify functionality.
2014-03-17 12:18:54 -07:00
David Fowler
0247c3a393
Updated RoslynCompilationService to account for new changes to API
2014-03-16 23:42:50 -07:00
Ryan Nowak
77a7bb58a6
CR feedback
2014-03-12 10:57:48 -07:00
Ryan Nowak
12985c19ee
CR feedback
2014-03-12 10:57:47 -07:00
Ryan Nowak
0ce2c511d4
Adding URL generation to WebFX for controllers and views
...
This follows a similar pattern to html helpers - a minimal basis interface
that performs the main functionality, and a set of extension methods that
make up the rich API.
2014-03-12 10:57:46 -07:00
Yishai Galatzer
ed4d29042a
Remove unused/non exiting service from RazorViewEnginer
...
Rename PathBaseViewFactory.cs to match the class name VirtualPathViewFactory
2014-03-10 23:32:55 -07:00
David Fowler
e991e86863
Updated roslyn compilation to use new host interface.
2014-03-10 23:17:52 -07:00
Ryan Nowak
86f18f5da7
Moving ViewContext to rendering, breaking coupling to RequestContext
2014-03-10 16:15:46 -07:00
Pranav K
123089d5c7
General razor clean up
...
* Change Razor compilation to use ApplicationBasePath to determine the
app root
* Change class name generation to be based on app-relative path.
2014-03-10 11:56:07 -07:00
David Fowler
e4e665075c
Removed unused interface IMetadataReferenceProvider
2014-03-09 01:39:07 -08:00
David Fowler
34641d21e6
Added code path for rendering html encoded content on K
2014-03-08 23:14:40 -08:00
David Fowler
282ccd6999
Remove duplicate paths
2014-03-08 21:12:01 -08:00
David Fowler
e62e5a2bef
Simplify how we pick dependencies for razor compilation
2014-03-08 17:15:16 -08:00
David Fowler
bda7dd8d2d
Made razor work with core clr
2014-03-08 15:56:01 -08:00
David Fowler
b482a9e3cb
Made roslyn based compilation of razor files work
...
- Now that services are being flowed through the entire stack
we can nuke the csc service and always use the roslyn based compilation for views
- The RoslynCompilationService is still very much a prototype but it's a good
step to see what other services might may or may not need to flow.
- Removed the PhysicalFileSystem construction from Mvc itself. This will come from
the hosting layer and is newed up temporarily in the PathBasedViewFactory itself.
2014-03-08 15:16:44 -08:00
David Fowler
360f81d0a8
Added required packages for K
2014-03-08 01:10:02 -08:00
Pranav K
28b7597779
Introducing NotNullAttribute for null argument checks
2014-03-07 14:03:28 -08:00
David Fowler
eb61728107
Fix webfx compile error.
...
- Assembly.Load(byte[]) has been removed
- Added IAssemblyLoaderEngine type that flows from the host
2014-03-06 22:11:10 -08:00
Pranav K
914d8e8a3b
Updating DI to use ServiceDescriptors
...
Fixes #25
2014-03-05 15:59:33 -08:00
David Fowler
05e0d5cabb
Updated to newer version of roslyn
2014-03-04 22:59:48 -08:00
Pranav K
48738b91f4
Updating resx designer file to use updated format
2014-03-03 12:05:00 -08:00
Yishai Galatzer
6244d55e1f
Rename MVC -> MVC.Core, MVC.Startup -> MVC
2014-03-02 23:16:18 -08:00
David Fowler
346f02e37c
First stab Roslyn based compilation service for razor pages
...
- Flow the host service provider to MvcServices
- Use assembly neutral interfaces to access host services
- Added RoslynCompilationService to Microsoft.AspNet.Mvc.Razor
- Modified self host sample as helios needs to be updated to flow more services
2014-03-02 01:14:01 -08:00
Pranav K
9915b1c767
Reintroduce WriteAttribute methods on RazorView type
2014-02-24 19:55:48 -08:00
Pranav K
906e68e72e
Adding workaround to compilation for web host
2014-02-21 08:09:03 -08:00
Yishai Galatzer
941a12daea
Action selection based on action descriptors
2014-02-17 22:42:02 -08:00
Yishai Galatzer
1d40372cc3
Renames to prepare for action selection PR
2014-02-16 11:10:21 -08:00
Yishai Galatzer
a725e4c9b5
Update to support 404
...
Renamed actiondescriptor to routecontext, because action selection didn't happen yet.
Need to add actiondescriptors back and modify RazorViewEngine to use the right thing.
2014-02-10 13:24:45 -08:00
Pranav K
3d6740bc8a
Update namespace generation in RazorCompilationService to use root
...
relative paths.
2014-02-07 13:55:59 -08:00
Pranav K
cfc6b9ecdd
Fixing compilation failure due to change in namespace in Microsoft.AspNet.FileSystem
2014-02-06 16:48:06 -08:00
Pranav K
b51fd08bab
Update ViewDataOfT.SetModel to check for type compatibility when setting
...
model instance.
2014-02-05 14:33:11 -08:00
Pranav K
6c8485b1ef
Removing VirtualFileSystem from Razor
...
* Paths rooted by a leading slash (e.g. /foo) are correctly resolved by the
PhysicalFileSystem. This change is an experiment to determine if we can
get away with not having virtual paths in WebFx.
* Additionally removing types (MetadataVirtualPathViewFactory,
VirtualPathAttribute) that are currently unused.
2014-02-04 22:08:27 -08:00
Pranav K
c91a814ffa
Changes to get the sample running again
2014-02-03 21:05:54 -08:00
Pranav K
cc414e0fef
* Renaming Mvc.Forms to Mvc.Rendering
...
* Moving data types to Mvc.ModelBinding
2014-01-30 16:45:40 -08:00
Pranav K
6c9d562fc3
* Using RazorView<dynamic> as base type until we get model support
...
* Modifying ViewData to share inner dictionary until we figure out how to
pass it correctly
* Removing unused NuGet.config
2014-01-30 07:26:46 -08:00
Pranav K
a6393e77ab
Moving MvcRazorHost to a separate assembly
2014-01-29 15:20:48 -08:00
Pranav K
cb8a32e5a6
Updating the view engine to use Microsoft.AspNet.Razor package
2014-01-29 10:08:46 -08:00
Pranav K
afa22994bf
Fixing project.json schemas
2014-01-25 23:57:22 -08:00
David Fowler
f36aa5ba3c
Fixed up project.json to be more specific.
2014-01-25 22:16:30 -08:00
David Fowler
127b6886c4
Removed the generated csprojes
2014-01-25 17:16:00 -08:00
David Fowler
328d43a638
Updated the sample to use the owin http abstractions glue.
2014-01-25 16:44:35 -08:00
David Fowler
1d27b4e2e4
Remove packages.config
2014-01-25 15:16:24 -08:00
David Fowler
a0de7048b5
Ifdef to make stuff compile on both platforms.
2014-01-24 02:20:46 -08:00
David Fowler
b0933fdd35
Updated the build and removed older projects.
2014-01-24 02:02:47 -08:00
David Fowler
b54a0da6e8
Updated MVC.
...
- Use new HttpAbstractions
- Updated the build
- Added new projects
2014-01-24 01:55:17 -08:00
David Fowler
477cf79e58
Removed unneeded dependencies and updated owin bits.
2014-01-22 19:03:56 -08:00
Pranav K
7adb658a38
Moving compilation to Microsoft.AspNet.Mvc.Razor
2014-01-22 15:12:28 -08:00
Pranav K
df5a6d30d6
* Migrating HtmlHelper stub
...
* Updating project json files to new format
2014-01-22 12:27:24 -08:00
Pranav K
69a99e5c41
Moving View overloads to Controller base type
2014-01-22 10:59:32 -08:00
Pranav K
7b8a54cc24
* Updating project structure to use the src, test, build, samples format
...
* Adding build scripts to use K compilation.
2014-01-21 16:15:44 -08:00