Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge main into features/extract-to-component #10948

Merged
Show file tree
Hide file tree
Changes from 250 commits
Commits
Show all changes
467 commits
Select commit Hold shift + click to select a range
79d0c3c
Failed to perform coherency update for one or more dependencies.
dotnet-maestro[bot] Aug 23, 2024
b5e50df
[release/dev17.11] Update dependencies from dotnet/arcade (#10552)
dibarbet Aug 23, 2024
e841c0e
Update dependencies from https://github.com/dotnet/arcade build 20240…
dotnet-maestro[bot] Aug 24, 2024
286b3e1
Failed to perform coherency update for one or more dependencies.
dotnet-maestro[bot] Aug 25, 2024
aeca1e4
Don't crash because another team has a bad assumption
davidwengier Aug 26, 2024
cdcef8e
Force "Insert Spaces" to be true for Razor documents
davidwengier Aug 26, 2024
5ca9964
Update dependencies from https://github.com/dotnet/source-build-refer…
dotnet-maestro[bot] Aug 26, 2024
aa024eb
[FUSE] Provide intellisense for @inject directives (#10771)
chsienki Aug 26, 2024
038f7fc
Localized file check-in by OneLocBuild Task: Build definition ID 262:…
dotnet-bot Aug 26, 2024
fff39dc
Localized file check-in by OneLocBuild Task: Build definition ID 262:…
dotnet-bot Aug 26, 2024
e7db6bc
Update configs for 17.12p3 snap
dibarbet Aug 26, 2024
156f016
Fix Formatting and On Enter integration tests (#10788)
davidwengier Aug 26, 2024
8ff61a0
Update configs for 17.12p3 snap (#10792)
dibarbet Aug 27, 2024
fe31c90
Snap for 17.12 P2 (#10793)
dibarbet Aug 27, 2024
8cebb29
Remove debug.fails
davidwengier Aug 27, 2024
19134c2
PR feedback
davidwengier Aug 27, 2024
75dcf45
Merge release/dev17.12 to main (#10794)
dotnet-bot Aug 27, 2024
0499664
Localized file check-in by OneLocBuild Task: Build definition ID 262:…
davidwengier Aug 27, 2024
1ea1552
Self-versioned documents (#10747)
davidwengier Aug 27, 2024
d7b76ad
Update dependencies from https://github.com/dotnet/arcade build 20240…
dotnet-maestro[bot] Aug 27, 2024
b6eb03f
Merge RazorSyntaxTree and DefaultRazorSyntaxTree
DustinCampbell Aug 26, 2024
a7e5bf9
Prefer constructor over Create method
DustinCampbell Aug 26, 2024
965d3e8
Add (Drain)ToImmutableOrdered* methods to PooledArrayBuilder<T>
DustinCampbell Aug 26, 2024
6045ef2
Suppress unique ids (#10791)
chsienki Aug 27, 2024
2476b63
Refactor tests to share ordering test data
DustinCampbell Aug 26, 2024
8cba235
Clean up RazorSyntaxTree.Diagnostics computation
DustinCampbell Aug 26, 2024
33ad4fb
Enable nullability for RazorSyntaxTree
DustinCampbell Aug 26, 2024
e98f5e8
Switch RazorSyntaxTree.Diagnostics to an ImmutableArray<RazorDiagnostic>
DustinCampbell Aug 26, 2024
0df9f25
Rework ErrorSink
DustinCampbell Aug 26, 2024
aa0d7a7
Clean up ParserContext and use pooled collections
DustinCampbell Aug 27, 2024
69d4b10
Create RazorSyntaxTree with ImmutableArray<RazorDiagnostic>
DustinCampbell Aug 27, 2024
fcf0de8
Remove unused ErrorSink method
DustinCampbell Aug 27, 2024
ac1ea08
Prefer collection expression over ToList()
DustinCampbell Aug 27, 2024
73fb2df
Remove PooledArrayBuilder<RazorDiagnostic> from ComputeAllDiagnostics
DustinCampbell Aug 27, 2024
7ed43a1
[main] Update dependencies from dotnet/arcade (#10605)
dibarbet Aug 27, 2024
5a4e0a7
Update dependencies from https://github.com/dotnet/arcade build 20240…
dotnet-maestro[bot] Aug 27, 2024
0dc0f6e
[release/dev17.12] Update dependencies from dotnet/arcade (#10799)
dibarbet Aug 27, 2024
79c46c0
Merge remote-tracking branch 'upstream/release/dev17.11' into merges/…
dibarbet Aug 27, 2024
d0be044
Merge release/dev17.12 to main (#10801)
dotnet-bot Aug 27, 2024
da86194
Merge release/dev17.11 to release/dev17.12 (#10785)
dotnet-bot Aug 27, 2024
a530667
Merge release/dev17.12 to main (#10803)
dotnet-bot Aug 28, 2024
4b69790
Write out comments when there would be 4 or more consecutive tildes
davidwengier Aug 28, 2024
5bc3489
Add integration test that proves the crash is fixed
davidwengier Aug 28, 2024
e516052
Improve integration tests
davidwengier Aug 28, 2024
eba6a6a
Test for some edges just in case
davidwengier Aug 28, 2024
acb9a8e
Update compiler test baselines
davidwengier Aug 28, 2024
6cc8ce5
Fix tooling test inputs
davidwengier Aug 28, 2024
1de43a0
Remove stale TODO
davidwengier Aug 28, 2024
39942a2
When undoing provisional completion, don't accidentally delete a huge…
davidwengier Aug 28, 2024
54533a5
Simplify integration test to increase reliability because our formatt…
davidwengier Aug 28, 2024
ec671db
Fix find all references calls to Roslyn
davidwengier Aug 28, 2024
8e11180
Fix provisional completion corrupting generated C# documents (#10806)
phil-allen-msft Aug 28, 2024
f35b6c6
Change UseConsolidatedMvcViews to default to true (#10795)
chsienki Aug 28, 2024
5eb9d0c
Fix find all references calls to Roslyn (#10807)
phil-allen-msft Aug 28, 2024
27a338b
Global namespace component bind (#10798)
chsienki Aug 28, 2024
562be1a
Merge release/dev17.12 to main (#10809)
dotnet-bot Aug 28, 2024
b650cee
Cleanup and rename files to bring them to modern standards
davidwengier Aug 28, 2024
a05f9e6
Pass virtual document version through, and validate
davidwengier Aug 29, 2024
744e9e3
Fix integration tests to validate the change
davidwengier Aug 29, 2024
ebe3878
Update existing tests
davidwengier Aug 29, 2024
1f45c70
Write out JS comments when there would be 4 or more consecutive tilde…
davidwengier Aug 29, 2024
12f5194
Cohosting OnAutoInsert endpoint (#10776)
alexgav Aug 29, 2024
e1f6fba
Fix setting breakpoints with self versioned documents (#10811)
davidwengier Aug 29, 2024
d0e2a57
Merge remote-tracking branch 'upstream/main' into FormattingLayering
davidwengier Aug 29, 2024
ee83a6b
Fixes after merge
davidwengier Aug 29, 2024
21c7674
Re-architect formatting to prepare for cohosting (and for fun!) (#10778)
davidwengier Aug 30, 2024
8dc0e5a
Bump WebTools and remove legacy CLaSP package
davidwengier Aug 30, 2024
a657d5c
Bump WebTools and remove legacy CLaSP package (#10815)
davidwengier Aug 30, 2024
4d4e9ab
Update PublishData after VS snap
dibarbet Aug 30, 2024
3ca4497
Update PublishData.json
dibarbet Aug 30, 2024
f01a5a8
Update PublishData after VS snap (#10817)
dibarbet Aug 30, 2024
18c3107
Skip flaky test
davidwengier Sep 1, 2024
cb0ae13
Move trigger characters and logic to the formatting service
davidwengier Sep 2, 2024
3da875b
Create remote formatting service that delegates to the Razor formatti…
davidwengier Sep 2, 2024
2a26624
Fix a bug from a previous PR
davidwengier Sep 2, 2024
90c7b47
Move WebTools calling code to a shared layer
davidwengier Sep 2, 2024
2cbbdf5
Create cohosting endpoints
davidwengier Sep 2, 2024
6c3b12b
Turn off the old endpoints
davidwengier Sep 2, 2024
a336b7f
Create basic tests
davidwengier Sep 2, 2024
55c51a3
Apply suggestions from code review
davidwengier Sep 2, 2024
4a96692
Update dependencies from https://github.com/dotnet/source-build-refer…
dotnet-maestro[bot] Sep 2, 2024
8bddfe9
Skip flaky test (#10821)
davidwengier Sep 2, 2024
56128c3
Refactor out spell check endpoints to services, and clean up a little
davidwengier Aug 29, 2024
4a44a99
Create cohost spell check endpoints and services
davidwengier Sep 2, 2024
391f322
Test
davidwengier Sep 2, 2024
a7cd940
Cohost go to implementation
davidwengier Sep 3, 2024
1e82de7
Add failing test, and add verification to existing tests
davidwengier Sep 3, 2024
f867a03
Remap Html uris if we get them
davidwengier Sep 3, 2024
277c780
Clarify [EventHandler] tag helper discovery logic and avoid exception
DustinCampbell Sep 3, 2024
abc48b3
Test that the DrainToImmutableOrdered* methods actually drain
DustinCampbell Sep 3, 2024
5c0677a
Ensure PooledArrayBuilder<T> resets capacity of builder after drain
DustinCampbell Sep 3, 2024
277663c
Clarify [EventHandler] tag helper discovery logic and avoid exception…
DustinCampbell Sep 3, 2024
467ff24
PR feedback
davidwengier Sep 4, 2024
d9e380b
Rename service
davidwengier Sep 4, 2024
84c2983
Whitespace
davidwengier Sep 4, 2024
915c4c3
Remap Html uris in cohost Go To Def (#10826)
davidwengier Sep 4, 2024
074043b
Remove IsImportDocument
davidwengier Sep 4, 2024
7107165
Remove GetRelatedDocuments from IProjectSnapshot
davidwengier Sep 4, 2024
4ec65fb
[main] Update dependencies from dotnet/arcade (#10816)
dotnet-maestro[bot] Sep 4, 2024
41acbde
Update dependencies from https://github.com/dotnet/arcade build 20240…
dotnet-maestro[bot] Sep 4, 2024
187962c
[release/dev17.10] Update dependencies from dotnet/arcade (#10529)
dotnet-maestro[bot] Sep 4, 2024
90b1855
Change RazorSyntaxTree.Diagnostics from an IReadOnlyList<RazorDiagnos…
DustinCampbell Sep 4, 2024
de7eddc
Update dependencies from https://github.com/dotnet/arcade build 20240…
dotnet-maestro[bot] Sep 4, 2024
cb2fd72
Merge branch 'release/dev17.11' into merges/release/dev17.10-to-relea…
davidwengier Sep 4, 2024
976f723
Merge branch 'release/dev17.12' into merges/release/dev17.11-to-relea…
davidwengier Sep 4, 2024
460ae5b
Merge branch 'main' into darc-main-a925341a-a0ef-49f7-bc6e-6525c5d13555
davidwengier Sep 4, 2024
1d04db3
Merge release/dev17.11 to release/dev17.12 (#10832)
dotnet-bot Sep 4, 2024
148d71a
Fix LF line-ending auto format bug (#10802)
jordi1215 Sep 4, 2024
6718dbc
[main] Update dependencies from dotnet/source-build-reference-package…
davidwengier Sep 4, 2024
42cc39e
PR Feedback
davidwengier Sep 4, 2024
d6f6a52
Merge release/dev17.10 to release/dev17.11 (#10833)
dotnet-bot Sep 4, 2024
fbf8c8e
Remove some things from `IProjectSnapshot` for cohostings benefit (#1…
davidwengier Sep 5, 2024
7d8be8e
Most PR feedback
davidwengier Sep 5, 2024
a795f32
Merge remote-tracking branch 'upstream/main' into CohostFormatting
davidwengier Sep 5, 2024
d87ad01
Move initialization logic
davidwengier Sep 5, 2024
b7cd05e
Remove unused parameter
davidwengier Sep 5, 2024
4dcc2c4
Merge remote-tracking branch 'upstream/main' into CohostSpellCheck
davidwengier Sep 5, 2024
c5b9ab8
Merge release/dev17.11 to release/dev17.12 (#10840)
dotnet-bot Sep 5, 2024
e0b2935
PR Feedback
davidwengier Sep 5, 2024
9b339ba
Cohost formatting (#10822)
davidwengier Sep 5, 2024
dde7fe8
Ensure type arguments are `global::` qualified (#10834)
jjonescz Sep 5, 2024
fdda4bb
CodeQL suppressions (#10845)
jaredpar Sep 5, 2024
459e9d6
Merge release/dev17.12 to main (#10841)
dotnet-bot Sep 6, 2024
d37da8b
Bump to real Roslyn version
davidwengier Sep 6, 2024
b69b08c
PR Feedback
davidwengier Sep 6, 2024
6e12161
Bump to real Roslyn version
davidwengier Sep 6, 2024
054f9ee
Merge remote-tracking branch 'upstream/main' into CohostGoToImplement…
davidwengier Sep 6, 2024
f7681c2
Fix build
davidwengier Sep 6, 2024
70f110d
Fix test
davidwengier Sep 6, 2024
49e727b
Cohost Go To Implementation (#10824)
davidwengier Sep 6, 2024
a3ee54d
Merge remote-tracking branch 'upstream/main' into CohostSpellCheck
davidwengier Sep 6, 2024
9678b91
Merge release/dev17.12 to main (#10847)
dotnet-bot Sep 6, 2024
3442176
Remove unused private members
davidwengier Sep 6, 2024
b0d5d3e
Dial diagnosis up to warning
davidwengier Sep 6, 2024
daa1f01
Suppress
davidwengier Sep 6, 2024
07e1382
Cohost Spell Check (#10825)
davidwengier Sep 6, 2024
9386c8c
Merge remote-tracking branch 'upstream/main' into MinFix
davidwengier Sep 6, 2024
cc5b5a5
One more, after the merge
davidwengier Sep 6, 2024
e8eede8
Move GetLanguageKind(...) implementation methods to a helper class
DustinCampbell Sep 4, 2024
f575ad0
Add and use RazorCodeDocument.GetLanguageKind(...) extension method
DustinCampbell Sep 4, 2024
ae81c66
Fix up tests that mocked IDocumentMappingService.GetLanguageKind(...)
DustinCampbell Sep 5, 2024
ed8e62b
Remove IDocumentMappingService.GetLanguageKind(...)
DustinCampbell Sep 5, 2024
5105d1b
Update GetLanguageKind(...) tests and move to Workspaces.Test
DustinCampbell Sep 6, 2024
e9cd0b2
OnAutoInsert Cohosting Tests (#10829)
alexgav Sep 6, 2024
6186646
Remove flaky test
davidwengier Sep 7, 2024
b0cd007
Remove flaky test (#10854)
davidwengier Sep 9, 2024
f6da71d
Convert TextEdit to TextChange
davidwengier Sep 5, 2024
add718d
Get all consuming code compiling again
davidwengier Sep 6, 2024
fb2a2bd
Fix broken tests
davidwengier Sep 8, 2024
b275b91
Rename some variables etc.
davidwengier Sep 8, 2024
caa7ca0
Rename some methods to Try... pattern
davidwengier Sep 8, 2024
f89e7f6
Extract common code to helper method
davidwengier Sep 8, 2024
4e9bf4d
Use pooled collections in a few more spots
davidwengier Sep 8, 2024
aec9af4
Remove some more usage of LSP types, and simplify ranges to line numbers
davidwengier Sep 9, 2024
b268c61
IEnumarable to ImmutableArray
davidwengier Sep 9, 2024
4aeb519
Convert HtmlFormatter to ImmutableArray<TextChange>
davidwengier Sep 9, 2024
04f2ca6
Create a helper method and revert change to shared code, just in case
davidwengier Sep 9, 2024
6478625
Use ImmutableArray in SourceTextDiffer too
davidwengier Sep 9, 2024
d185785
PR Feedback
davidwengier Sep 9, 2024
98421fa
Fix auto insert service after merge from main
davidwengier Sep 9, 2024
308833d
Remove unused private members (#10848)
davidwengier Sep 9, 2024
baabd8d
Update dependencies from https://github.com/dotnet/source-build-refer…
dotnet-maestro[bot] Sep 9, 2024
8ffc0fc
Add Collection Best Practices in Razor document
DustinCampbell Sep 9, 2024
29c7302
Remove IDocumentMappingService.GetLanguageKind(...) and make it an ex…
DustinCampbell Sep 9, 2024
4f1a297
PR Feedback
davidwengier Sep 10, 2024
f9e09f5
[main] Update dependencies from dotnet/source-build-reference-package…
davidwengier Sep 10, 2024
ef0054c
Merge remote-tracking branch 'upstream/main' into FormattingTextChange
davidwengier Sep 10, 2024
05e317f
Fix after merge
davidwengier Sep 10, 2024
2511efe
Switch formatting engine over to using `TextChange` instead of `TextE…
davidwengier Sep 10, 2024
a3fe4c9
Tweak text for consistency
DustinCampbell Sep 10, 2024
665e116
Fix typo
DustinCampbell Sep 10, 2024
ac21c4d
Add missing space
DustinCampbell Sep 10, 2024
1f78fd1
Rename file
davidwengier Sep 10, 2024
d8b0c49
Cleanup default RemoteAutoInsertOptions (#10852)
alexgav Sep 10, 2024
062682d
Rename file (#10873)
davidwengier Sep 10, 2024
a782f9e
Create basic service and endpoints to gather diagnostics and pass the…
davidwengier Sep 11, 2024
0d5879a
Tune up CollectionBestPractices.md based on review feedback
DustinCampbell Sep 11, 2024
80a7281
Add Collection Best Practices in Razor document (#10861)
DustinCampbell Sep 11, 2024
4736846
Move RazorDocumentConverter and RazorTranslateDiagnosticsService down…
davidwengier Sep 11, 2024
37ca607
Combine, translate and report diagnostics from the OOP service
davidwengier Sep 11, 2024
462d9a4
Add diagnostics test
davidwengier Sep 12, 2024
8f7e1f8
Update all of the other tests
davidwengier Sep 12, 2024
923c016
Convert HtmlFormatting to a service, have it own its export provider,…
davidwengier Sep 12, 2024
f3062e7
Have our test service dispose of its export provider
davidwengier Sep 12, 2024
851405f
Remove static caches for export providers
davidwengier Sep 13, 2024
b36d507
More tests and better validation
davidwengier Sep 13, 2024
bce408a
Move helper method to somewhere central
davidwengier Sep 13, 2024
120997f
Remove toolset compiler workaround (#10876)
jjonescz Sep 13, 2024
742f378
Use Basic.Reference.Assemblies in MS.CA.Razor.Test (#10877)
jjonescz Sep 13, 2024
ca91065
Switch to new VMR control schema. (#10883)
mmitche Sep 13, 2024
5a6fde9
Disable test parallelisation in language services, because it uses Ex…
davidwengier Sep 14, 2024
f3a633b
Disable test parallelisation in language services (#10885)
davidwengier Sep 14, 2024
bc0e2af
Fixing WrapWithDiv bug (#10871)
alexgav Sep 16, 2024
4207fcf
Remove unused parameter
davidwengier Sep 16, 2024
c1f8fd5
Move code down, and share the factory code
davidwengier Sep 16, 2024
c128730
Remove AdhocWorkspaceFactory from DI, and make it fully own the works…
davidwengier Sep 16, 2024
b29a1c3
Rename type to better indicate its new role
davidwengier Sep 16, 2024
f217326
Remove unused service
davidwengier Sep 16, 2024
26fb68c
Since we don't own the workspace, it would be rude to add documents t…
davidwengier Sep 16, 2024
821c789
Update dependencies from https://github.com/dotnet/source-build-refer…
dotnet-maestro[bot] Sep 16, 2024
90f05d8
Update dependencies from https://github.com/dotnet/arcade build 20240…
dotnet-maestro[bot] Sep 16, 2024
04d6880
[main] Update dependencies from dotnet/source-build-reference-package…
davidwengier Sep 16, 2024
c38fc3b
ExcludeFromSourceBuild->ExcludeFromSourceOnlyBuild (#10892)
mmitche Sep 16, 2024
f994272
Fix #10891 - Formatting does not respect indentation within Razor com…
tuespetre Sep 16, 2024
763f699
Move workspace creation down even lower so the lifetime is contrained…
davidwengier Sep 17, 2024
614d5e4
PR feedback
davidwengier Sep 17, 2024
103645f
🦭
davidwengier Sep 17, 2024
4467256
Use Basic.Reference.Assemblies in Mvc Extension tests (#10888)
jjonescz Sep 17, 2024
dda1b20
Respond to PR requested changes
tuespetre Sep 17, 2024
05a0fdd
Update dependencies from https://github.com/dotnet/arcade build 20240…
dotnet-maestro[bot] Sep 17, 2024
a068170
Fix #10891 - Formatting does not respect indentation within Razor com…
phil-allen-msft Sep 17, 2024
c349de7
Bump Roslyn to 4.12.0-3.24466.4
davidwengier Sep 17, 2024
a7d127c
PR Feedback
davidwengier Sep 17, 2024
966d762
Fix `FormattingContext` disposal (#10887)
davidwengier Sep 17, 2024
1e9eaae
Fix tests
davidwengier Sep 18, 2024
fe5dc7b
Remove unnecessary code
davidwengier Sep 18, 2024
4b3e409
Cohost diagnostics support (#10882)
davidwengier Sep 18, 2024
53dae17
Fixing HTML attribute commit (#10897)
alexgav Sep 18, 2024
53d8f07
Fix expected output to reflect formatting change
davidwengier Sep 18, 2024
020f8e7
Fix formatting integration tests (#10900)
davidwengier Sep 18, 2024
5cb68cb
Allow TextChange.NewText to be null
davidwengier Sep 19, 2024
ca31b61
Don't throw if a document has been removed before we got to process them
davidwengier Sep 19, 2024
3feef4d
Fix build
davidwengier Sep 19, 2024
cfd20a8
Delete failing test that validates a bad assumption
davidwengier Sep 19, 2024
c2bff15
Harden completion test (#10902)
alexgav Sep 19, 2024
0f60d02
Extensions refactor (#10850)
chsienki Sep 19, 2024
3b87086
Fix some `AssumeNotNull` assumptions (#10901)
davidwengier Sep 19, 2024
e23328e
Add telemetry for 'bad' experiences based on tag helpers
ryzngard Sep 20, 2024
6aa9aee
Calculate SuppressAddComponentParameter in tooling (#10763)
ryzngard Sep 20, 2024
80f22d1
Feedback
ryzngard Sep 22, 2024
11603e6
Use project instead of taghelpers from document
ryzngard Sep 22, 2024
01f860d
Update dependencies from https://github.com/dotnet/source-build-refer…
dotnet-maestro[bot] Sep 23, 2024
fb78076
Fuse incorrect page directives (#10907)
chsienki Sep 23, 2024
8f473f2
[release/dev17.12] Update dependencies from dotnet/arcade (#10890)
Cosifne Sep 23, 2024
f499c03
[main] Update dependencies from dotnet/source-build-reference-package…
Cosifne Sep 23, 2024
a906642
Add telemetry for 'bad' experiences based on tag helpers (#10906)
ryzngard Sep 23, 2024
3e0da42
Fix missed DotNetBuildFromSource->DotNetBuildSourceOnly (#10915)
mmitche Sep 23, 2024
4ccb0ab
More hardening of the completion test (#10904)
alexgav Sep 25, 2024
eb2b7d4
Add a filter for faults to avoid bucketing (#10921)
ryzngard Sep 26, 2024
3bf3548
update configs for snap
akhera99 Sep 26, 2024
af590ea
Merge remote-tracking branch 'origin/release/dev17.12' into merges/re…
phil-allen-msft Sep 26, 2024
8ae2804
Update merge
phil-allen-msft Sep 26, 2024
b12847a
Merge release/dev17.12 to main (#10913)
dotnet-bot Sep 26, 2024
4b1b541
Fuse fix usings (#10925)
chsienki Sep 27, 2024
fb331d3
Update configs for 17.13p1 snap (#10929)
akhera99 Sep 27, 2024
cab5217
Add policheck to official pipeline (#10938)
phil-allen-msft Sep 30, 2024
fc1e182
Update dependencies from https://github.com/dotnet/source-build-refer…
dotnet-maestro[bot] Sep 30, 2024
be1f0d7
Merge branch 'main' into features/extract-to-component
ryzngard Sep 30, 2024
ea556b9
Fix merge
ryzngard Oct 1, 2024
b776c60
Fix moq in tests
ryzngard Oct 4, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
19 changes: 19 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
FROM mcr.microsoft.com/dotnet/sdk:8.0

ARG DOTNET_SDK_INSTALL_URL=https://dot.net/v1/dotnet-install.sh
# Install the correct Roslyn SDK into the same directory that the base image installs the SDK in.
ENV DOTNET_INSTALL_DIR=/usr/share/dotnet

# Copy the global.json file so its available in the image before the repo is cloned
COPY global.json /tmp/

RUN cd /tmp \
&& curl --location --output dotnet-install.sh "${DOTNET_SDK_INSTALL_URL}" \
&& chmod +x dotnet-install.sh \
&& mkdir -p "${DOTNET_INSTALL_DIR}" \
&& ./dotnet-install.sh --jsonfile "./global.json" --install-dir "${DOTNET_INSTALL_DIR}" \
&& rm dotnet-install.sh

# Set up machine requirements to build the repo
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
&& apt-get -y install --no-install-recommends curl git
60 changes: 60 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
// https://github.com/microsoft/vscode-dev-containers/tree/v0.140.1/containers/dotnetcore
{
"name": "Razor DevContainer",
"build": {
"dockerfile": "Dockerfile",
// Set the context to the workspace folder to allow us to copy files from it.
"context": ".."
},
"customizations": {
"vscode": {
"settings": {
"files.associations": {
"*.csproj": "msbuild",
"*.fsproj": "msbuild",
"*.globalconfig": "ini",
"*.manifest": "xml",
"*.nuspec": "xml",
"*.pkgdef": "ini",
"*.projitems": "msbuild",
"*.props": "msbuild",
"*.resx": "xml",
"*.rsp": "Powershell",
"*.ruleset": "xml",
"*.settings": "xml",
"*.shproj": "msbuild",
"*.slnf": "json",
"*.targets": "msbuild",
"*.vbproj": "msbuild",
"*.vsixmanifest": "xml",
"*.vstemplate": "xml",
"*.xlf": "xml",
"*.yml": "azure-pipelines"
},
// ms-dotnettools.csharp settings
"omnisharp.disableMSBuildDiagnosticWarning": true,
"omnisharp.enableEditorConfigSupport": true,
"omnisharp.enableImportCompletion": true,
"omnisharp.useModernNet": true,
"omnisharp.enableAsyncCompletion": true,
// ms-dotnettools.csdevkit settings
"dotnet.defaultSolution": "Razor.sln",
// ms-vscode.powershell settings
"powershell.promptToUpdatePowerShell": false,
"powershell.integratedConsole.showOnStartup": false,
"powershell.startAutomatically": false,
// ms-azure-devops.azure-pipelines settings
},
"extensions": [
"ms-dotnettools.csharp",
"ms-dotnettools.csdevkit",
"EditorConfig.EditorConfig",
"ms-vscode.powershell",
"tintoy.msbuild-project-tools",
"ms-azure-devops.azure-pipelines"
]
}
},
"postCreateCommand": "${containerWorkspaceFolder}/restore.sh"
}
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ dotnet_separate_import_directive_groups = false
# IDE0005 - Remove unnecessary imports
dotnet_diagnostic.IDE0005.severity = warning

# IDE0052 - Private member can be removed
dotnet_diagnostic.IDE0052.severity = warning

# IDE0046: If expression can be simplified
dotnet_style_prefer_conditional_expression_over_return = false:silent

Expand Down
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@
},
"dotnet.defaultSolution": "Razor.sln",
"omnisharp.defaultLaunchSolution": "Razor.sln",
"files.encoding": "utf8bom"
"files.encoding": "utf8bom",
"dotnet.testWindow.disableBuildOnRefresh": true
}
73 changes: 49 additions & 24 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,52 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "ActivateDotnet",
"type": "shell",
"windows": {
"command": "echo",
"args": [
"Skipping activation on windows"
]
},
"linux": {
"command": "source",
"args": [
"activate.sh"
],
"options": {
"cwd": "${workspaceFolder}"
},
"presentation": {
"reveal": "silent"
}
},
"version": "2.0.0",
"tasks": [
{
"label": "ActivateDotnet",
"type": "shell",
"windows": {
"command": "echo",
"args": [
"Skipping activation on windows"
]
},
"linux": {
"command": "source",
"args": [
"activate.sh"
],
"options": {
"cwd": "${workspaceFolder}"
},
]
"presentation": {
"reveal": "silent"
}
},
},
{
"label": "build.sh",
"command": "./build.sh",
"type": "shell",
"args": [
],
"windows": {
"command": "${workspaceFolder}/build.cmd",
},
"problemMatcher": "$msCompile",
"group": "build"
},
{
"label": "build Rasor.Slim.slnf",
"command": "dotnet",
"type": "shell",
"args": [
"build",
"-p:RunAnalyzersDuringBuild=false",
"-p:GenerateFullPaths=true",
"Razor.Slim.slnf"
],
"problemMatcher": "$msCompile",
"group": "build"
}
]
}
16 changes: 5 additions & 11 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
<TreatWarningsAsErrors Condition="'$(CI)' == 'true'">true</TreatWarningsAsErrors>
<GenerateResxSource>true</GenerateResxSource>
<GenerateResxSourceEmitFormatMethods>true</GenerateResxSourceEmitFormatMethods>
<ExcludeFromSourceBuild Condition="'$(IsUnitTestProject)' == 'true'">true</ExcludeFromSourceBuild>
<ExcludeFromSourceOnlyBuild Condition="'$(IsUnitTestProject)' == 'true'">true</ExcludeFromSourceOnlyBuild>
<RepositoryRoot>$(MSBuildThisFileDirectory)</RepositoryRoot>
<EnableWindowsTargeting Condition="'$(DotNetBuildFromSource)' != 'true'">true</EnableWindowsTargeting>
<EnableWindowsTargeting Condition="'$(DotNetBuildSourceOnly)' != 'true'">true</EnableWindowsTargeting>
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
<CentralPackageTransitivePinningEnabled>true</CentralPackageTransitivePinningEnabled>

Expand All @@ -40,15 +40,9 @@
<EmbeddedResourceUseDependentUponConvention>false</EmbeddedResourceUseDependentUponConvention>

<!-- By default, nothing builds from source build. Individual projects can opt in instead -->
<ExcludeFromSourceBuild>true</ExcludeFromSourceBuild>
<ExcludeFromSourceOnlyBuild>true</ExcludeFromSourceOnlyBuild>

<DefaultNetFxTargetFramework>net472</DefaultNetFxTargetFramework>

<!--
Needed to avoid error NU1010: The PackageReference items Microsoft.Net.Compilers.Toolset.Framework do not have corresponding PackageVersion.
Related to https://github.com/dotnet/sdk/issues/41791.
-->
<BuildWithNetFrameworkHostedCompiler>false</BuildWithNetFrameworkHostedCompiler>
</PropertyGroup>

<!--
Expand All @@ -61,7 +55,7 @@
necessary as the output of this leg is used in other CI source build legs. Those could be
targeting NetCurrent or NetPrevious hence we must produce both.
-->
<When Condition="'$(DotNetBuildFromSource)' == 'true' AND '$(DotNetBuildFromSourceFlavor)' != 'Product'">
<When Condition="'$(DotNetBuildSourceOnly)' == 'true' AND '$(DotNetBuildOrchestrator)' != 'true'">
<PropertyGroup>
<DefaultNetCoreTargetFramework>$(NetCurrent)</DefaultNetCoreTargetFramework>
<DefaultNetCoreTargetFrameworks>$(DefaultNetCoreTargetFramework);$(NetPrevious)</DefaultNetCoreTargetFrameworks>
Expand All @@ -71,7 +65,7 @@
<!--
2. Source build the product: this is the all up build of the product which needs only NetCurrent
-->
<When Condition="'$(DotNetBuildFromSource)' == 'true' AND '$(DotNetBuildFromSourceFlavor)' == 'Product'">
<When Condition="'$(DotNetBuildSourceOnly)' == 'true' AND '$(DotNetBuildOrchestrator)' == 'true'">
<PropertyGroup>
<DefaultNetCoreTargetFramework>$(NetCurrent)</DefaultNetCoreTargetFramework>
<DefaultNetCoreTargetFrameworks>$(DefaultNetCoreTargetFramework)</DefaultNetCoreTargetFrameworks>
Expand Down
2 changes: 1 addition & 1 deletion Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
here should be _ prefixed to indicate that they are not meant to be used outside this file.
-->
<PropertyGroup>
<_MicrosoftWebToolsPackageVersion>17.9.67-preview-0001</_MicrosoftWebToolsPackageVersion>
<_MicrosoftWebToolsPackageVersion>17.11.11-preview-0001</_MicrosoftWebToolsPackageVersion>
<_MicrosoftVisualStudioShellPackagesVersion>17.11.39721</_MicrosoftVisualStudioShellPackagesVersion>
<_MicrosoftVisualStudioPackagesVersion>17.11.191</_MicrosoftVisualStudioPackagesVersion>
<_VisualStudioLanguageServerProtocolVersion>17.12.1-preview</_VisualStudioLanguageServerProtocolVersion>
Expand Down
Loading
Loading