Ryan Nowak
fc00aff7c5
Add TestCommon project
2015-03-16 13:49:29 -07:00
damianedwards
7d1c1ed8eb
Enable Tag Helper initializers:
...
- Any Action<ITagHelper, ViewContext> can be registered in DI to allow setting of tag helper properties after any [Activate] properties are set but before their bound from the source document and the tag helper is executed
- Removed previous tag helper options as initializers is the way to do this now
- #1689
- #2162
2015-03-13 12:31:02 -07:00
N. Taylor Mullen
800bcde501
Fix build.
2015-03-13 00:09:29 -07:00
N. Taylor Mullen
385fa29407
Update xunit.runner.kre => xunit.runner.aspnet.
2015-03-12 18:01:41 -07:00
N. Taylor Mullen
c1a026cbf7
Update .kproj => .xproj.
2015-03-11 14:01:43 -07:00
Ajay Bhargav Baaskaran
db728cd386
Introducing TempData
...
- Issue #455
- Updated MVC sample
- Added relevant tests
2015-03-10 12:04:05 -07:00
Doug Bunting
a4e01bfe35
Correct setup of three tests added in prior commit
...
- compiler given `ApplicationName`, not `ApplicationBasePath`
- @pranavkm wrote the tests prior to 64ddbe0160
nit: rewrap long line introduced in prior commit
2015-03-10 09:28:17 -07:00
Pranav K
717c2bfd39
* Redesign CompilationResult so that it does not throw when CompiledType is
...
accessed.
* Update to use ICompilationException interface from
Microsoft.Framework.Runtime
* Update to use RoslynCompilationException
Fixes #955
2015-03-09 14:39:10 -07:00
N. Taylor Mullen
1d578ca2fd
Remove BOM from project.json, *.cmd, *.sh and *.shade files.
2015-03-09 12:56:42 -07:00
N. Taylor Mullen
e829ba7646
Update aspnet50/aspnetcore50 => dnx451/dnxcore50.
2015-03-08 12:52:24 -07:00
Ryan Nowak
90cef3b9ca
Refactor of the model metadata provider
...
Separates the MMP into two phases:
1). Creation of the ModelMetadata, discovery of properties and attributes
(reflection) is part of the MMP
2). Lookup of details based on attributes is now part of another phase,
and has its results cached.
Users can now implements and register an IFooMetadataProvider to customize
a single aspect of metadata (see how data annotations does it).
2015-03-05 13:19:10 -08:00
Hao Kung
c290e897b0
React to DI
2015-03-04 19:26:54 -08:00
sornaks
b581ff343c
Making RazorPage.Write() handle TagHelperContent.
2015-03-04 18:26:20 -08:00
sornaks
284eb9ac6a
Reacting to Razor changes - TagHelperOutput is writing to TextWriter instead of string.
2015-03-04 12:56:58 -08:00
Ajay Bhargav Baaskaran
81c3b75980
Replaced WebUtility.HtmlEnode with IHtmlEncoder.HtmlEncode
2015-03-03 13:57:36 -08:00
Wei Wang
64ddbe0160
React to runtime perf changes in functional tests
2015-02-27 02:53:46 -08:00
Pranav K
73f44889f2
ViewLocationExpanderContext should have a flag that indicates if the
...
lookup is for a full or partial view
Fixes #1212
2015-02-26 16:41:54 -08:00
Pranav K
57f5b19f25
* Move precompiled assemblies into a resource in the primary assembly.
...
* Emit the primary assembly if a tag helper requires it.
* Make TagHelperSample.Web use precompilation.
Fixes #1693
2015-02-19 17:50:54 -08:00
Ajay Bhargav Baaskaran
9fcf31fa43
Activate ViewDataDictionary in DefaultTagHelperActivator
2015-02-19 13:21:06 -08:00
Pranav K
eb7b0d6ae3
* Introduce _GlobalImports to inherit directives.
...
* Remove inheritance from _ViewStarts
Fixes #825
2015-02-18 10:02:37 -08:00
Stephen Halter
5de210f527
Fix for #1416 - Remove all uses of ITypeActivator and use the static method instead
...
- ITypeActivator is being removed
- Where an ITypeActivator was used before, use the static ActivatorUtilities
2015-02-16 16:02:39 -08:00
Pranav K
a33e83f363
Adding IView.Path and ViewContext.ExecutingPagePath
...
Fixes #1940
2015-02-13 06:12:15 -08:00
Pranav K
6ef5518f8a
Remove IRazorFileProviderCache and rely on file expiration triggers to
...
file change expiry.
Fixes #1969
2015-02-09 15:08:26 -08:00
Pranav K
59db8143da
Updating CompilerCache to use IMemoryCache and file system watcher to
...
expire files in razor file cache.
Add a functional test to ensure the compiler cache does not get
initialized until the first request to a View.
Fixes #1708
2015-02-05 09:52:17 -08:00
sornaks
6e8cc6ba74
Adding extension methods ConfigureMvcOptions and ConfigureRazorViewEngineOptions.
2015-02-04 14:07:07 -08:00
Pranav K
7c7eaa264d
Use CRC32 instead of MD5 for hashing the file content.
...
Fixes #1800
2015-01-30 18:01:24 -08:00
Ryan Nowak
08a578d01f
Issue #1525 - Enhancements to ActionContext
...
- Adding a new constructor that takes ModelState.
- Removing an extra constructor that's not needed
- docs
- test cleanup
2015-01-27 14:35:31 -08:00
Doug Bunting
54f88ab190
[cleanup] Update .gitignore and reset .kproj files
...
- add a couple more exclusions to .gitignore (recent VS additions)
- remove `<ProjectExtensions/>` elements
- update files that don't have the correct output directories
- remove dangling PrecompilationWebSite.kproj file
2015-01-21 22:03:23 -08:00
Chris Ross
d51dad9560
Handle IFileSystem rename.
2015-01-20 12:16:30 -08:00
Pranav K
7667eba34e
Layouts for partials
...
Fixes #1621
2015-01-20 11:44:48 -08:00
Yishai Galatzer
9ac37fbc7a
Rename TextPlainFormatter and remove other minor warnings
...
#1631
2015-01-16 12:09:53 -08:00
Doug Bunting
a77d071830
React to aspnet/Razor#268 changes
...
- part I of #1253 using new Razor capabilities
- update baselines to match latest code generation
- use new `CodeBuilderContext` and `TagHelperAttributeValueCodeRenderer` signatures
- test complex expressions in bound non-string attribute values
2015-01-15 16:47:22 -08:00
Kiran Challa
02f4ca9f05
[ Fixes #1791 ]Remove XML formatter from defaults
2015-01-15 15:46:49 -08:00
Chris Ross
9aff289dfe
Handle PipelineCore rename.
2015-01-15 15:25:17 -08:00
Doug Bunting
89fd1abc58
Nit: Clean up duplicate tests
...
- lead to errors during test discovery in VS
2015-01-13 12:49:26 -08:00
Pranav K
b7d44666b8
Adding support for flowing compilation errors to Diagnostics middleware
...
Fixes #872
2015-01-13 07:32:58 -08:00
Pranav K
110ee28e3e
Adding support for flowing compilation settings to views
...
Fixes #871
2015-01-02 15:34:52 -08:00
Pranav K
22ac7c45e5
Update Mvc to use official xunit runner
2014-12-17 11:27:07 -08:00
Doug Bunting
3e26142de1
Remove use of `Assert.DoesNotThrow()`
...
- no longer in xunit 😃
2014-12-11 15:51:15 -08:00
Praburaj
3dfcc884fe
Changes to address IFileSystem.Watch method addition
...
Absorbs the new IFileSystem interface. This change is to just address the breaking change introduced in IFileSystem.
Razor has to do the necessary changes to subscribe to the Watch event for expiring the modified files.
2014-12-11 10:00:46 -08:00
N. Taylor Mullen
b666cce854
Reacted to aspnet/Razor#215 changes.
2014-12-05 15:31:35 -08:00
Kirthi Krishnamraju
d8455c3e64
Make Flush work without requiring curly braces
...
Fixes #1547
2014-12-05 14:53:09 -08:00
Pranav K
275d03a958
Compilation of Views should be affected by changes to _ViewStart files
...
that are applicable to the view.
Fixes #974
2014-12-05 14:44:36 -08:00
ianhong
5b1eae494e
Update templates\samples\tests to use ensure viewstart.cshtml and views directory names are cased appropriately. #1559
2014-12-05 13:27:22 -08:00
Pranav K
933f7eeb22
Layout specification and discovery should follow the same behavior as
...
partials
Fixes #1047
2014-12-03 11:54:46 -08:00
Praburaj
cfd5630cf2
Addressing breaking IFileSystem changes
...
@pranavkm
2014-12-02 15:58:05 -08:00
Victor Hurdugaci
99b5f430ff
Add schema version to kproj files
2014-11-25 10:57:58 -08:00
Pranav K
ba1d66d683
Fixing build break
2014-11-21 09:40:02 -08:00
Pranav K
0e4ec38efe
Replacing Assert.Equal(null, Assert.Equal(true \ false etc with
...
appropriate Xunit equivalents
2014-11-21 08:28:55 -08:00
Doug Bunting
315908af5f
Apply VS' FormatDocument and RemoveAndSort to all *.cs files
...
- #EngineeringDay
- VS does not yet format auto-properties nicely; reverted what it did
Also revert changes under
- test/Microsoft.AspNet.Mvc.Razor.Host.Test/TestFiles
2014-11-20 21:15:46 -08:00