Skip to content

Commit 77d616d

Browse files
Fix RS1038 Warning: Compiler extensions should be implemented in assemblies with compiler-provided references (#390)
Update NuGet Packages, Add WarningsAsErrors Rule
1 parent e1f768f commit 77d616d

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

Directory.Build.props

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@
6666
NU1905 An audit source does not provide a vulnerability database
6767
NUnit*: NUnit Analyzers
6868
IL2***: Trim Warnings
69-
IL3***: AOT Warnings-->
69+
IL3***: AOT Warnings
70+
RS1038: Compiler extensions should be implemented in assemblies with compiler-provided references-->
7071
<WarningsAsErrors>
7172
nullable,
7273
CS0419,CS0618,CS1570,CS1571,CS1572,CS1573,CS1574,CS1580,CS1581,CS1584,CS1587,CS1589,CS1590,CS1591,CS1592,CS1598,CS1658,CS1710,CS1711,CS1712,CS1723,CS1734,
@@ -91,7 +92,8 @@
9192
IL2100,IL2101,IL2102,IL2103,IL2104,IL2105,IL2106,IL2107,IL2108,IL2109,
9293
IL2110,IL2111,IL2112,IL2113,IL2114,IL2115,IL2116,IL2117,IL2118,IL2119,
9394
IL2120,IL2121,IL2122,
94-
IL3050,IL3051,IL3052,IL3053,IL3054,IL3055,IL3056
95+
IL3050,IL3051,IL3052,IL3053,IL3054,IL3055,IL3056,
96+
RS1038
9597
</WarningsAsErrors>
9698
</PropertyGroup>
9799

src/CommunityToolkit.Maui.Markup.SourceGenerators/CommunityToolkit.Maui.Markup.SourceGenerators.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
</PropertyGroup>
99

1010
<ItemGroup>
11-
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="4.13.0" PrivateAssets="all" />
11+
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.14.0" PrivateAssets="all" />
1212
<PackageReference Include="PolySharp" Version="1.15.0" PrivateAssets="all" IncludeAssets="build; analyzers" />
1313
</ItemGroup>
1414

0 commit comments

Comments
 (0)