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
Doug Bunting
5e067cdb9e
Delete trailing whitespace
...
- #EngineeringDay
- Total replaced: 660 Matching files: 270 in *.cs
- Total replaced: 250 Matching files: 32 in all other files
- Total replaced: 22 Matching files: 8 in a few stragglers
Did not change files under following directories
- test\Microsoft.AspNet.Mvc.Razor.Host.Test\TestFiles\Output
- test\Microsoft.AspNet.Mvc.FunctionalTests\compiler\resources
- test\WebSites\TagHelpersWebSite
(Razor generates trailing whitespace in a case or two)
2014-11-20 16:18:09 -08:00
N. Taylor Mullen
35982b3049
React to aspnet/Razor#210 changes.
2014-11-20 11:54:18 -08:00
ianhong
dd1500dcfb
Updated a comment and sort usings
2014-11-13 11:28:13 -08:00
ianhong
245d1dffda
Updating the summary comment for IRazorViewFactory and its tests per comments
2014-11-13 11:28:12 -08:00
ianhong
0720177243
Updating per comments
2014-11-13 11:28:12 -08:00
ianhong
23a7aa813d
Updating FindView_UsesViewLocationExpandersToLocateViews for IRazorViewFactory.
2014-11-13 11:28:12 -08:00
ianhong
e9c7a34cfc
Introducing RazorViewFactory for RazorView
2014-11-13 11:28:11 -08:00
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
Ryan Nowak
0ccfcc4316
Fix for breaking API change from routing
2014-10-31 18:23:19 -07:00
Doug Bunting
c89bca5924
Adjust tests to handle new `ViewDataDictionary` invariants
...
- ensure `ViewDataDictionary` constructors are not passed a `null` or
`Mock.Of<IModelMetadataProvider>()` instance
- `ViewDataDictionary` constructors always use the `IModelMetadataProvider`
- `viewData.ModelMetadata` now never `null`
- `ViewDataDictionary<int>.Model` no longer throws if read before it's written
- `ViewDataDictionary.ModelMetadata` now copied to new instances in fewer cases
- e.g. don't use unusual `object` datatype with customized `ModelMetadata`
2014-10-29 19:18:59 -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
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
4ec6da1ed3
Adding RenderSectionAsync to RazorPage
...
Fixes #845
2014-10-13 17:44:49 -07:00