Pranav K
f6265a8549
Update rzc to target netcoreapp3.0
...
* Allow rzc to work with 3.0 SDK that does not carry 2.x runtime
* Update repo to netcoreapp3.0
Fixes https://github.com/aspnet/Razor/issues/2696
2018-11-08 09:18:58 -08:00
Ryan Nowak
707692cbe1
Update to Dev16 Roslyn
2018-10-31 12:17:22 -07:00
Pranav K
0bd6d135c1
Move targets, rzc and extension assembly in to the Sdk
2018-10-30 14:30:20 -07:00
Pranav K
70aad7cb70
Merge branch 'master' into merge/release/2.2-to-master
2018-10-25 09:35:47 -07:00
Pranav K
2d6643bc85
Cleanup Microsoft.NET.Sdk.Razor package output
...
* Remove unnecessary \ incorrect package references
* Remove extraneous build outputs in the tasks project that weren't present when the tasks were in Razor.Design
2018-10-25 09:26:04 -07:00
Nate McMaster
ada2b17160
automated: merge branch release/2.2
2018-09-28 17:27:35 -07:00
Pranav K
f70df60435
Move RazorGenerate and RazorTagHelper tasks in to the Sdk
...
Loading multiple versions of a task assembly result results in MSBuild on .NET Core to fail.
Addressing this by moving the tasks in to the Sdk and renaming it. This should avoid
immediate issues for a 2.1 and 2.2 project co-existing and future proofs 2.2 and later.
Fixes https://github.com/aspnet/Razor/issues/2553
2018-09-19 10:09:56 -07:00
Ryan Nowak
13e13d7632
Add generated documents to workspace
2018-08-15 10:54:32 -07:00
Ajay Bhargav Baaskaran
8e23eb38b4
Honor NoBuild flag during publish
2018-07-26 11:40:38 -07:00
N. Taylor Mullen
fc17ee0749
Update Razor SDK packing logic to not include Pack at properties layer.
...
- Added test to verify that no-build scenarios work as expected.
#2378
2018-06-20 15:20:01 -07:00
N. Taylor Mullen
c7e0207d9d
Revert "Update Razor SDK packing logic to not include Pack at properties layer."
...
This reverts commit 620105cc5e .
2018-06-20 11:39:55 -07:00
N. Taylor Mullen
620105cc5e
Update Razor SDK packing logic to not include Pack at properties layer.
...
- We now rely on the Razor source inputs layer to add packing to cshtml content items.
#2378
2018-06-19 15:28:50 -07:00
Pranav K
9677553a33
Don't specify MainEntryPoint when compiling Razor assembly
2018-06-19 13:31:49 -07:00
Pranav K
1b6ca7f55a
Allow publish to work when BuildProjectReferences=false
...
Fixes #2363
2018-05-25 11:13:26 -07:00
Ryan Nowak
a412299881
Add a Razor design time build
...
This allows Razor to know what files belong to the project.
2018-05-14 09:41:15 -07:00
Pranav K
1a2ca58eba
Merge pull request #2324 from aspnet/release/2.1
...
Merge release/2.1
2018-05-01 19:31:26 -07:00
Pranav K
a94323499b
Change CopyToPublishDirectory on Content items instead of explicitly removing this from publish items
...
Fixes #2295
2018-05-01 16:50:49 -07:00
Pranav K
05c84f008a
Ensure Views dll are copied during P2P builds
...
FastUpToDateCheck in VS doesn't account for changes solely to .Views.dll. This causes referencing projects to be treated as
up to date even though a referenced project rebuilt. Touch the marker file to cause referenced projects to rebuild.
Fixes https://github.com/aspnet/Razor/issues/2306
to cause it to treat
2018-05-01 16:50:49 -07:00
Pranav K
8d99ba53ce
Make incremental build in VS copy output files
...
Fixes #2306
2018-05-01 16:50:49 -07:00
Ryan Nowak
e2edc280c5
Add documents, engine, tag helpers to snapshot
...
The project snapshot now maintains a RazorProjectEngine as well as set
of Tag Helpers that are known for that snapshot.
Pivoted some more services to be snapshot-centric.
Also added the ability to track .cshtml documents to the project system.
For now most components just ignore document changes.
2018-04-25 19:05:54 -04:00
Pranav K
95835d6c37
Continue generating RelatedAssemblyPart on assembly if GenerateAssemblyInfo=false
...
Fixes #2257
2018-04-13 16:14:37 -07:00
Pranav K
8d1de6ec80
Make sure RazorSdk works when BuildingInVisualStudio \ BuildProjectReferences is disabled
...
Fixes #2247
2018-04-13 14:35:04 -07:00
Pranav K
9365fcd053
Don't publish the refs directory when the app does not have any Razor files
...
Fixes https://github.com/aspnet/Razor/issues/2246
2018-04-11 15:20:16 -07:00
Ajay Bhargav Baaskaran
6d9df1ef33
Noop Razor Sdk for F# projects
2018-04-11 14:18:19 -07:00
Pranav K
3f6051c9d5
Make PreserveCompilationContext=true
2018-03-26 14:23:59 -07:00
Pranav K
954a62c075
Remove EnableDefaultCompiledViewAssemblyLoadBehavior and add a switch to disable generating application part factory attribute
2018-03-22 17:09:53 -07:00
Pranav K
8631f287d9
Add a few more Razor Sdk fixes
...
* UseSharedCompilation to determine the default value of UseRazorBuildServer
* Generate AssemblyDescriptionAttribute
2018-03-21 08:44:55 -07:00
Ryan Nowak
6e4a968e12
Fix #2149 give generated files distinct extension
...
Gives our generated a files an extension that isn't used for any other
purpose (that we know of). This is handy for tooling to be able to
quickly know if a file is 'ours'. This comes up in places like
IVsSymbolicNavigationNotify (go to definition).
2018-03-19 12:59:16 -07:00
Pranav K
b74582e101
Ensure PreserveCompilationContext is set if we're targeting precompilation tool
...
PreserveCompilationContext must be set for precompilation tool to work, even when
the app has no views.
Fixes #2168
2018-03-15 12:49:56 -07:00
Pranav K
5f69a01cc5
RazorSdk - Attribute code generation fixes
...
* Allow the type name for ProvideApplicationPartFactoryAttribute to be specified.
* Generate ReleatedAssemblyAttribute in class library projects
2018-03-14 23:09:28 -07:00
Pranav K
1eab654620
Fix typo in Razor.props
2018-03-13 14:01:23 -07:00
Pranav K
483fba5972
Generate application part attributes
...
* Add support for generating attributes on Razor assembly
* Generate ProvideApplicationPartFactoryAttribute on Razor assembly
* Generate RelatedAssemblyAttribute on application assembly
2018-03-09 14:36:55 -08:00
Pranav K
0d321771ad
Make UseRazorBuildServer=true by default
2018-03-06 09:15:52 -08:00
Pranav K
41c923926e
Make RazorCompileOnBuild=true
...
Fixes #1986
2018-03-05 11:29:44 -08:00
Pranav K
c444f65c5d
Import capabilities to support solution explorer nesting
...
Fixes #2047
2018-03-02 11:18:11 -08:00
Pranav K
5bd650bdd1
Pack should pack symbol nupkg
...
* Update path calculation for BuiltProjectOutputGroupOutput to include full path. This matches
the behavior of Microsoft.Common.targets.
* Add Razor symbols to DebugSymbolsProjectOutputGroupOutput
Fixes #2116
2018-03-02 07:45:24 -08:00
Pranav K
62df770c39
PreserveCompilationContext needs to be set only if a project has any Razor files
...
Fixes #2077
2018-02-28 11:45:20 -08:00
Pranav K
251d57942b
Clean up error message when Razor compiler is not referenced
...
Fixes #1974
2018-02-27 18:08:34 -08:00
Pranav K
f51ddf68a6
Add RazorGenerate items to UpToDateCheckInput
...
Fixes #2048
2018-02-27 15:01:27 -08:00
Pranav K
540e8437da
Enable PreserveCompilationContext by default
2018-02-21 11:59:23 -08:00
Pranav K
33e60ae363
Separate VS/DesignTime properties from general SDK properties
...
Fixes #2069
2018-02-21 11:55:36 -08:00
Pranav K
8938f6c8c2
Change the default extension for Razor views to .Views.dll
2018-02-21 11:48:31 -08:00
Pranav K
9a9a2cf66a
Make content files work better in class library projects referencing Razor Sdk
...
* Include cshtml files as content when referencing Razor Sdk
* Exclude cshtml files added by default from being packed
Fixes #1980
2018-02-20 14:15:19 -08:00
Pranav K
16bcd8871e
WebSdk transitions
...
* Add a reference to Microsoft.Net.Sdk if it wasn't previously referenced
* Move PreserveCompilationContext in to our target
* Remove use of transition property
2018-02-15 12:08:18 -08:00
Pranav K
501c180b5f
Use properties in package props to redirect imports
2018-02-15 10:40:27 -08:00
Pranav K
010b43cedf
Make imports work without warnings or errors when the Sdk is referenced via MsBuild and package.
2018-02-13 13:45:42 -08:00
Pranav K
6be6229d18
Include the buildMultiTargeting folder in the Sdk package
2018-02-12 18:00:58 -08:00
Ryan Nowak
c733156596
SDK changes needed to decouple Razor from MVC
2018-02-12 14:08:57 -08:00
Pranav K
e537cdd319
Prepare for Razor Sdk to be imported by Web Sdk
2018-02-08 15:14:47 -08:00
Ryan Nowak
2ae925a0f2
Update SDK with tooling changes
...
These are some updates to the SDK based on the work going on in the
VS 15.7 branch. I porting the SDK changes here early for ease of
testing.
2018-02-06 18:21:33 -08:00