Граф коммитов

36 Коммитов

Автор SHA1 Сообщение Дата
Dustin Campbell be4a8621ce Remove tooling MvcShims
The MvcShims defined in tooling are only refernced in the projects located in "src\Razor\test\testapps". However, those projects don't appear to actually ever be built by anything. The source files in the "testapps" projects are used by some of the tooling benchmarks, but that usage doesn't require us to continue building the shims.
2024-10-24 15:14:14 -07:00
Dustin Campbell 466ecf2af5 Delete Microsoft.AspNetCore.Razor.Test.ComponentShim project 2024-10-24 15:14:03 -07:00
Jan Jones 4467256ff7
Use Basic.Reference.Assemblies in Mvc Extension tests (#10888)
* Use Basic.Reference.Assemblies in Mvc Extension tests

* Remove unused shim projects
2024-09-17 09:52:55 +02:00
Dustin Campbell 9264cbd352 Remove MS.VS.Editor.Razor and *.Test projects 2024-04-05 10:00:29 -07:00
Jeremy Koritzinsky 0a163ded94
In VMR builds only build the target RID and don't rebuild (#10017)
* Reapply "Don't rebuild when doing rid-specific publishing, just publish (#9925)" (#10014)

This reverts commit c5c96a26b1.

* Slim down the built rids for vertical builds and only reduce overbuilding on a vertical build (where we won't have the other AppHost RIDs anyway).

Also re-enable building the language servers in VMR non-sourcebuild builds.

* Fix bad copy-paste job

* Just use the regular RuntimeIdentifier property as PublishRuntimeIdentifier doesn't seem like it wants to work nicely.

* fix typo

* Pass TargetRid differently

* PR feedback and preserve existing properties
2024-03-05 16:13:33 -08:00
Andrew Hall c5c96a26b1
Revert "Don't rebuild when doing rid-specific publishing, just publish (#9925)" (#10014)
This reverts commit e77dc86 which was causing arm64 mac images to incorrectly try to use the x64 runtime. Fixes AB1977917
2024-02-29 20:07:12 -08:00
Jan Jones 5619ecc1e1
Fixup build 2024-02-20 15:03:26 +01:00
Jan Jones c688396251
Add project 2024-02-20 14:23:20 +01:00
Dustin Campbell e633883826 Remove LiveShare projects from Razor.Slim.slnf 2024-02-16 09:29:28 -08:00
Jeremy Koritzinsky e77dc86683
Don't rebuild when doing rid-specific publishing, just publish (#9925)
* Don't rebuild when doing rid-specific publishing, just publish

Before this change, every transitive dependency of these projects were getting rebuilt for each specified RID in addition to the RIDless builds.

* Add rzls to the non-Windows solution filter so we build it (as now publish depends on the build having already happened)

* We were still publishing the razor server and telemetry packages in the dotnet/razor source-build leg, but they aren't included in the source-build intermediates and aren't used by any other portion of source-build. Additionally, they're already marked as `DotNetBuildFromSource != true`, so I believe the intent is to not publish them in source-build anyway.
2024-02-12 13:09:18 -08:00
Dustin Campbell 99aafa38b3 Add MS.ANC.Razor.Serialization.Json to Razor.Slim.slnf 2024-01-09 09:06:12 -08:00
Phil Allen 196197bbeb
Make unittest more reliable (#9685)
* Make unittest reliable
Make RazorExtension the default project after clean

* Remove shared state from test class

* Maybe the dispatcher is busy in CI due to slower machines?

---------

Co-authored-by: David Wengier <david.wengier@microsoft.com>
2023-12-11 09:18:28 -08:00
Dustin Campbell f6baf6276b Fix Razor.Slim.slnf 2023-11-15 16:08:15 -08:00
Dustin Campbell 1809623318 A bit more clean up and add project to Razor.Slim.slnf 2023-11-15 15:54:36 -08:00
Dustin Campbell acc30debae Move shared editor test helpers into Test.Common.Tooling 2023-11-15 10:10:41 -08:00
Dustin Campbell 5327a1e90a Move shared workspaces test helpers into Test.Common.Tooling 2023-11-15 09:26:43 -08:00
Fred Silberberg a3c3d1768d
Obsolete ClassifiedSpanInternal.AcceptedCharacters (#9555)
* Mark AcceptedCharacters as obsolete

* Add legacy tests to slnf
2023-11-07 16:36:27 -08:00
Fredric Silberberg 705406cae4
Remove duplicate files from the Tooling common test layer. A few test bases remain: Razor has an updated test base with output helpers that the Compiler doesn't have. We may want to invest in unifying them at some point, but that point isn't going to be today. 2023-10-25 15:51:37 -07:00
Fredric Silberberg ff04ca882e
Move compiler version of Test.Common and Test.ComponentShim to the shared folder 2023-10-25 15:32:18 -07:00
Jan Jones 50425dfcce
Rename compiler assemblies (#9129)
* Rename compiler assemblies

* Fixup comments

* Rename VersionY_X DLLs

* Set root namespaces

* Transport v1 and v2 of MVC extensions
2023-10-12 09:51:49 +00:00
Allison Chou 9ff3387560
Add Razor language server telemetry to C# DevKit (#9283) 2023-09-22 22:01:23 +00:00
Dustin Campbell d889dc01f7 Use project references for analyzers 2023-09-19 12:50:51 -07:00
Dustin Campbell daeea8a9f1 A few tweaks from code review feedback 2023-09-19 09:41:01 -07:00
Dustin Campbell 0a170e1dcf Don't add analyzer reference to API shims 2023-09-18 20:12:18 -07:00
Dustin Campbell 80bd8eaec9 Fix typo in Razor.Slim.slnf 2023-09-18 17:40:17 -07:00
Dustin Campbell 1b5601b343 Add analyzer to enforce use of PooledArrayBuilder<T>.AsRef() with using statements 2023-09-18 16:57:09 -07:00
Dustin Campbell 82f5a0dfb2
Merge branch 'main' into array-builder 2023-09-15 17:00:24 -07:00
David Wengier 87614ae8c6 Remove VS Mac specific code 2023-09-13 09:37:40 +10:00
Dustin Campbell a10ba7c5b2 Add Utilites.Shared.Test to Razor.Slim.slf 2023-09-12 09:57:45 -07:00
Fred Silberberg 450c0a1231
Add missing compiler tests and dependency projects to the solution filter (#8784)
* Add missing compiler tests and dependency projects to the solution filter

* Be RID-specific with asp.net framework testing reference.

* Update Roslyn versions, remove duplicate Moq versions

* Pipe through SuppressUniqueIds to remove checksums from test baselines

* Depend on roslyn test utilities, use their diagnostic verification.

* Add packagemappins

* Adjust more usings in Razor.Language tests.

* Update property name for consistency.

* Update comment wording.

* Route TestSuppressUniqueIds through a different path.
2023-06-27 13:41:33 -07:00
Fred Silberberg 13840b2ceb
Add Microsoft.Net.Compilers.Razor.Toolset (#8735)
Similar to the Microsoft.Net.Compilers.Toolset package that we use in roslyn, this nuget package will override the generators used by a project, replacing them with the specific versions from this package. The purpose of this package is to allow shipping hotfixes to customers directly in a simple manner, without having to ask them to manually do a bunch of msbuild magic or replacing existing dlls. It may be helpful to reference the targets that add the razor generators to the compilation in the first place when reviewing: https://github.com/dotnet/sdk/blob/main/src/RazorSdk/Targets/Microsoft.NET.Sdk.Razor.SourceGenerators.targets#L15.
2023-06-09 21:33:52 +00:00
Dustin Campbell dfc7304889 Remove Microsoft.AspNetCore.Razor.Common assembly
With the introduction of Microsoft.AspNetCore.Razor.Utilities.Shared,
this assembly is no longer useful. The only types left in it were
in support telemetry, and those can easily be moved to
Microsoft.CodeAnalysis.Razor.Workspaces, which is already referenced by
most tooling projects. This will help reduce image loads in Visual
Studio.
2023-03-08 11:43:18 -08:00
Dustin Campbell 921b135f02 Rename MS.ANC.Razor.LanguageSupport to MS.ANC.Razor.Utilities.Shared 2023-02-15 14:27:25 -08:00
David Wengier a56816815f Add some projects to Razor.Slim.slnf 2023-01-30 16:51:32 +11:00
Fred Silberberg fcae93171c
Update file encoding to UTF-8 with BOM (#8099)
Since integrating our repos, there have been a number of changes in PRs that touch the encoding of the file, adding or removing a BOM as the editor in question decides. I've standardized on UTF-8 with BOM, as we do in roslyn, and put it in the .gitattributes so it should hopefully stay consistent.
2023-01-10 01:57:58 +00:00
David Wengier 6b3dd52c9d Consolidate all projects in to Razor.sln
* Remove razor-compiler.sln from root directory
* Move Razor.sln and Razor.Slim.slnf into root directory
* Put all projects from razor-compiler.sln into Razor.sln, with same solution folder layout
* Fix builds and docs
* Remove a couple of redundant files in the src\Razor folder
2022-11-13 16:01:05 +11:00