Skip to content

Commit 70ab6b6

Browse files
authored
Add roslyn patch
1 parent bdde954 commit 70ab6b6

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
From 3947cd2577d601a06cdf3d859c62f8b55c91b623 Mon Sep 17 00:00:00 2001
2+
From: Viktor Hofer <viktor.hofer@microsoft.com>
3+
Date: Wed, 18 Dec 2024 14:38:02 +0100
4+
Subject: [PATCH] FIx build errors with newer toolset and dependencies
5+
6+
Fixes the following two errors:
7+
- src/Features/Core/Portable/ExternalAccess/Watch/Api/WatchHotReloadService.cs(217,13): error CS1503: Argument 4: cannot convert from 'System.Collections.Immutable.ImmutableHashSet<Microsoft.CodeAnalysis.Project>' to 'System.Collections.Generic.IReadOnlySet<Microsoft.CodeAnalysis.Project>' [src/Features/Core/Portable/Microsoft.CodeAnalysis.Features.csproj::TargetFramework=net9.0]
8+
- src/roslyn/src/Features/Core/Portable/ExternalAccess/Watch/Api/WatchHotReloadService.cs(218,13): error CS1503: Argument 5: cannot convert from 'System.Collections.Immutable.ImmutableHashSet<Microsoft.CodeAnalysis.Project>' to 'System.Collections.Generic.IReadOnlySet<Microsoft.CodeAnalysis.Project>' [src/roslyn/src/Features/Core/Portable/Microsoft.CodeAnalysis.Features.csproj::TargetFramework=net9.0]
9+
10+
The underlying SDK being used is "10.0.100-alpha.1.24555.54"
11+
12+
Backport: https://github.com/dotnet/roslyn/pull/76486
13+
14+
---
15+
.../ExternalAccess/Watch/Api/WatchHotReloadService.cs | 4 ++--
16+
1 file changed, 2 insertions(+), 2 deletions(-)
17+
18+
diff --git a/src/Features/Core/Portable/ExternalAccess/Watch/Api/WatchHotReloadService.cs b/src/Features/Core/Portable/ExternalAccess/Watch/Api/WatchHotReloadService.cs
19+
index 2173339e29b..b7cfb0356df 100644
20+
--- a/src/Features/Core/Portable/ExternalAccess/Watch/Api/WatchHotReloadService.cs
21+
+++ b/src/Features/Core/Portable/ExternalAccess/Watch/Api/WatchHotReloadService.cs
22+
@@ -68,8 +68,8 @@ public readonly struct Updates(
23+
ModuleUpdateStatus status,
24+
ImmutableArray<Diagnostic> diagnostics,
25+
ImmutableArray<Update> projectUpdates,
26+
- IReadOnlySet<Project> projectsToRestart,
27+
- IReadOnlySet<Project> projectsToRebuild)
28+
+ ImmutableHashSet<Project> projectsToRestart,
29+
+ ImmutableHashSet<Project> projectsToRebuild)
30+
{
31+
/// <summary>
32+
/// Status of the updates.

0 commit comments

Comments
 (0)