Commit Graph

39583 Commits

Author SHA1 Message Date
Jass Bagga 927e75870d Add BindingSourceMetadataProvider
Addresses #5673
2017-02-17 13:22:10 -08:00
Ryan Nowak 965ae5490f Introducing RazorIRToken
This IR node will be part of the new token model for IR. It will be used
by all nodes that contain user content. Going forward, tokens will be the
thing that contains text and produces line mappings.

This commit just introduces the class.
2017-02-17 11:22:53 -08:00
N. Taylor Mullen de6bfa480f Only show C# projects in Razor info window. 2017-02-17 11:18:28 -08:00
Ryan Nowak 290c11ef3a Set ToolsVersion=15.0 2017-02-17 11:13:07 -08:00
N. Taylor Mullen 8c17375be0 Surface TagHelper resolution errors.
- Decided to not expose the resolutions errors in the Razor extension. If we feel that it's good debug information we can add it later.
- Added a `TagHelperResolutionResult` type to Razor.Workspaces so it can be used in the language and remote service.

#1014
2017-02-17 10:51:44 -08:00
Cesar Blum Silveira bfe1f06938 Fix AddressRegistrationTests.RegisterAddresses_IPv6ScopeId_Success (#1363). 2017-02-17 10:35:00 -08:00
BrennanConroy 6f33ebc1f5 ObjectMethodExecutor 2017-02-17 10:19:32 -08:00
Nate McMaster 7e8f92b418 Remove makefile.shade and add npm install to repo.targets
Also, add (commented-out) conditional cross compiling for tests on xplat
2017-02-17 10:07:09 -08:00
moozzyk a13aa4de10 Using webSockets transport as the default transport
Fixes: #213
2017-02-17 09:58:23 -08:00
Ben Adams d5ec0859e5 Disabled logging fast-path (#937) 2017-02-17 08:43:25 -08:00
Doug Bunting 40eeba4369 Bump test projects up to .NET 4.5.2
- aspnet/Testing#248
- xUnit no longer supports .NET 4.5.1
- build tests for desktop .NET only on Windows
2017-02-16 22:57:14 -08:00
Doug Bunting 7637f2ea44 Bump test projects up to .NET 4.5.2
- aspnet/Testing#248
- xUnit no longer supports .NET 4.5.1
- target .NET 4.6.1 in Microsoft.Owin.Security.Interop.Test; avoids .NET 4.5.2 System.Xml casing issue
- build tests for desktop .NET only on Windows
  - except Microsoft.Owin.Security.Interop.Test; already skipped using repo.props
- enable binding redirects for one test project
2017-02-16 19:16:57 -08:00
Nate McMaster 68cc4fdb24
Remove RuntimeFrameworkVersion from sample 2017-02-16 18:35:03 -08:00
Doug Bunting 6833afe715 Bump test projects up to .NET 4.5.2
- aspnet/Testing#248
- xUnit no longer supports .NET 4.5.1
2017-02-16 16:18:05 -08:00
Nate McMaster 4039126e16 Remove runtimeconfig.template.json and use repo.targets 2017-02-16 16:05:51 -08:00
Ryan Nowak bbeb485405 Refactor ParserVisitor
We need the visitor to allow control over whether to recurse or not into
something. This change makes the old ParserVisitor class behave much more
like the newer IR Walkers.

We need this for the tokens refactor because IR lowering will not be just
a trivial visitor anymore in the future.
2017-02-16 15:36:01 -08:00
Pranav K 075771a12d Re-enable netcoreapp1.1 tests (part 2) 2017-02-16 15:29:31 -08:00
Roderic Bos 3c14472bf2 Updated common.targets to use AssemblyName instead of MSBuildProjectName so renaming output assembly from csproj works
Fixes https://github.com/aspnet/Mvc/issues/5780
2017-02-16 14:56:28 -08:00
N. Taylor Mullen f3a0ee5bdb Add `RazorLanguageServiceException` to capture unexpected exceptions.
- Consumers will then be able to catch the `RazorLanguageServiceException`s directly and log them as needed.
2017-02-16 14:50:35 -08:00
Ryan Brandenburg 366dbde378 Add culture constructor to RouteValueProvider 2017-02-16 14:47:34 -08:00
Ryan Brandenburg 239e2202e1 ActionContextAccessor netstandard behave like net451 (#5810) 2017-02-16 14:34:13 -08:00
Pranav K cfa4689d47 Re-enable netcoreapp1.1 tests
Fixes #1003
2017-02-16 14:09:12 -08:00
Pranav K f56d1b9441 Updating VS version 2017-02-16 14:09:12 -08:00
Nate McMaster ec7df544ed Use latest LTS packages 2017-02-16 13:46:11 -08:00
Kiran Challa d9f5c82ecc Fixing build break 2017-02-16 12:54:33 -08:00
moozzyk 607445fc2b Workaround for broken System.Memory package 2017-02-16 12:41:09 -08:00
moozzyk ce4a8f0276 Disabling tests broken by new pipelines 2017-02-16 12:40:23 -08:00
Doug Bunting ccea27d05c Bump test projects up to .NET 4.5.2
- aspnet/Testing#248
- xUnit no longer supports .NET 4.5.1
- build tests for desktop .NET only on Windows
2017-02-16 12:26:36 -08:00
Ryan Brandenburg 401296ac43 Remove unneeded InternalsVisibleTo (#5809) 2017-02-16 12:01:42 -08:00
Nate McMaster 591a2b0e6b
React to aspnet/KoreBuild#160 2017-02-16 11:23:03 -08:00
Nate McMaster 76b998a8dc
Skip .NET Framework-only tests on xplat 2017-02-16 11:16:52 -08:00
Ryan Nowak e35ee53ee5 DefaultRazorIRLoweringPhase is too agressive
This change fixes a bug where DefaultRazorIRLoweringPhase is too
aggressive in merging HTML spans. You can hit the bug by delimiting two
html spans with a metacode character like:

<foo>@{ <bar/> }</foo>

The lowering phase will combine these HTML nodes, which is invalid as they
don't have contiguous spans.

The change here is to merge spans only when they both have an invalid
location or are contiguous.
2017-02-16 10:53:09 -08:00
Nate McMaster 1167fec0ba
Skip functional tests on Linux/macOS 2017-02-16 10:12:20 -08:00
Nate McMaster ef99d7c233
React to aspnet/Korebuild#160 2017-02-16 10:10:08 -08:00
Nate McMaster 10179ffad6
React to aspnet/Korebuild#160 2017-02-16 10:07:05 -08:00
Nate McMaster 1d67db92c2
React to aspnet/Korebuild#160 2017-02-16 10:05:34 -08:00
Nate McMaster 02dc95eda3
React to aspnet/Korebuild#160 2017-02-16 10:03:40 -08:00
Nate McMaster fa34afd1c5
React to aspnet/Korebuild#160 2017-02-16 10:01:39 -08:00
Nate McMaster 226f7992a3
React to aspnet/Korebuild#160 2017-02-16 09:55:25 -08:00
Nate McMaster 02b639d021
React to aspnet/Korebuild#160 2017-02-16 09:49:50 -08:00
Nate McMaster 932b6ed53a
Cleanup MSBuild conversion
Remove runtimeconfig.template.json
Remove ToolsVersion attribute
Use repo.targets instead of makefile.shade
Rename code gen app to shorter name
Use GetOSPlatform task
Upgrade tests to .NET Framework 4.5.2
Cleanup solution configurations. Set the class libraries to AnyCPU even when on the x86 or x64 solution config.
2017-02-16 09:44:58 -08:00
Nate McMaster aeeaaf0e8f Add missing call to set content root on WebHostBuilder 2017-02-16 09:10:31 -08:00
Doug Bunting c354afebc8 Bump test projects up to .NET 4.5.2
- aspnet/Testing#248
- xUnit no longer supports .NET 4.5.1
- build tests for desktop .NET only on Windows

Address existing issues
- work around test failures, including #350
  - skip tests mentioned in #350
  - reorder xunit and xunit.runner.visualstudio; setup fails for .NET Core otherwise
- skip all tests using LocalDB on Linux and OSX
  - `[FrameworkSkipCondition(RuntimeFrameworks.Mono)]` now redundant
- correct AppVeyor image

nits:
- let VS add the test `<Service>`
- use `[ConditionalFact]` when there's no test data
2017-02-16 08:40:27 -08:00
Nate McMaster fd8827e7a9 Fix dependency version and solution project type 2017-02-15 21:03:03 -08:00
Ryan Nowak 7a1a6dd1d6 Part 2 of RuntimeTarget
Introducing ExtensionIRNode and an implementation of templates based on
the new feature set.

Now TemplateIRNode is-a ExtensionIRNode. It's implemented using just
extensibility and isn't part of the standard razor codegen. I'm adding it
to the RazorEngine so that it's still there by default.

I've also included a pattern for visitors to special case
ExtensionIRNode-derived classes that they know about. This requires a
little bit of boilerplate but makes it easy to traverse just the nodes you
care about while keeping the set of nodes open.

For now the general codegen feature still hasn't had a refactor, but this
opens things up for us to start finishing things like MVC's @inject
directive.
2017-02-15 18:08:19 -08:00
Nate McMaster 068c29a748 Add repo folders to gitignore 2017-02-15 17:47:28 -08:00
Pranav K c4ea355ddf Allow for an alternate application name to be used as part of deployment. (#945)
This lets us test applications that are compiled with a different assembly name
2017-02-15 17:20:16 -08:00
Pawel Kadluczka b1dafc2f34 Fixing build warning (#208)
13:40:19.336     1>Startup.cs(30,17): warning CS0618: 'ConfigurationExtensions.AddUserSecrets(IConfigurationBuilder)' is obsolete: 'This method is obsolete and will be removed in a future version. The recommended alternative is .AddUserSecrets(string userSecretsId) or .AddUserSecrets<TStartup>().' [C:\Source\SignalR-Core\samples\ChatSample\ChatSample.csproj] [C:\Source\SignalR-Core\.build\makefile.proj]
2017-02-15 16:32:49 -08:00
Ajay Bhargav Baaskaran 4b2245eeb9 [Fixes #924] Correct RightShiftAssign operator 2017-02-15 16:31:40 -08:00
Nate McMaster 0097e40e46 Downgrade to stable packages 2017-02-15 14:23:48 -08:00