David Fowler
99f501152b
Remove dependency on ICompilationOptionsProvider
...
- Removed Configuration from RazorViewEngineOptions
- Added ParseOptions and CompilationOptions to RazorViewEngineOptions
2015-12-07 12:29:52 -08:00
Pavel Krymets
046dcefd14
Add extensibility point to Razor compilation
2015-12-03 12:04:07 -08:00
Pavel Krymets
5ef14e95b7
React to dnx confguration change
2015-11-24 11:54:10 -08:00
Pranav K
b622a5b0d3
Bump Razor to dotnet5.5
2015-11-23 15:31:59 -08:00
Pranav K
380a93d370
Redesign RazorViewEngine caching
...
Fixes #3337
2015-11-10 10:18:25 -08:00
Pavel Krymets
737a8f3b1d
Make Compilation Abstractions naming consistent with Platform Abstractions
2015-11-06 15:53:08 -08:00
Pavel Krymets
b4b29e71d6
Rename Microsoft.Dnx.Compilation.Abstractions to Microsoft.Extensions.Compilation.Abstractions
2015-11-03 12:42:28 -08:00
Pavel Krymets
4e8c543489
Rename Microsoft.Runtime.Abstractions to Microsoft.Extensions.PlatformAbstractions
2015-10-22 19:48:55 -07:00
N. Taylor Mullen
faa78a3d91
Transition from `IAssemblyLoadContext` to `AssemblyLoadContext`.
...
- `IAssemblyLoadContext` is a DNX defined type that will eventually go away.
#3365
2015-10-22 16:15:10 -07:00
Ryan Nowak
32645e93c8
Add expression rewriting to Razor
...
This change rewrites simple and safe Expression<Func<T, U>> expressions
into accesses to readonly fields. This allows us to cache the actual
expression and avoid repeatedly allocating and compiling it.
The rewrite is limited to cases where we know that the expression doesn't
capture, and where we support that kind of expression for evaluating
viewdata. In practice this means 'indentity' and property accessors are
allowed.
2015-10-16 12:28:50 -07:00
Pranav K
f57e180971
Renaming Microsoft.Framework.* -> Microsoft.Extensions.*
2015-10-03 15:44:53 -07:00
Pranav K
a68d9e4cb1
Replace NotNullAttribute with thrown exceptions
2015-09-17 11:56:44 -07:00
Pranav K
85bb33a62a
Fixing formatting in RoslynCompilationService
2015-09-11 12:22:34 -07:00
Hao Kung
3ebdcc5f6f
React to options changes
2015-09-02 14:07:06 -07:00
Pranav K
1bad8ce6d1
Ensure that assembly path is specified in Roslyn MetadataReference.
2015-08-25 12:56:23 -07:00
Andrew Stanton-Nurse
3c322b4a06
react to DNX renames
2015-08-12 15:12:36 -07:00
Victor Hurdugaci
e96b4d7b94
React to DNX renames
2015-07-29 04:49:49 -07:00
Andrew Stanton-Nurse
991dff6b9e
react to DNX renames
2015-07-21 17:23:06 -07:00
Doug Bunting
37f056ce2b
[quick fixes] Cleanup a few things StyleCop found ages ago
...
- was trying out rules matching frequest PR comments (then)
- did a manual scan to find new instances of same issues
- "" -> `string.Empty`
- `String` -> `string` and similar
- fill empty XML doc elements
- ignored `JsonPatchDocument<TModel>`; just too many empty elements
- corrected missing / extra / out-of-order `<param>` descriptions
- `xml-docs-test` detects incorrect external references but not these local issues
2015-06-24 16:37:39 -07:00
N. Taylor Mullen
64e726d2b2
Update LICENSE.txt and license header on files.
2015-05-01 13:55:25 -07:00
Troy Dai
97a3c47928
Revert "Temporarily remove compiling against non roslyn project references"
...
This reverts commit 088bcac028 .
2015-04-28 15:22:33 -07:00
David Fowler
088bcac028
Temporarily remove compiling against non roslyn project references
2015-04-26 00:18:58 -07:00
Pranav K
fb451b51e5
Added SourceLocation to inherited chunks \ tag helpers
...
Updated CompilationResult to support compilation failures from multiple
files.
Fixes #2321
2015-04-17 11:23:38 -07:00
Pranav K
9dc8ecac8a
Cleanup: Moving files from src/Microsoft.AspNet.Mvc.Razor/Razor/PreCompileViews ->
...
src/Microsoft.AspNet.Mvc.Razor/Precompilation
2015-03-30 14:51:11 -07:00
anurse
de88b92f87
react to runtime compilation refactoring
2015-03-26 22:18:39 -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
df4b92b1c1
Update MVC projects to utilize Common repo classes.
...
- Had to add extra dependencies to work around aspnet/XRE#1237 .
- Updated src and test projects.
2015-02-22 18:23:28 -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
Pranav K
f3393db4f4
Reacting to KRE renames
2015-02-19 06:02:59 -08:00
Chris Ross
d51dad9560
Handle IFileSystem rename.
2015-01-20 12:16:30 -08:00
Pranav K
a94d5223e1
Modify RoslynCompilationService to read MetadataReferences from the target
2015-01-16 12:39:04 -08:00
Pranav K
b7d44666b8
Adding support for flowing compilation errors to Diagnostics middleware
...
Fixes #872
2015-01-13 07:32:58 -08:00
Doug Bunting
6df288bce7
Correct StyleCop violations
...
- StyleCop working again (handles C# 6.0 additions) though only locally for me
- disable some new rules:
- ConstFieldNamesMustBeginWithUpperCaseLetter
- InstanceReadonlyElementsMustAppearBeforeInstanceNonReadonlyElements
- StaticReadonlyElementsMustAppearBeforeStaticNonReadonlyElements
- StaticReadonlyFieldsMustBeginWithUpperCaseLetter
- PrefixCallsCorrectly
- correct remaining violations
- lots of long lines for example
- use more `var`; some manual updates since StyleCop doesn't check seemingly-unused blocks
nit: remove new trailing whitespace (was paranoid about adding it w/ fixes)
2015-01-06 16:23:57 -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
e078076408
Adding functional test for RazorViewEngineOptions.FileSystem
2014-12-16 12:08:40 -08:00
David Fowler
653d31b336
Don't lock metadata references
2014-10-27 16:14:32 -07:00
David Fowler
4cddf880ec
React to KRuntime change
2014-10-22 23:21:41 -07:00
YishaiGalatzer
f9661dfcd0
Fix pdb generation for win7/coreclr
2014-10-22 17:09:39 -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
David Fowler
f076fc7dcf
React to roslyn changes
2014-10-03 03:23:04 -07:00
David Fowler
b9d433168e
Convert memory streams to the byte[] before passing it to roslyn
2014-09-26 16:56:15 -07:00
David Fowler
8b62057aa3
Don't close the stream when reading AssemblyMetadata
2014-09-26 03:06:02 -07:00
YishaiGalatzer
6600e68fc0
Create a pre compilation module and apis to allow meta programming
...
to precompile razor pages.
This is limited to sites where the .cshtml are still deployed. It's
current purpose is to speed up startup. Deploying without the razor
files is a separate feature.
2014-09-25 11:26:11 -07:00
Pranav K
a468986155
Removing unused variable from RoslynCompilationService
2014-09-15 14:44:39 -07:00
Wei Wang
447336b4f3
React to renaming TargetFramework to RuntimeFramework
2014-09-11 11:49:53 -07:00
Pranav K
764b1e64b8
RoslynCompilationService should set the generated code when compilation is successful
...
Fixes #895
2014-08-19 09:24:28 -07:00
dougbu
75525ab525
Wrap a long URI
2014-08-13 11:08:42 -07:00
David Fowler
079fe5749d
Added comment about the source of the Covert method
2014-08-13 09:30:01 -07:00
David Fowler
6f54d05105
Made razor compilation more robust
...
- Support other kinds of references when compiling razor views
- Cache application references since they can't change throughout the lifetime
of the running application
2014-08-12 21:44:21 -07:00
Pranav K
74bb8288b0
Making RoslynCompilationService a singleton.
...
* Minor code cleanup from previous compilation related PR.
2014-08-11 14:36:58 -07:00