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
Pranav K
c12a4795ca
Removing AdditionalInfo from CompilationResult since we can't always pass
...
it into exception thrown
All values in Exception.Data need to be serializable which is not true for
the diagnostics. Removing this property since we can't pass it through.
2014-08-11 10:25:12 -07:00
Pranav K
5e010597cd
Propogate additional compilation data from RoslynCompilationService
...
* Update CompilationFailedException to include path of file being compiled
* Pass in path being compiled to Rolsyn.
* Adding doc comments for compilation pieces
Fixes #869
2014-08-08 18:22:13 -07:00
David Fowler
5708f7592b
Changing GetLibraryExport to GetAllExports
2014-07-31 16:55:01 -07:00
Pranav K
cc0dadc6b6
More Stylecop cleanup for ModelBinding and Razor
2014-06-09 14:27:12 -07:00
David Fowler
812d5328d2
React to aspnet/KRuntime#65
2014-05-28 02:00:03 -07:00
Andrew Peters
f13865dedc
Updating copyright headers
2014-05-08 23:01:20 -07:00
David Fowler
3b31df3d29
React to renames
2014-05-08 03:24:18 -07:00
anpete
8208cd6b2f
Update file headers
2014-05-01 17:42:33 -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
Pranav K
75dae948b2
Change IViewEngine.FindView to be synchronous
2014-04-03 14:20:39 -07:00