Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
382 commits
Select commit Hold shift + click to select a range
84673b9
[release/9.0.1xx] Update dependencies from dotnet/templating (#43338)
marcpopMSFT Sep 11, 2024
f751f21
[release/8.0.3xx] Update dependencies from dotnet/templating (#43343)
marcpopMSFT Sep 11, 2024
b9086f1
Update dependencies from https://github.com/dotnet/razor build 202409…
dotnet-maestro[bot] Sep 11, 2024
92f3348
[release/8.0.4xx] Update dependencies from dotnet/roslyn (#43347)
marcpopMSFT Sep 11, 2024
a3c1ad3
[release/9.0.1xx] Update dependencies from dotnet/fsharp (#43353)
marcpopMSFT Sep 11, 2024
780a1ab
[release/9.0.1xx] Update dependencies from dotnet/windowsdesktop (#43…
Sep 12, 2024
9606a42
[release/9.0.1xx] Update dependencies from dotnet/razor (#43364)
Sep 12, 2024
44a393b
[release/9.0.1xx] Update dependencies from dotnet/sourcelink (#43351)
Sep 12, 2024
81134ac
[release/9.0.1xx] Update dependencies from dotnet/msbuild (#43350)
Sep 12, 2024
2a8b88e
[release/9.0.1xx] Update dependencies from dotnet/roslyn (#43349)
Sep 12, 2024
9a86aad
[release/8.0.4xx] Update dependencies from dotnet/arcade (#43348)
Sep 12, 2024
795d47f
[release/8.0.4xx] Update dependencies from dotnet/templating (#43346)
Sep 12, 2024
e5fa5cd
[release/8.0.3xx] Update dependencies from dotnet/arcade (#43344)
Sep 12, 2024
cd20788
Merge branch 'release/8.0.4xx' of https://github.com/dotnet/sdk into …
Sep 12, 2024
81aa23f
Merge branch 'release/9.0.1xx' of https://github.com/dotnet/sdk into …
Sep 12, 2024
b941329
Update dependencies from https://github.com/dotnet/aspnetcore build 2…
dotnet-maestro[bot] Sep 12, 2024
1f76469
[release/9.0.1xx] Update dependencies from dotnet/aspnetcore (#43369)
Sep 12, 2024
684f015
Update dependencies from https://github.com/dotnet/aspnetcore build 2…
dotnet-maestro[bot] Sep 12, 2024
810adcc
[automated] Merge branch 'release/8.0.3xx' => 'release/8.0.4xx' (#43365)
Sep 12, 2024
3175029
[automated] Merge branch 'release/8.0.4xx' => 'release/9.0.1xx' (#43366)
Sep 12, 2024
7853e30
Update dependencies from https://github.com/dotnet/templating build 2…
dotnet-maestro[bot] Sep 12, 2024
8128f39
[release/9.0.1xx] Update dependencies from dotnet/aspnetcore (#43370)
Sep 12, 2024
6ef1bd7
Update dependencies from https://github.com/dotnet/test-templates bui…
dotnet-maestro[bot] Sep 12, 2024
b335bed
Update dependencies from https://github.com/dotnet/fsharp build 20240…
dotnet-maestro[bot] Sep 12, 2024
1583a16
Update dependencies from https://github.com/dotnet/arcade build 20240…
dotnet-maestro[bot] Sep 12, 2024
8a61713
Update dependencies from https://github.com/dotnet/templating build 2…
dotnet-maestro[bot] Sep 12, 2024
20e3300
Update dependencies from https://github.com/dotnet/msbuild build 2024…
dotnet-maestro[bot] Sep 12, 2024
6ba6430
Update dependencies from https://github.com/dotnet/arcade build 20240…
dotnet-maestro[bot] Sep 12, 2024
60d4b1f
Update dependencies from https://github.com/dotnet/roslyn build 20240…
dotnet-maestro[bot] Sep 12, 2024
49b1ca3
Update dependencies from https://github.com/dotnet/msbuild build 2024…
dotnet-maestro[bot] Sep 12, 2024
bf0cb12
Update dependencies from https://github.com/dotnet/runtime build 2024…
dotnet-maestro[bot] Sep 12, 2024
dd7a266
Various improvements to workload search version command
dsplaisted Sep 12, 2024
44c9f58
Add VM test for workload search version
dsplaisted Sep 12, 2024
40ea149
Add tests for workload set version mapping
dsplaisted Sep 12, 2024
c01b11b
Add column headers to workload search version <VERSION> table
dsplaisted Sep 12, 2024
66e8c0d
Update dependencies from https://github.com/dotnet/test-templates bui…
dotnet-maestro[bot] Sep 12, 2024
43ea5fd
Update dependencies from https://github.com/dotnet/aspnetcore build 2…
dotnet-maestro[bot] Sep 12, 2024
d84e27b
Search version in set (#43096)
dsplaisted Sep 12, 2024
0879265
Update dependencies from https://github.com/dotnet/aspnetcore build 2…
dotnet-maestro[bot] Sep 12, 2024
d32ed9d
Update dependencies from https://github.com/dotnet/fsharp build 20240…
dotnet-maestro[bot] Sep 12, 2024
704bd5a
[release/9.0.1xx] Update dependencies from dotnet/msbuild (#43385)
Sep 13, 2024
ebf7961
[release/9.0.1xx] Update dependencies from dotnet/roslyn (#43384)
Sep 13, 2024
5096083
[release/8.0.4xx] Update dependencies from dotnet/arcade (#43383)
Sep 13, 2024
32201af
Send "workload set not installed" messages
Forgind Aug 13, 2024
31f771d
Update src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/Workloa…
Forgind Aug 16, 2024
059e6ba
Update src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/Workloa…
Forgind Aug 17, 2024
2246a9e
Update src/Cli/dotnet/commands/dotnet-workload/WorkloadHistoryRecorde…
Forgind Aug 17, 2024
bc5e8c0
Fix nullable bug
Forgind Aug 19, 2024
2575d75
Changes from triage
Forgind Aug 24, 2024
7410158
Shorten message
Forgind Aug 28, 2024
4329877
Fix bad merges
Forgind Aug 28, 2024
42f2b9f
Update dependencies from https://github.com/dotnet/windowsdesktop bui…
dotnet-maestro[bot] Sep 13, 2024
991691b
[release/9.0.1xx] Update dependencies from dotnet/aspnetcore (#43391)
Sep 13, 2024
6a38e8d
[release/9.0.1xx] Update dependencies from dotnet/fsharp (#43374)
Sep 13, 2024
4e18dbb
[release/9.0.1xx] Update dependencies from dotnet/templating (#43371)
Sep 13, 2024
64510a7
[release/8.0.3xx] Update dependencies from dotnet/arcade (#43379)
Sep 13, 2024
a047afa
[release/8.0.4xx] Update dependencies from dotnet/templating (#43381)
Sep 13, 2024
bf274ea
[release/8.0.4xx] Update dependencies from dotnet/msbuild (#43382)
Sep 13, 2024
9c2600f
Merge branch 'release/8.0.4xx' of https://github.com/dotnet/sdk into …
Sep 13, 2024
541f543
Merge branch 'release/9.0.1xx' of https://github.com/dotnet/sdk into …
Sep 13, 2024
4690069
[release/9.0.1xx] Update dependencies from dotnet/windowsdesktop (#43…
Sep 13, 2024
931a279
[release/9.0.1xx] Update dependencies from dotnet/runtime (#43386)
Sep 13, 2024
aacd038
Update dependencies from https://github.com/dotnet/test-templates bui…
dotnet-maestro[bot] Sep 13, 2024
2b4fd34
[automated] Merge branch 'release/8.0.3xx' => 'release/8.0.4xx' (#43406)
Sep 13, 2024
d25ec6b
[automated] Merge branch 'release/8.0.4xx' => 'release/9.0.1xx' (#43402)
Sep 13, 2024
647112f
Update dependencies from https://github.com/dotnet/razor build 202409…
dotnet-maestro[bot] Sep 13, 2024
38d66c4
Update dependencies from https://github.com/dotnet/templating build 2…
dotnet-maestro[bot] Sep 13, 2024
fb57589
Update dependencies from https://github.com/dotnet/test-templates bui…
dotnet-maestro[bot] Sep 13, 2024
cc7c388
Update dependencies from https://github.com/nuget/nuget.client build …
dotnet-maestro[bot] Sep 13, 2024
046c31e
Update dependencies from https://github.com/dotnet/razor build 202409…
dotnet-maestro[bot] Sep 13, 2024
192e871
Update dependencies from https://github.com/dotnet/windowsdesktop bui…
dotnet-maestro[bot] Sep 13, 2024
313de99
Update dependencies from https://github.com/dotnet/arcade build 20240…
dotnet-maestro[bot] Sep 13, 2024
0c30d10
Update dependencies from https://github.com/dotnet/roslyn build 20240…
dotnet-maestro[bot] Sep 13, 2024
1a151b3
Update dependencies from https://github.com/dotnet/msbuild build 2024…
dotnet-maestro[bot] Sep 13, 2024
33bbb2d
Update dependencies from https://github.com/dotnet/runtime build 2024…
dotnet-maestro[bot] Sep 13, 2024
14e4d3f
Update dependencies from https://github.com/dotnet/arcade build 20240…
dotnet-maestro[bot] Sep 13, 2024
2bd0315
Fix MSI installation elevation communication protocol
dsplaisted Sep 13, 2024
214028b
Check for GC errors in workload tests
dsplaisted Sep 13, 2024
dd27080
Update dependencies from https://github.com/dotnet/windowsdesktop bui…
dotnet-maestro[bot] Sep 13, 2024
f5e3b49
Enable buildcheck telemetry
JanKrivanek Sep 11, 2024
591e969
Remuve measurability for non-time props
JanKrivanek Sep 13, 2024
666958c
Add RazorLangVersion 9 (#40348)
jjonescz Sep 13, 2024
795af9f
Shutdown toolset compilers (#43135)
jjonescz Sep 13, 2024
a9567ed
Update dependencies from https://github.com/dotnet/aspnetcore build 2…
dotnet-maestro[bot] Sep 13, 2024
24aa53c
Update dependencies from https://github.com/dotnet/razor build 202409…
dotnet-maestro[bot] Sep 13, 2024
b81219e
Update dependencies from https://github.com/dotnet/fsharp build 20240…
dotnet-maestro[bot] Sep 13, 2024
feb59ca
[9.0.1xx] Proto/enable buildcheck telemetry rc2 (#43431)
JanKrivanek Sep 13, 2024
9142933
Expand EOL list to include net7 6 months after it goes OOS per design
marcpopMSFT Sep 13, 2024
00aefe0
[release/9.0.1xx] Update dependencies from dotnet/test-templates (#43…
marcpopMSFT Sep 13, 2024
03c8985
[release/9.0.1xx] Update dependencies from dotnet/razor (#43411)
marcpopMSFT Sep 13, 2024
9f80d0b
[release/9.0.1xx] Update dependencies from dotnet/arcade (#43427)
marcpopMSFT Sep 13, 2024
6752c52
Update dependencies from https://github.com/dotnet/aspnetcore build 2…
dotnet-maestro[bot] Sep 13, 2024
eea4763
[release/8.0.4xx] Update dependencies from dotnet/arcade (#43423)
marcpopMSFT Sep 13, 2024
ccc9078
[release/9.0.1xx] Update dependencies from dotnet/aspnetcore (#43434)
Sep 14, 2024
14a30fd
[release/9.0.1xx] Update dependencies from dotnet/runtime (#43426)
Sep 14, 2024
f0381f5
[release/9.0.1xx] Update dependencies from dotnet/msbuild (#43425)
Sep 14, 2024
0eae790
[release/9.0.1xx] Update dependencies from dotnet/roslyn (#43424)
Sep 14, 2024
d30ca25
[release/9.0.1xx] Update dependencies from dotnet/windowsdesktop (#43…
Sep 14, 2024
3a608d5
[release/9.0.1xx] Update dependencies from nuget/nuget.client (#43413)
Sep 14, 2024
ad6c881
[release/9.0.1xx] Update dependencies from dotnet/templating (#43412)
Sep 14, 2024
0f07337
[release/9.0.1xx] Update dependencies from dotnet/fsharp (#43438)
Sep 14, 2024
69f50bc
Update dependencies from https://github.com/dotnet/razor build 202409…
dotnet-maestro[bot] Sep 14, 2024
119bb80
Update dependencies from https://github.com/nuget/nuget.client build …
dotnet-maestro[bot] Sep 14, 2024
13f9e6c
Update dependencies from https://github.com/dotnet/roslyn build 20240…
dotnet-maestro[bot] Sep 14, 2024
66a1f54
Update dependencies from https://github.com/dotnet/msbuild build 2024…
dotnet-maestro[bot] Sep 14, 2024
aa45c99
Update dependencies from https://github.com/dotnet/runtime build 2024…
dotnet-maestro[bot] Sep 14, 2024
5afc6cb
Update dependencies from https://github.com/dotnet/arcade build 20240…
dotnet-maestro[bot] Sep 14, 2024
408b488
Update dependencies from https://github.com/dotnet/windowsdesktop bui…
dotnet-maestro[bot] Sep 14, 2024
1a658df
[release/9.0.1xx] Update dependencies from nuget/nuget.client (#43450)
baronfel Sep 14, 2024
2c52853
Update dependencies from https://github.com/dotnet/razor build 202409…
dotnet-maestro[bot] Sep 16, 2024
471a33d
Update dependencies from https://github.com/dotnet/fsharp build 20240…
dotnet-maestro[bot] Sep 16, 2024
9d44a3f
Update dependencies from https://github.com/dotnet/fsharp build 20240…
dotnet-maestro[bot] Sep 16, 2024
c4104e5
[release/9.0.1xx] .NET Source-Build 9.0.100-rc.1.24452.1 September 20…
github-actions[bot] Sep 16, 2024
017c4cc
Update dependencies from https://github.com/dotnet/fsharp build 20240…
dotnet-maestro[bot] Sep 16, 2024
90b335c
Merge branch 'release/9.0.1xx' into darc-release/9.0.1xx-ff20bae4-490…
KevinRansom Sep 16, 2024
fb54cfd
[release/9.0.1xx] Update dependencies from dotnet/msbuild (#43457)
marcpopMSFT Sep 16, 2024
5954300
Correctly handle different architectures of the SDK
marcpopMSFT Sep 16, 2024
5d5fa01
Make workload version / update mode output more consistent
dsplaisted Sep 16, 2024
11239cf
Add test coverage for workload set special cases
dsplaisted Sep 16, 2024
df99a20
Update dependencies from https://github.com/dotnet/aspnetcore build 2…
dotnet-maestro[bot] Sep 16, 2024
47fa567
[release/9.0.1xx] Update dependencies from dotnet/razor (#43449)
marcpopMSFT Sep 16, 2024
044852a
[release/9.0.1xx] Update dependencies from dotnet/fsharp (#43464)
marcpopMSFT Sep 16, 2024
54c3de8
[release/9.0.1xx] Update dependencies from dotnet/runtime (#43458)
marcpopMSFT Sep 16, 2024
c5a203b
[release/9.0.1xx] Update dependencies from dotnet/windowsdesktop (#43…
marcpopMSFT Sep 16, 2024
aed512a
Use Graceful exception to only report the error
joeloff Sep 16, 2024
5ce116a
Remove 7.0 from the templating tests
marcpopMSFT Sep 16, 2024
7ed44fc
manually port the loc build update
marcpopMSFT Sep 6, 2024
cc77d9b
[release/9.0.1xx] manually port the loc build update (#43475)
marcpopMSFT Sep 16, 2024
95498d7
Update dependencies from https://github.com/nuget/nuget.client build …
dotnet-maestro[bot] Sep 16, 2024
8634876
Fix handling installer shutdown in workload restore command
dsplaisted Sep 16, 2024
61a87e6
Fix workload restore with global.json-specified workload version
dsplaisted Sep 16, 2024
b7dcdeb
Code review feedback: add empty line
dsplaisted Sep 16, 2024
6f5dc68
Update dependencies from https://github.com/dotnet/msbuild build 2024…
dotnet-maestro[bot] Sep 16, 2024
7aedba4
[release/9.0.1xx] Update dependencies from dotnet/arcade (#43459)
marcpopMSFT Sep 16, 2024
098314e
[release/9.0.1xx] Update dependencies from dotnet/aspnetcore (#43473)
marcpopMSFT Sep 16, 2024
0b2b20b
[release/8.0.4xx] Update dependencies from nuget/nuget.client (#43476)
vseanreesermsft Sep 16, 2024
92b8b5e
Don't forward along binlog arguments to runnable applications in dotn…
baronfel Sep 16, 2024
0e33d06
[release/9.0.1xx] Update dependencies from dotnet/msbuild (#43478)
marcpopMSFT Sep 16, 2024
dfaa9c5
Add "not installed" and other messages for workloads (#43472)
dsplaisted Sep 16, 2024
f0fec07
Fix the formatting of the onelocbuildconditional
marcpopMSFT Sep 16, 2024
f069be7
Fix the logic to correctly pull from the OS artchitecture so we use t…
marcpopMSFT Sep 16, 2024
7ffe7d4
Clean up error experience when downloading non-tools (#43045)
marcpopMSFT Sep 16, 2024
25a2f65
[release/9.0.1xx] Don't fail metadata updates on missing assemblies (…
jeromelaban Sep 16, 2024
14df2f5
Update dependencies from https://github.com/dotnet/aspnetcore build 2…
dotnet-maestro[bot] Sep 17, 2024
7d8ccff
Update dependencies from https://github.com/dotnet/windowsdesktop bui…
dotnet-maestro[bot] Sep 17, 2024
947ef2e
Update dependencies from https://github.com/dotnet/aspnetcore build 2…
dotnet-maestro[bot] Sep 17, 2024
d972769
Update dependencies from https://github.com/dotnet/razor build 202409…
dotnet-maestro[bot] Sep 17, 2024
e3c0343
Update dependencies from https://github.com/dotnet/roslyn build 20240…
dotnet-maestro[bot] Sep 17, 2024
40eedf5
Update dependencies from https://github.com/dotnet/msbuild build 2024…
dotnet-maestro[bot] Sep 17, 2024
0e03a7f
Update dependencies from https://github.com/dotnet/sourcelink build 2…
dotnet-maestro[bot] Sep 17, 2024
f99462d
Update dependencies from https://github.com/dotnet/windowsdesktop bui…
dotnet-maestro[bot] Sep 17, 2024
b339179
Update dependencies from https://github.com/dotnet/source-build-exter…
dotnet-maestro[bot] Sep 17, 2024
c6e845a
Update dependencies from https://github.com/dotnet/runtime build 2024…
dotnet-maestro[bot] Sep 17, 2024
9ac21bf
Patch for Source-Build Stage 2 FSharp FS0064 Warnings (#43436)
ellahathaway Sep 17, 2024
22253b3
Fix the formatting of the onelocbuildconditional (#43482)
marcpopMSFT Sep 17, 2024
1e10f4c
Update dependencies from https://github.com/dotnet/arcade build 20240…
dotnet-maestro[bot] Sep 17, 2024
7d62d93
Simplify the logic to always request the 64bit hive as it'll default …
marcpopMSFT Sep 17, 2024
be500ea
Update dependencies from https://github.com/dotnet/windowsdesktop bui…
dotnet-maestro[bot] Sep 17, 2024
a1ee2c1
Merge branch 'release/9.0.1xx' into backport/pr-43440-to-release/9.0.1xx
marcpopMSFT Sep 17, 2024
c450e70
Update dependencies from https://github.com/dotnet/razor build 202409…
dotnet-maestro[bot] Sep 17, 2024
a600d7e
[release/9.0.1xx] Update dependencies from dotnet/aspnetcore (#43487)
marcpopMSFT Sep 17, 2024
42e0f30
[release/9.0.1xx] Update dependencies from dotnet/windowsdesktop (#43…
marcpopMSFT Sep 17, 2024
4d4e576
[release/9.0.1xx] Update dependencies from dotnet/arcade (#43511)
marcpopMSFT Sep 17, 2024
056fdd8
[release/9.0.1xx] Update dependencies from dotnet/source-build-extern…
Sep 18, 2024
f350c9b
[release/9.0.1xx] Update dependencies from dotnet/sourcelink (#43501)
Sep 18, 2024
4c3711f
[release/9.0.1xx] Update dependencies from dotnet/msbuild (#43500)
Sep 18, 2024
cd2774a
Update dependencies from https://github.com/dotnet/windowsdesktop bui…
dotnet-maestro[bot] Sep 18, 2024
166bc51
Update dependencies from https://github.com/nuget/nuget.client build …
dotnet-maestro[bot] Sep 18, 2024
3b24a7e
[release/9.0.1xx] Update dependencies from nuget/nuget.client (#43532)
Sep 18, 2024
5cd704e
[release/9.0.1xx] Update dependencies from dotnet/windowsdesktop (#43…
Sep 18, 2024
daa5235
Update dependencies from https://github.com/dotnet/razor build 202409…
dotnet-maestro[bot] Sep 18, 2024
c204043
[release/9.0.1xx] Update dependencies from dotnet/razor (#43493)
Sep 18, 2024
210e0a1
Merge branch 'release/9.0.1xx' of https://github.com/dotnet/sdk into …
Sep 18, 2024
ca41553
[release/9.0.1xx] Update dependencies from dotnet/runtime (#43503)
Sep 18, 2024
f31287f
[automated] Merge branch 'release/8.0.4xx' => 'release/9.0.1xx' (#43481)
Sep 18, 2024
8f2b169
Update dependencies from https://github.com/dotnet/roslyn build 20240…
dotnet-maestro[bot] Sep 18, 2024
64d38a7
Update dependencies from https://github.com/dotnet/msbuild build 2024…
dotnet-maestro[bot] Sep 18, 2024
be377ae
Update dependencies from https://github.com/dotnet/sourcelink build 2…
dotnet-maestro[bot] Sep 18, 2024
9de0449
Update dependencies from https://github.com/dotnet/source-build-exter…
dotnet-maestro[bot] Sep 18, 2024
955cef9
Update dependencies from https://github.com/dotnet/windowsdesktop bui…
dotnet-maestro[bot] Sep 18, 2024
ddf3716
Fix null reference exception for full global tools update.
DL444 Aug 31, 2024
beb3f36
[release/8.0.4xx] Fix NullReferenceException for `dotnet tool update …
nagilson Sep 18, 2024
52baed1
Port to 9.0.1xx: Fix processing non-public classes and generic types …
tmat Sep 18, 2024
5a223e0
[release/9.0.1xx] Expand EOL list to include net7 6 months after it g…
marcpopMSFT Sep 18, 2024
8b99b19
Correctly handle different architectures for devdeviceID (#43471)
marcpopMSFT Sep 18, 2024
83ea1c9
[release/9.0.1xx] Update dependencies from dotnet/source-build-refere…
dotnet-maestro[bot] Sep 18, 2024
d9680b2
Update dependencies from https://github.com/dotnet/aspnetcore build 2…
dotnet-maestro[bot] Sep 18, 2024
2025cc8
Add Aspire service tests (#43515)
tmat Sep 18, 2024
3fcfac7
[release/9.0.1xx] Update dependencies from dotnet/source-build-extern…
joeloff Sep 18, 2024
b48e3b9
Update dependencies from https://github.com/dotnet/roslyn build 20240…
dotnet-maestro[bot] Sep 19, 2024
1ed9b03
Update dependencies from https://github.com/dotnet/razor build 202409…
dotnet-maestro[bot] Sep 19, 2024
b6599be
Update dependencies from https://github.com/dotnet/windowsdesktop bui…
dotnet-maestro[bot] Sep 19, 2024
d16a2c7
Update dependencies from https://github.com/dotnet/razor build 202409…
dotnet-maestro[bot] Sep 19, 2024
6636464
Merge branch 'release/9.0.1xx' of https://github.com/dotnet/sdk into …
Sep 19, 2024
6de149b
Merge branch 'release/9.0.1xx' of https://github.com/dotnet/sdk into …
Sep 19, 2024
0293282
Merge branch 'release/9.0.1xx' of https://github.com/dotnet/sdk into …
Sep 19, 2024
84e3ca2
Merge branch 'release/9.0.1xx' of https://github.com/dotnet/sdk into …
Sep 19, 2024
d4e3ffe
Update dependencies from https://github.com/dotnet/roslyn build 20240…
dotnet-maestro[bot] Sep 19, 2024
5d57500
Update dependencies from https://github.com/dotnet/msbuild build 2024…
dotnet-maestro[bot] Sep 19, 2024
f55a87f
Update dependencies from https://github.com/dotnet/sourcelink build 2…
dotnet-maestro[bot] Sep 19, 2024
cf9d94a
Update dependencies from https://github.com/dotnet/windowsdesktop bui…
dotnet-maestro[bot] Sep 19, 2024
9674d06
Hot Reload: Handle file deletions correctly (#43368)
tmat Sep 19, 2024
1b83767
Merge branch 'release/9.0.1xx' into darc-release/9.0.1xx-2fe5fd8c-acc…
marcpopMSFT Sep 19, 2024
bb6fa1f
[release/9.0.1xx] Update dependencies from dotnet/razor (#43565)
Sep 20, 2024
eed65d6
[release/9.0.1xx] Update dependencies from dotnet/aspnetcore (#43558)
Sep 20, 2024
60c1ada
Merge branch 'release/9.0.1xx' of https://github.com/dotnet/sdk into …
Sep 20, 2024
691402b
Merge branch 'release/9.0.1xx' of https://github.com/dotnet/sdk into …
Sep 20, 2024
963c261
Merge branch 'release/9.0.1xx' of https://github.com/dotnet/sdk into …
Sep 20, 2024
88fad08
Merge branch 'release/9.0.1xx' of https://github.com/dotnet/sdk into …
Sep 20, 2024
b469e4a
[release/9.0.1xx] Update dependencies from dotnet/roslyn (#43456)
Sep 20, 2024
749e468
Update dependencies from https://github.com/nuget/nuget.client build …
dotnet-maestro[bot] Sep 20, 2024
1491d19
Update dependencies from https://github.com/dotnet/roslyn build 20240…
dotnet-maestro[bot] Sep 20, 2024
42a91eb
Update dependencies from https://github.com/dotnet/msbuild build 2024…
dotnet-maestro[bot] Sep 20, 2024
26517b3
Update dependencies from https://github.com/dotnet/aspnetcore build 2…
dotnet-maestro[bot] Sep 20, 2024
edb6817
Update dependencies from https://github.com/nuget/nuget.client build …
dotnet-maestro[bot] Sep 21, 2024
2e0387b
Update dependencies from https://github.com/dotnet/roslyn build 20240…
dotnet-maestro[bot] Sep 21, 2024
8741e71
[release/9.0.1xx] Update dependencies from dotnet/aspnetcore (#43605)
Sep 23, 2024
b74b904
[automated] Merge branch 'release/8.0.4xx' => 'release/9.0.1xx' (#43552)
Sep 23, 2024
3474b4f
[release/9.0.1xx] Update dependencies from dotnet/msbuild (#43543)
Sep 23, 2024
89b5486
Update dependencies from https://github.com/dotnet/windowsdesktop bui…
dotnet-maestro[bot] Sep 23, 2024
a08a0b2
Exclude false positive license ref for fsharp patch (#43623)
mthalman Sep 23, 2024
2f3930b
Update dependencies from https://github.com/dotnet/razor build 202409…
dotnet-maestro[bot] Sep 23, 2024
d2d9f34
[release/9.0.1xx] Publish prebuilt reports for each repo (#43595)
Winniexu01 Sep 23, 2024
db0ab23
Update dependencies from https://github.com/dotnet/razor build 202409…
dotnet-maestro[bot] Sep 23, 2024
4a0b003
Update dependencies from https://github.com/dotnet/razor build 202409…
dotnet-maestro[bot] Sep 23, 2024
253ccea
[release/9.0.1xx] Update dependencies from dotnet/runtime (#43554)
dotnet-maestro[bot] Sep 23, 2024
7b42e59
Merge branch 'release/9.0.1xx' into darc-release/9.0.1xx-ea8ecf9c-b12…
lewing Sep 23, 2024
566cd15
Merge branch 'release/9.0.1xx' into darc-release/9.0.1xx-3c4ef9f7-ba6…
lewing Sep 23, 2024
b4b2a39
Merge branch 'release/9.0.1xx' into darc-release/9.0.1xx-c64823a6-652…
lewing Sep 23, 2024
876f6c0
Update dependencies from https://github.com/nuget/nuget.client build …
dotnet-maestro[bot] Sep 24, 2024
0ff915e
[release/9.0.1xx] Update dependencies from dotnet/aspnetcore (#43630)
dotnet-maestro[bot] Sep 24, 2024
48185e1
[release/9.0.1xx] Update dependencies from dotnet/razor (#43638)
Sep 24, 2024
828ff2a
[release/9.0.1xx] Update dependencies from dotnet/roslyn (#43602)
Sep 24, 2024
1ab7b28
Merge branch 'release/9.0.1xx' of https://github.com/dotnet/sdk into …
Sep 24, 2024
d8bc2d5
[release/9.0.1xx] Update dependencies from dotnet/windowsdesktop (#43…
Sep 24, 2024
c9b2635
[release/9.0.1xx] Update dependencies from dotnet/sourcelink (#43544)
Sep 24, 2024
bc1fef7
Update dependencies from https://github.com/dotnet/aspnetcore build 2…
dotnet-maestro[bot] Sep 24, 2024
c867840
[release/9.0.1xx] Update dependencies from dotnet/aspnetcore (#43647)
Sep 24, 2024
af906b0
[release/9.0.1xx] Update dependencies from dotnet/aspire (#43632)
dotnet-maestro[bot] Sep 24, 2024
42b2349
[release/9.0.1xx] Update dependencies from nuget/nuget.client (#43598)
Sep 24, 2024
650ce5c
Update Source-Build SDK Diff Tests Baselines and Exclusions (#43646)
dotnet-sb-bot Sep 24, 2024
a701099
Update dependencies from https://github.com/dotnet/windowsdesktop bui…
dotnet-maestro[bot] Sep 24, 2024
664e08a
Update dependencies from https://github.com/dotnet/windowsdesktop bui…
dotnet-maestro[bot] Sep 24, 2024
0e21871
[release/9.0.1xx] Update dependencies from dotnet/windowsdesktop (#43…
joeloff Sep 24, 2024
038ac58
Initial branding for 9.0.2xx
marcpopMSFT Sep 20, 2024
32a0114
Revert to shipped RC1
marcpopMSFT Sep 24, 2024
1b44e55
Enable CI for 9.0.2xx
marcpopMSFT Sep 24, 2024
9058ebd
Merge branch 'main' of https://github.com/dotnet/sdk into merge/relea…
Sep 25, 2024
16613f0
Revert version
Sep 25, 2024
044d09f
Merge branch 'main' into merge/release/9.0.2xx-to-main
marcpopMSFT Oct 7, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .vsts-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ trigger:
branches:
include:
- main
- release/9.0.1xx
- release/9.0.2xx
- internal/release/*
- exp/*

Expand Down
2 changes: 2 additions & 0 deletions NuGet.config
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
<clear />
<!--Begin: Package sources managed by Dependency Flow automation. Do not edit the sources below.-->
<!-- Begin: Package sources from dotnet-aspire -->
<add key="darc-pub-dotnet-aspire-137e8dc" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-dotnet-aspire-137e8dca/nuget/v3/index.json" />
<add key="darc-pub-dotnet-aspire-137e8dc-1" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-dotnet-aspire-137e8dca-1/nuget/v3/index.json" />
<!-- End: Package sources from dotnet-aspire -->
<!-- Begin: Package sources from dotnet-aspnetcore -->
<!-- End: Package sources from dotnet-aspnetcore -->
Expand Down
8 changes: 4 additions & 4 deletions eng/Version.Details.xml
Original file line number Diff line number Diff line change
Expand Up @@ -660,14 +660,14 @@
aren't shipping, or those extensions packages depend on aspnetcore packages that won't ship. However, given the cost
of maintaining this coherency path is high. This being toolset means that aspire is responsible for its own coherency.
-->
<Dependency Name="Microsoft.NET.Sdk.Aspire.Manifest-8.0.100" Version="9.0.0-preview.4.24456.4">
<Dependency Name="Microsoft.NET.Sdk.Aspire.Manifest-8.0.100" Version="8.2.1">
<Uri>https://github.com/dotnet/aspire</Uri>
<Sha>b88ce9e7cb0430fb0b4e2d018f13694a4c733289</Sha>
<Sha>137e8dcae0a7b22c05f48c4e7a5d36fe3f00a8d7</Sha>
</Dependency>
<!-- Intermediate is necessary for source build. -->
<Dependency Name="Microsoft.SourceBuild.Intermediate.aspire" Version="9.0.0-preview.4.24456.4">
<Dependency Name="Microsoft.SourceBuild.Intermediate.aspire" Version="8.2.1-preview.1.24473.4">
<Uri>https://github.com/dotnet/aspire</Uri>
<Sha>b88ce9e7cb0430fb0b4e2d018f13694a4c733289</Sha>
<Sha>137e8dcae0a7b22c05f48c4e7a5d36fe3f00a8d7</Sha>
<SourceBuild RepoName="aspire" ManagedOnly="true" />
</Dependency>
<Dependency Name="Microsoft.IO.Redist" Version="6.0.1">
Expand Down
2 changes: 1 addition & 1 deletion eng/Versions.props
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@
</PropertyGroup>
<PropertyGroup Label="Workload manifest package versions">
<AspireFeatureBand>8.0.100</AspireFeatureBand>
<MicrosoftNETSdkAspireManifest80100PackageVersion>9.0.0-preview.4.24456.4</MicrosoftNETSdkAspireManifest80100PackageVersion>
<MicrosoftNETSdkAspireManifest80100PackageVersion>8.2.1</MicrosoftNETSdkAspireManifest80100PackageVersion>
<MauiFeatureBand>9.0.100-preview.6</MauiFeatureBand>
<MauiWorkloadManifestVersion>9.0.0-preview.6.24327.7</MauiWorkloadManifestVersion>
<XamarinAndroidWorkloadManifestVersion>34.99.0-preview.6.340</XamarinAndroidWorkloadManifestVersion>
Expand Down
8 changes: 8 additions & 0 deletions sdk.sln
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,8 @@ Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "Microsoft.WebTools.AspireSe
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Net.Sdk.Compilers.Toolset", "src\Microsoft.Net.Sdk.Compilers.Toolset\Microsoft.Net.Sdk.Compilers.Toolset.csproj", "{FA579C03-2EB4-4D47-88EE-BFF339E96FAF}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.WebTools.AspireService.Tests", "test\Microsoft.WebTools.AspireService.Tests\Microsoft.WebTools.AspireService.Tests.csproj", "{1F0B4B3C-DC88-4740-B04F-1707102E9930}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -968,6 +970,10 @@ Global
{FA579C03-2EB4-4D47-88EE-BFF339E96FAF}.Debug|Any CPU.Build.0 = Debug|Any CPU
{FA579C03-2EB4-4D47-88EE-BFF339E96FAF}.Release|Any CPU.ActiveCfg = Release|Any CPU
{FA579C03-2EB4-4D47-88EE-BFF339E96FAF}.Release|Any CPU.Build.0 = Release|Any CPU
{1F0B4B3C-DC88-4740-B04F-1707102E9930}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{1F0B4B3C-DC88-4740-B04F-1707102E9930}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1F0B4B3C-DC88-4740-B04F-1707102E9930}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1F0B4B3C-DC88-4740-B04F-1707102E9930}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down Expand Up @@ -1146,13 +1152,15 @@ Global
{19014C60-F87C-4CC7-AC0F-C41B6126EBCE} = {71A9F549-0EB6-41F9-BC16-4A6C5007FC91}
{94C8526E-DCC2-442F-9868-3DD0BA2688BE} = {71A9F549-0EB6-41F9-BC16-4A6C5007FC91}
{FA579C03-2EB4-4D47-88EE-BFF339E96FAF} = {22AB674F-ED91-4FBC-BFEE-8A1E82F9F05E}
{1F0B4B3C-DC88-4740-B04F-1707102E9930} = {580D1AE7-AA8F-4912-8B76-105594E00B3B}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {FB8F26CE-4DE6-433F-B32A-79183020BBD6}
EndGlobalSection
GlobalSection(SharedMSBuildProjectFiles) = preSolution
src\Compatibility\ApiCompat\Microsoft.DotNet.ApiCompat.Shared\Microsoft.DotNet.ApiCompat.Shared.projitems*{03c5a84a-982b-4f38-ac73-ab832c645c4a}*SharedItemsImports = 5
src\Compatibility\ApiCompat\Microsoft.DotNet.ApiCompat.Shared\Microsoft.DotNet.ApiCompat.Shared.projitems*{0a3c9afd-f6e6-4a5d-83fb-93bf66732696}*SharedItemsImports = 5
src\BuiltInTools\AspireService\Microsoft.WebTools.AspireService.projitems*{1f0b4b3c-dc88-4740-b04f-1707102e9930}*SharedItemsImports = 5
src\BuiltInTools\AspireService\Microsoft.WebTools.AspireService.projitems*{94c8526e-dcc2-442f-9868-3dd0ba2688be}*SharedItemsImports = 13
src\Compatibility\ApiCompat\Microsoft.DotNet.ApiCompat.Shared\Microsoft.DotNet.ApiCompat.Shared.projitems*{9d36039f-d0a1-462f-85b4-81763c6b02cb}*SharedItemsImports = 13
src\Compatibility\ApiCompat\Microsoft.DotNet.ApiCompat.Shared\Microsoft.DotNet.ApiCompat.Shared.projitems*{a9103b98-d888-4260-8a05-fa36f640698a}*SharedItemsImports = 5
Expand Down
6 changes: 0 additions & 6 deletions src/BuiltInTools/AspireService/AspireServerService.cs
Original file line number Diff line number Diff line change
@@ -1,18 +1,12 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Net;
using System.Net.WebSockets;
using System.Security.Cryptography;
using System.Security.Cryptography.X509Certificates;
using System.Text;
using System.Text.Json;
using System.Text.Json.Serialization;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Http;
Expand Down
5 changes: 4 additions & 1 deletion src/BuiltInTools/AspireService/Helpers/CertGenerator.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

using System;
using System.Security.Cryptography;
using System.Security.Cryptography.X509Certificates;

Expand Down Expand Up @@ -35,7 +34,11 @@ public static X509Certificate2 GenerateCert()
// The file will be automatically generated by the following call and disposed when the returned cert is disposed.
using (cert)
{
#if NET9_0_OR_GREATER
return X509CertificateLoader.LoadPkcs12(cert.Export(X509ContentType.Pfx), password: null, X509KeyStorageFlags.UserKeySet);
#else
return new X509Certificate2(cert.Export(X509ContentType.Pfx), "", X509KeyStorageFlags.UserKeySet);
#endif
}
}
else
Expand Down
21 changes: 20 additions & 1 deletion src/BuiltInTools/DotNetDeltaApplier/HotReloadAgent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ private UpdateHandlerActions GetMetadataUpdateHandlerActions()
var handlerActions = new UpdateHandlerActions();
foreach (var assembly in sortedAssemblies)
{
foreach (var attr in assembly.GetCustomAttributesData())
foreach (var attr in TryGetCustomAttributesData(assembly))
{
// Look up the attribute by name rather than by type. This would allow netstandard targeting libraries to
// define their own copy without having to cross-compile.
Expand All @@ -106,6 +106,25 @@ private UpdateHandlerActions GetMetadataUpdateHandlerActions()
return handlerActions;
}

private IList<CustomAttributeData> TryGetCustomAttributesData(Assembly assembly)
{
try
{
return assembly.GetCustomAttributesData();
}
catch (Exception e)
{
// In cross-platform scenarios, such as debugging in VS through WSL, Roslyn
// runs on Windows, and the agent runs on Linux. Assemblies accessible to Windows
// may not be available or loaded on linux (such as WPF's assemblies).
// In such case, we can ignore the assemblies and continue enumerating handlers for
// the rest of the assemblies of current domain.
_log($"'{assembly.FullName}' is not loaded ({e.Message})");

return new List<CustomAttributeData>();
}
}

internal void GetHandlerActions(UpdateHandlerActions handlerActions, Type handlerType)
{
bool methodFound = false;
Expand Down
6 changes: 4 additions & 2 deletions src/BuiltInTools/DotNetDeltaApplier/StartupHook.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,11 @@ public static void Initialize()
// When launching the application process dotnet-watch sets Hot Reload environment variables via CLI environment directives (dotnet [env:X=Y] run).
// Currently, the CLI parser sets the env variables to the dotnet.exe process itself, rather then to the target process.
// This may cause the dotnet.exe process to connect to the named pipe and break it for the target process.
if (Path.ChangeExtension(processPath, ".exe") != Path.ChangeExtension(s_targetProcessPath, ".exe"))
var processExe = Path.ChangeExtension(processPath, ".exe");
var expectedExe = Path.ChangeExtension(s_targetProcessPath, ".exe");
if (!string.Equals(processExe, expectedExe, Path.DirectorySeparatorChar == '\\' ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal))
{
Log($"Ignoring process '{processPath}', expecting '{s_targetProcessPath}'");
Log($"Ignoring process '{processExe}', expecting '{expectedExe}'");
return;
}

Expand Down
10 changes: 5 additions & 5 deletions src/BuiltInTools/dotnet-watch/DotNetWatcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public override async Task WatchAsync(CancellationToken cancellationToken)

var environmentBuilder = EnvironmentVariablesBuilder.FromCurrentEnvironment();

FileItem? changedFile = null;
ChangedFile? changedFile = null;
var buildEvaluator = new BuildEvaluator(Context, RootFileSetFactory);
await using var browserConnector = new BrowserConnector(Context);

Expand Down Expand Up @@ -86,17 +86,17 @@ public override async Task WatchAsync(CancellationToken cancellationToken)

var processTask = ProcessRunner.RunAsync(processSpec, Context.Reporter, isUserApplication: true, processExitedSource: null, combinedCancellationSource.Token);

Task<FileItem?> fileSetTask;
Task<ChangedFile?> fileSetTask;
Task finishedTask;

while (true)
{
fileSetTask = fileSetWatcher.GetChangedFileAsync(startedWatching: null, combinedCancellationSource.Token);
finishedTask = await Task.WhenAny(processTask, fileSetTask, cancelledTaskSource.Task);

if (staticFileHandler != null && finishedTask == fileSetTask && fileSetTask.Result is FileItem fileItem)
if (staticFileHandler != null && finishedTask == fileSetTask && fileSetTask.Result.HasValue)
{
if (await staticFileHandler.HandleFileChangesAsync([fileItem], combinedCancellationSource.Token))
if (await staticFileHandler.HandleFileChangesAsync([fileSetTask.Result.Value], combinedCancellationSource.Token))
{
// We're able to handle the file change event without doing a full-rebuild.
continue;
Expand Down Expand Up @@ -131,7 +131,7 @@ public override async Task WatchAsync(CancellationToken cancellationToken)
Debug.Assert(finishedTask == fileSetTask);
changedFile = fileSetTask.Result;
Debug.Assert(changedFile != null, "ChangedFile should only be null when cancelled");
Context.Reporter.Output($"File changed: {changedFile.Value.FilePath}");
Context.Reporter.Output($"File changed: {changedFile.Value.Item.FilePath}");
}
}
}
Expand Down
6 changes: 4 additions & 2 deletions src/BuiltInTools/dotnet-watch/FileItem.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

using Microsoft.DotNet.Watcher.Internal;

namespace Microsoft.DotNet.Watcher
{
internal readonly struct FileItem
internal readonly record struct FileItem
{
public string FilePath { get; init; }

Expand All @@ -14,7 +16,7 @@ internal readonly struct FileItem

public string? StaticWebAssetPath { get; init; }

public bool IsNewFile { get; init; }
public ChangeKind Change { get; init; }

public bool IsStaticFile => StaticWebAssetPath != null;
}
Expand Down
4 changes: 2 additions & 2 deletions src/BuiltInTools/dotnet-watch/Filters/BuildEvaluator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,15 @@ public IReadOnlyList<string> GetProcessArguments(int iteration)
return [context.RootProjectOptions.Command, .. context.RootProjectOptions.CommandArguments];
}

public async ValueTask<EvaluationResult> EvaluateAsync(FileItem? changedFile, CancellationToken cancellationToken)
public async ValueTask<EvaluationResult> EvaluateAsync(ChangedFile? changedFile, CancellationToken cancellationToken)
{
if (context.EnvironmentOptions.SuppressMSBuildIncrementalism)
{
RequiresRevaluation = true;
return _evaluationResult = await CreateEvaluationResult(cancellationToken);
}

if (_evaluationResult == null || RequiresMSBuildRevaluation(changedFile))
if (_evaluationResult == null || RequiresMSBuildRevaluation(changedFile?.Item))
{
RequiresRevaluation = true;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,20 +1,15 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.Host;
using Microsoft.CodeAnalysis.ExternalAccess.Watch.Api;
using Microsoft.CodeAnalysis.Host.Mef;
using Microsoft.CodeAnalysis.MSBuild;
using Microsoft.Extensions.Tools.Internal;
using Microsoft.CodeAnalysis.ExternalAccess.Watch.Api;
using System.Collections.Immutable;
using Microsoft.CodeAnalysis.Text;
using Microsoft.DotNet.Watcher.Internal;
using Microsoft.Extensions.Tools.Internal;

namespace Microsoft.DotNet.Watcher.Tools;

Expand Down Expand Up @@ -106,13 +101,24 @@ ImmutableArray<DocumentInfo> MapDocuments(ProjectId mappedProjectId, IReadOnlyLi
}).ToImmutableArray();
}

public async ValueTask UpdateFileContentAsync(IEnumerable<FileItem> changedFiles, CancellationToken cancellationToken)
public async ValueTask UpdateFileContentAsync(IEnumerable<ChangedFile> changedFiles, CancellationToken cancellationToken)
{
var updatedSolution = CurrentSolution;

foreach (var changedFile in changedFiles)
var documentsToRemove = new List<DocumentId>();

foreach (var (changedFile, change) in changedFiles)
{
// when a file is added we reevaluate the project:
Debug.Assert(change != ChangeKind.Add);

var documentIds = updatedSolution.GetDocumentIdsWithFilePath(changedFile.FilePath);
if (change == ChangeKind.Delete)
{
documentsToRemove.AddRange(documentIds);
continue;
}

foreach (var documentId in documentIds)
{
var textDocument = updatedSolution.GetDocument(documentId)
Expand Down Expand Up @@ -140,9 +146,17 @@ public async ValueTask UpdateFileContentAsync(IEnumerable<FileItem> changedFiles
}
}

updatedSolution = RemoveDocuments(updatedSolution, documentsToRemove);

await ReportSolutionFilesAsync(SetCurrentSolution(updatedSolution), cancellationToken);
}

private static Solution RemoveDocuments(Solution solution, IEnumerable<DocumentId> ids)
=> solution
.RemoveDocuments(ids.Where(id => solution.GetDocument(id) != null).ToImmutableArray())
.RemoveAdditionalDocuments(ids.Where(id => solution.GetAdditionalDocument(id) != null).ToImmutableArray())
.RemoveAnalyzerConfigDocuments(ids.Where(id => solution.GetAnalyzerConfigDocument(id) != null).ToImmutableArray());

private static async ValueTask<SourceText> GetSourceTextAsync(string filePath, CancellationToken cancellationToken)
{
var zeroLengthRetryPerformed = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
using System.Collections;
using System.Diagnostics;
using Microsoft.Build.Graph;
using Microsoft.DotNet.Watcher.Internal;
using Microsoft.Extensions.Tools.Internal;

namespace Microsoft.DotNet.Watcher.Tools
Expand All @@ -13,14 +14,14 @@ internal sealed class ScopedCssFileHandler(IReporter reporter, ProjectNodeMap pr
{
private const string BuildTargetName = "GenerateComputedBuildStaticWebAssets";

public async ValueTask HandleFileChangesAsync(IReadOnlyList<FileItem> files, CancellationToken cancellationToken)
public async ValueTask HandleFileChangesAsync(IReadOnlyList<ChangedFile> files, CancellationToken cancellationToken)
{
var projectsToRefresh = new HashSet<ProjectGraphNode>();
var hasApplicableFiles = false;

for (int i = 0; i < files.Count; i++)
{
var file = files[i];
var file = files[i].Item;

if (!file.FilePath.EndsWith(".razor.css", StringComparison.Ordinal) &&
!file.FilePath.EndsWith(".cshtml.css", StringComparison.Ordinal))
Expand Down
5 changes: 3 additions & 2 deletions src/BuiltInTools/dotnet-watch/HotReload/StaticFileHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
using System.Text.Json;
using System.Text.Json.Serialization;
using Microsoft.CodeAnalysis.StackTraceExplorer;
using Microsoft.DotNet.Watcher.Internal;
using Microsoft.Extensions.Tools.Internal;

namespace Microsoft.DotNet.Watcher.Tools
Expand All @@ -18,13 +19,13 @@ internal sealed class StaticFileHandler(IReporter reporter, ProjectNodeMap proje
DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull
};

public async ValueTask<bool> HandleFileChangesAsync(IReadOnlyList<FileItem> files, CancellationToken cancellationToken)
public async ValueTask<bool> HandleFileChangesAsync(IReadOnlyList<ChangedFile> files, CancellationToken cancellationToken)
{
var allFilesHandled = true;
var refreshRequests = new Dictionary<BrowserRefreshServer, List<string>>();
for (int i = 0; i < files.Count; i++)
{
var file = files[i];
var file = files[i].Item;

if (file.StaticWebAssetPath is null)
{
Expand Down
Loading
Loading