From 7cb9fb458c533d0ba183ae84563167b365df7145 Mon Sep 17 00:00:00 2001 From: Viktor Hofer Date: Wed, 18 Dec 2024 14:38:02 +0100 Subject: [PATCH] FIx build errors with newer toolset and dependencies Fixes the following two errors: - src/Features/Core/Portable/ExternalAccess/Watch/Api/WatchHotReloadService.cs(217,13): error CS1503: Argument 4: cannot convert from 'System.Collections.Immutable.ImmutableHashSet' to 'System.Collections.Generic.IReadOnlySet' [src/Features/Core/Portable/Microsoft.CodeAnalysis.Features.csproj::TargetFramework=net9.0] - src/roslyn/src/Features/Core/Portable/ExternalAccess/Watch/Api/WatchHotReloadService.cs(218,13): error CS1503: Argument 5: cannot convert from 'System.Collections.Immutable.ImmutableHashSet' to 'System.Collections.Generic.IReadOnlySet' [src/roslyn/src/Features/Core/Portable/Microsoft.CodeAnalysis.Features.csproj::TargetFramework=net9.0] The underlying SDK being used is "10.0.100-alpha.1.24555.54" --- src/Compilers/Core/Portable/Microsoft.CodeAnalysis.csproj | 4 ++-- .../Core/Portable/Microsoft.CodeAnalysis.Features.csproj | 2 +- .../Core/Portable/Microsoft.CodeAnalysis.Workspaces.csproj | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Compilers/Core/Portable/Microsoft.CodeAnalysis.csproj b/src/Compilers/Core/Portable/Microsoft.CodeAnalysis.csproj index 94c47e9a01e9e..e946b3ad4905a 100644 --- a/src/Compilers/Core/Portable/Microsoft.CodeAnalysis.csproj +++ b/src/Compilers/Core/Portable/Microsoft.CodeAnalysis.csproj @@ -31,9 +31,9 @@ will import everything but content files from Microsoft.CodeAnalysis.Analyzers, specifically, analyzers. --> - + - + diff --git a/src/Features/Core/Portable/Microsoft.CodeAnalysis.Features.csproj b/src/Features/Core/Portable/Microsoft.CodeAnalysis.Features.csproj index c3729dd724429..48a5d9c53a700 100644 --- a/src/Features/Core/Portable/Microsoft.CodeAnalysis.Features.csproj +++ b/src/Features/Core/Portable/Microsoft.CodeAnalysis.Features.csproj @@ -139,7 +139,7 @@ - + diff --git a/src/Workspaces/Core/Portable/Microsoft.CodeAnalysis.Workspaces.csproj b/src/Workspaces/Core/Portable/Microsoft.CodeAnalysis.Workspaces.csproj index 7ddf1ce681c17..9e889061c8318 100644 --- a/src/Workspaces/Core/Portable/Microsoft.CodeAnalysis.Workspaces.csproj +++ b/src/Workspaces/Core/Portable/Microsoft.CodeAnalysis.Workspaces.csproj @@ -29,8 +29,8 @@ since it's now automatic, and Source Build will ensure we get a proper one automatically if we do nothing; if we reference the older version then source build may only give us a reference assembly would fail if we then try to actually run that output. --> - - + +