Commit Graph

38847 Commits

Author SHA1 Message Date
Steve Sanderson a9cccccce5 Tweak HostedInAspNetClient.csproj for consistency 2018-03-14 11:23:41 +00:00
Steve Sanderson 85c515861c Update StandaloneApp 2018-03-14 11:23:41 +00:00
Ryan Nowak 601e7914f7 Implement components as tag helpers
Implements Component code generation and tooling support end to end
udditionally adds some default `@addTagHelper` directives to make
programming in Blazor a little nicer.

Components are discovered as Tag Helpers using Razor's extensibility
during the build/IDE process. This drives the code generation during
build and lights up a bunch of editor features.

Add
2018-03-14 11:23:41 +00:00
Ryan Nowak b47e3095ee Add Razor SDK and packages to templates 2018-03-14 11:23:41 +00:00
Ryan Nowak adf4674955 Fix clean builds
This got out of date with my other changes
2018-03-14 11:23:40 +00:00
Steve Sanderson c0b0679e27 Add /p:TargetVSIXContainer to tools build script 2018-03-14 11:23:40 +00:00
Steve Sanderson d426809b4a Add /p:DeployExtension=false to tooling build script 2018-03-14 11:23:40 +00:00
Steve Sanderson ede0bdcdee Temporarily hardcode msbuild path in build script 2018-03-14 11:23:40 +00:00
Steve Sanderson bcf89371c6 Build BlazorTooling.sln too 2018-03-14 11:23:40 +00:00
Ryan Nowak 211561a6a6 Implement 2-phase compilation
This is a working (all tests passing) implementation of the two-phase
compilation system we will need for component discovery.

This builds on top of work we've doing in Razor, including the Razor
SDK, MSBuild tasks, and CLI/server.

This currently *does* discovery components during the build process, but
it doesn't use that data for anything yet.

It works like this:
1. Generate class declarations (structure only, no method bodies)
2. Compile a 'temp' assembly using the .cs files and output of 1.
3. Do component discovery using the 'temp' assembly
4. Generate class definitions (including method bodies)
5. Compile the 'real' assembly using the .cs files and output of 4.
2018-03-14 11:23:40 +00:00
Ryan Nowak 6182e8448d Get rid of RazorCompiler
Adds a little more use of Razor extensibility.

Razor is a plugin model, so we can't be the 'first mover' for initiating
compilation in the build tools and IDE.

Reorganizes tests and fills out more reusable test infrastructure for
Razor-driven testing.

Adds tests for declaration-only configuration.
2018-03-14 11:23:40 +00:00
Ryan Nowak daf6a404f9 Implement basic Component discovery
This is the basics of component discovery along with some tests.

The next set of changes will integrate it into the compilation process.
2018-03-14 11:23:40 +00:00
Ryan Nowak 2a2a045863 Ignore msbuild binary log files 2018-03-14 11:23:40 +00:00
Ryan Nowak a053155ab4 Implement layout and implements with directives
- Remove haxxxx
- Add proper directives with tooling support
2018-03-14 11:23:40 +00:00
Ryan Nowak 57a04fb178 Adopt more of Razor Exensibility
Removes some workarounds and uses Razor extensibility in a few more
places.

_ViewImports now works in VS
2018-03-14 11:23:40 +00:00
Ryan Nowak 39c5aee9a1 Add other tooling assemblies to VSIX 2018-03-14 11:23:40 +00:00
ASP.NET CI 8097bd9d5d Updating submodule(s)
Common => ebeae24f65395151c50431a17df54a4b2e4f296c

[auto-updated: submodules]
2018-03-14 00:54:36 -07:00
ASP.NET CI 816d50d7d0 Updating submodule(s)
KestrelHttpServer => e65e58daf3

[auto-updated: submodules]
2018-03-14 06:09:49 +00:00
Ben Adams e65e58daf3 Reduce Sockets mainloop Send/Receive statemachine size (#2376)
* Use Completion to Advance in Error

* Drop ReadResult from statemachine
2018-03-13 23:04:12 -07:00
ASP.NET CI 8cb6c762dc Updating submodule(s)
KestrelHttpServer => 572627e88c

[auto-updated: submodules]
2018-03-13 19:42:30 -07:00
David Fowler 572627e88c
Handle posting to the libuv thread after StopAsync (#2388)
- Check if the post handle is disposed and noop if it is.
We also catch an ObjectDisposedException because it's an inherent race condition.
2018-03-13 19:37:39 -07:00
ASP.NET CI 1eeb0eec37 Updating submodule(s)
KestrelHttpServer => f6108928d8
SignalR => 4fe4757b4a

[auto-updated: submodules]
2018-03-13 19:04:03 -07:00
Andrew Stanton-Nurse 4fe4757b4a
fix package-lock.json files (#1592) 2018-03-13 18:55:56 -07:00
Nate McMaster 027a6588f9
Backport scripts from dev used to generate tags on repos 2018-03-13 18:09:00 -07:00
Ben Adams f6108928d8 Pass ReadOnlySequence via in (#2389)
* Pass ReadOnlySequence via in
2018-03-13 17:54:01 -07:00
ASP.NET CI 7141c00e62 Updating submodule(s)
KestrelHttpServer => bfdb48717f
Razor => a6d03bd407

[auto-updated: submodules]
2018-03-14 00:51:46 +00:00
Nate McMaster bd5888c866
Merge branch 'dev' of https://github.com/aspnet/Universe into dev 2018-03-13 17:13:14 -07:00
Nate McMaster 27440da725
Add additional restore sources to PackageArchive.targets 2018-03-13 17:13:09 -07:00
N. Taylor Mullen a6d03bd407 Workaround MonoDevelop.Core.FilePath tests failing to run due to strong name issues. 2018-03-13 16:56:23 -07:00
ASP.NET CI 58310d420f Updating submodule(s)
EntityFrameworkCore => 4094e0751529ae08d055676fc81421fe3a221942
IISIntegration => 810c4bcb0a
Microsoft.Data.Sqlite => 491ac0a80c9c391b2ae56e720908fa8abcd8ee38
Razor => 1d602d1205

[auto-updated: submodules]
2018-03-13 23:38:46 +00:00
Chris Ross (ASP.NET) bfdb48717f Host header format validation 2018-03-13 16:37:03 -07:00
Nate McMaster a16c3614d4
Update submodule urls 2018-03-13 16:35:46 -07:00
Justin Kotalik 810c4bcb0a
Fix two AVs with InProcess (#656) 2018-03-13 16:07:55 -07:00
pan-wang d246c6f201
add port info to event log (#660) 2018-03-13 16:06:01 -07:00
pan-wang 7a511d6a94
websocket handler changes (#661)
add debug logging and reset connection in case of failure
2018-03-13 16:05:32 -07:00
N. Taylor Mullen 1d602d1205 Add host project system for VS4Mac.
- Tied into VS4Macs ProjectExtensions in order to bootstrap our Razor world.
- We currently watch all DotNet projects with the expectation that they're the only ones that can potentially turn into Razor compatible projects.
- Added a fallback Razor project host which is used for pre-Razor SDK Razor versions (< 2.1).
- Added a default Razor project host which consumes all MSBuild data from the users packages and sets up the Razor world accordingly.
- Had to modify some existing contracts to work better with new expectations. one of these was the VS4Mac specific Workspace accessor; essentially we needed to be able to lookup a workspace from a solution.
- Some of our previous expectations about addins were wrong (not being able to directly reference your libraries). To avoid using reflection to bootstrap our types I tried out directly referencing our libraries and all worked fine.
- Refactored the DefaultRazorProjectHost in windows (since we had to in Mac) for testing purposes.

#2081
2018-03-13 15:31:45 -07:00
ASP.NET CI ce22816f66 Updating submodule(s)
EntityFrameworkCore => 248ec658de7640ed47e6a34380e487e57c036a72
KestrelHttpServer => bcea8330c4
Razor => 492e958114
SignalR => 62956530ae

[auto-updated: submodules]
2018-03-13 22:24:24 +00:00
N. Taylor Mullen 492e958114 Change HostProjectBuildComplete to persist workspace projects.
- This was missed in the VS15.7 movement to dev.
2018-03-13 15:11:21 -07:00
BrennanConroy 62956530ae
Rename StreamAsync to StreamAsChannelAsync (#1587) 2018-03-13 15:04:11 -07:00
Andrew Stanton-Nurse fb6121399c
Remove support for binary over SSE and add transfer format to negotiation (#1564) 2018-03-13 14:29:32 -07:00
ASP.NET CI 028c983b5f Updating submodule(s)
Identity => efe0c6be7b
Razor => 1eab654620

[auto-updated: submodules]
2018-03-13 21:16:00 +00:00
David Fowler bcea8330c4
Clean up some left overs (#2385) 2018-03-13 14:10:06 -07:00
Pranav K 1eab654620 Fix typo in Razor.props 2018-03-13 14:01:23 -07:00
Pranav K 425724ce28 Avoid generating RelatedAssemblyAttribute when RazorSdk isn't in play 2018-03-13 13:54:02 -07:00
Hao Kung efe0c6be7b
Split Auth into AddIdentityCookies (#1442) 2018-03-13 13:11:29 -07:00
ASP.NET CI 0d1f40b3d8 Updating BuildTools from 2.1.0-preview2-15738 to 2.1.0-preview2-15739
[auto-updated: buildtools]
2018-03-13 13:05:05 -07:00
ASP.NET CI b2019d1bf6 Updating submodule(s)
BasicMiddleware => 8b58a9a091
EntityFrameworkCore => 9c642d3df13a6367d312bbd08a6c440fec012664
KestrelHttpServer => 2d8f3d95fe
MusicStore => 4b5bd5a066
Mvc => f0788926a0
Razor => 9fc6b8fcf5
Security => bee77ebf91
SignalR => adb760210d
Templating => 7db6925ffc

[auto-updated: submodules]
2018-03-13 13:04:55 -07:00
Pranav K f0788926a0
Add additional APIs required by Razor Sdk 2018-03-13 12:53:41 -07:00
John Luo 1ce0e6ecdf Add lzma repo task 2018-03-13 12:25:22 -07:00
Nate McMaster 016fa66640
Map properties DotNetRestoreSources => RestoreSources for metapackage builds (#955) 2018-03-13 12:23:18 -07:00