Skip to content

Commit 9df4e77

Browse files
committed
use System.Collections.Immutable 5.0.0
work-around for assembly mismatch and missing method exception when building in environments that have System.Collections.Immutable 5.0.0 loaded at source generator runtime
1 parent c15b24d commit 9df4e77

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

XmlSchemaClassGenerator.SourceGenerator/XmlSchemaClassGenerator.SourceGenerator.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
<PackageReference Include="System.Text.Encoding.CodePages" Version="6.0.0" PrivateAssets="all" GeneratePathProperty="true" />
3939
<PackageReference Include="System.Runtime.CompilerServices.Unsafe" Version="6.0.0" PrivateAssets="all" GeneratePathProperty="true" />
4040
<PackageReference Include="System.ValueTuple" Version="4.5.0" PrivateAssets="all" GeneratePathProperty="true" />
41-
<PackageReference Include="System.Collections.Immutable" Version="6.0.0" PrivateAssets="all" GeneratePathProperty="true" />
41+
<PackageReference Include="System.Collections.Immutable" Version="5.0.0" PrivateAssets="all" GeneratePathProperty="true" />
4242
<PackageReference Include="System.Memory" Version="4.5.4" PrivateAssets="all" GeneratePathProperty="true" />
4343
</ItemGroup>
4444

XmlSchemaClassGenerator/XmlSchemaClassGenerator.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848

4949
<ItemGroup>
5050
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All" />
51-
<PackageReference Include="System.Collections.Immutable" Version="6.0.0" />
51+
<PackageReference Include="System.Collections.Immutable" Version="5.0.0" />
5252
<PackageReference Include="System.Text.Encoding.CodePages" Version="6.0.0" />
5353
<PackageReference Include="System.ValueTuple" Version="4.5.0" />
5454
</ItemGroup>

0 commit comments

Comments
 (0)