Skip to content

Commit 5b58d1d

Browse files
Add roslynator analyzers to all projects
1 parent 5b05713 commit 5b58d1d

12 files changed

Lines changed: 81 additions & 51 deletions

File tree

Lines changed: 32 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,37 @@
11
<Project Sdk="Microsoft.NET.Sdk">
2-
<PropertyGroup>
3-
<TargetFramework>net10.0</TargetFramework>
4-
<LangVersion>latest</LangVersion>
5-
<ImplicitUsings>disable</ImplicitUsings>
6-
<Nullable>enable</Nullable>
7-
<RootNamespace>GodotUtils</RootNamespace>
8-
<OutputPath>$(SolutionDir)bin\</OutputPath>
9-
<GenerateDocumentationFile>True</GenerateDocumentationFile>
10-
<!-- CS1591: Ignore missing XML comment warnings -->
11-
<!-- IDE0130: Ignore invalid namespace name warnings -->
12-
<!-- IDE0290: Ignore primary constructor suggestions -->
13-
<NoWarn>CS1591;IDE0130;IDE0290;</NoWarn>
14-
<!-- <DefineConstants>$(DefineConstants);NETCODE_ENABLED</DefineConstants> -->
15-
</PropertyGroup>
2+
<PropertyGroup>
3+
<TargetFramework>net10.0</TargetFramework>
4+
<LangVersion>latest</LangVersion>
5+
<ImplicitUsings>disable</ImplicitUsings>
6+
<Nullable>enable</Nullable>
7+
<RootNamespace>GodotUtils</RootNamespace>
8+
<OutputPath>$(SolutionDir)bin\</OutputPath>
9+
<GenerateDocumentationFile>True</GenerateDocumentationFile>
10+
<!-- CS1591: Ignore missing XML comment warnings -->
11+
<!-- IDE0130: Ignore invalid namespace name warnings -->
12+
<!-- IDE0290: Ignore primary constructor suggestions -->
13+
<NoWarn>CS1591;IDE0130;IDE0290;</NoWarn>
14+
<!-- <DefineConstants>$(DefineConstants);NETCODE_ENABLED</DefineConstants> -->
15+
</PropertyGroup>
1616

17-
<ItemGroup>
18-
<!-- Conditional ENet package -->
19-
<PackageReference Include="ENet-CSharp" Version="2.4.8" Condition="!Exists('ENet-CSharp.dll')" />
20-
<!-- JSON support -->
21-
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
22-
<PackageReference Include="GodotSharp" Version="4.6.1" />
23-
</ItemGroup>
17+
<ItemGroup>
18+
<!-- Conditional ENet package -->
19+
<PackageReference Include="ENet-CSharp" Version="2.4.8" Condition="!Exists('ENet-CSharp.dll')" />
20+
<!-- JSON support -->
21+
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
22+
<PackageReference Include="GodotSharp" Version="4.6.1" />
2423

25-
<!-- Local ENet DLL -->
26-
<ItemGroup>
27-
<Reference Include="ENet-CSharp" Condition="Exists('ENet-CSharp.dll')">
28-
<HintPath>ENet-CSharp.dll</HintPath>
29-
</Reference>
30-
</ItemGroup>
24+
<PackageReference Include="Roslynator.Analyzers" Version="4.15.0">
25+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
26+
<PrivateAssets>all</PrivateAssets>
27+
</PackageReference>
28+
</ItemGroup>
29+
30+
<!-- Local ENet DLL -->
31+
<ItemGroup>
32+
<Reference Include="ENet-CSharp" Condition="Exists('ENet-CSharp.dll')">
33+
<HintPath>ENet-CSharp.dll</HintPath>
34+
</Reference>
35+
</ItemGroup>
3136

3237
</Project>

Template.OptionsGen/OptionsGen/OptionsGen.csproj

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<NoWarn>NU5128</NoWarn>
1313

1414
<!-- Package Settings -->
15-
<Version>1.0.8</Version>
15+
<Version>1.0.9</Version>
1616
<PackageId>Template.OptionsGen</PackageId>
1717
<AssemblyName>Template.OptionsGen</AssemblyName>
1818
<Description>Strongly typed options settings source generator for CSharpGodotTools/Template</Description>
@@ -26,6 +26,11 @@
2626
<ItemGroup>
2727
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.3.0" PrivateAssets="all" />
2828

29+
<PackageReference Include="Roslynator.Analyzers" Version="4.15.0">
30+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
31+
<PrivateAssets>all</PrivateAssets>
32+
</PackageReference>
33+
2934
<None Include="..\README.md" Pack="true" PackagePath="\" />
3035
<None Include="$(OutputPath)\$(AssemblyName).dll" Pack="true" PackagePath="analyzers/dotnet/cs" Visible="false" />
3136
</ItemGroup>

Template.PacketGen/PacketGen.Tests/PacketGen.Tests.csproj

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@
2424
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="5.0.0" />
2525
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.SourceGenerators.Testing" Version="1.1.3" />
2626
<PackageReference Include="GodotSharp" Version="4.6.0" />
27+
28+
<PackageReference Include="Roslynator.Analyzers" Version="4.15.0">
29+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
30+
<PrivateAssets>all</PrivateAssets>
31+
</PackageReference>
2732
</ItemGroup>
2833

2934
<ItemGroup>

Template.PacketGen/PacketGen/PacketGen.csproj

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<NoWarn>NU5128</NoWarn> <!-- Pure analzyer project does not require lib assemblies -->
1313

1414
<!-- Package Settings -->
15-
<Version>1.3.24</Version>
15+
<Version>1.3.25</Version>
1616
<!--<Version>1.0.$([System.Math]::Floor($([MSBuild]::Divide($([System.DateTimeOffset]::UtcNow.ToUnixTimeSeconds()), 86400)))).$([MSBuild]::Divide($([MSBuild]::Modulo($([System.DateTimeOffset]::UtcNow.ToUnixTimeSeconds()), 86400)), 2))</Version>-->
1717
<Description>Source generators for CSharpGodotTools/Template</Description>
1818
<Authors>Valkyrienyanko</Authors>
@@ -27,6 +27,11 @@
2727
<!-- Package References -->
2828
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.3.0" PrivateAssets="all" />
2929

30+
<PackageReference Include="Roslynator.Analyzers" Version="4.15.0">
31+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
32+
<PrivateAssets>all</PrivateAssets>
33+
</PackageReference>
34+
3035
<!-- Package Dependencies -->
3136
<None Include="..\README.md" Pack="true" PackagePath="\" />
3237
<None Include="$(OutputPath)\$(AssemblyName).dll" Pack="true" PackagePath="analyzers/dotnet/cs" Visible="false" />
Lines changed: 25 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,29 @@
11
<Project Sdk="Godot.NET.Sdk/4.6.2">
2-
<PropertyGroup>
3-
<TargetFramework>net10.0</TargetFramework>
4-
<LangVersion>latest</LangVersion>
5-
<ImplicitUsings>disable</ImplicitUsings>
6-
<Nullable>enable</Nullable>
7-
<TargetFramework Condition=" '$(GodotTargetPlatform)' == 'android' ">net9.0</TargetFramework>
8-
<EnableDynamicLoading>true</EnableDynamicLoading>
9-
<GenerateDocumentationFile>True</GenerateDocumentationFile>
10-
<!-- CS1591: Ignore missing XML comment warnings -->
11-
<!-- IDE0130: Ignore invalid namespace name warnings -->
12-
<NoWarn>CS1591;IDE0130</NoWarn>
13-
</PropertyGroup>
14-
<ItemGroup>
15-
<PackageReference Include="ENet-CSharp" Version="2.4.8" />
16-
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
17-
<PackageReference Include="GodotSharp.SourceGenerators" Version="2.4.0" />
2+
<PropertyGroup>
3+
<TargetFramework>net10.0</TargetFramework>
4+
<LangVersion>latest</LangVersion>
5+
<ImplicitUsings>disable</ImplicitUsings>
6+
<Nullable>enable</Nullable>
7+
<TargetFramework Condition=" '$(GodotTargetPlatform)' == 'android' ">net9.0</TargetFramework>
8+
<EnableDynamicLoading>true</EnableDynamicLoading>
9+
<GenerateDocumentationFile>True</GenerateDocumentationFile>
10+
<!-- CS1591: Ignore missing XML comment warnings -->
11+
<!-- IDE0130: Ignore invalid namespace name warnings -->
12+
<NoWarn>CS1591;IDE0130</NoWarn>
13+
</PropertyGroup>
14+
<ItemGroup>
15+
<PackageReference Include="ENet-CSharp" Version="2.4.8" />
16+
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
17+
<PackageReference Include="GodotSharp.SourceGenerators" Version="2.4.0" />
1818

19-
<Reference Include="GodotUtils">
20-
<HintPath>Framework\Libraries\GodotUtils.dll</HintPath>
21-
</Reference>
22-
</ItemGroup>
19+
<Reference Include="GodotUtils">
20+
<HintPath>Framework\Libraries\GodotUtils.dll</HintPath>
21+
</Reference>
22+
23+
<PackageReference Include="Roslynator.Analyzers" Version="4.15.0">
24+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
25+
<PrivateAssets>all</PrivateAssets>
26+
</PackageReference>
27+
</ItemGroup>
2328

2429
</Project>
0 Bytes
Binary file not shown.
-27.1 KB
Binary file not shown.
28.4 KB
Binary file not shown.
-11.9 KB
Binary file not shown.
11.9 KB
Binary file not shown.

0 commit comments

Comments
 (0)