Skip to content

Commit b045f08

Browse files
committed
Preparing for release
1 parent 1701bef commit b045f08

6 files changed

Lines changed: 29 additions & 23 deletions

File tree

CustomGeneratorTests/CustomGeneratorTests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
<EnforceExtendedAnalyzerRules>true</EnforceExtendedAnalyzerRules>
77
</PropertyGroup>
88
<ItemGroup>
9-
<PackageReference Include="GodotSharp.SourceGenerators" Version="2.3.1-231211-0953.Release" />
9+
<PackageReference Include="GodotSharp.SourceGenerators" Version="2.3.1" />
1010
</ItemGroup>
1111
</Project>

Godot 3 Tests/Godot 3 Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
</ItemGroup>
1010
<ItemGroup>
1111
<PackageReference Include="FluentAssertions" Version="6.12.0" />
12-
<PackageReference Include="GodotSharp.SourceGenerators" Version="2.3.1-231211-0953.Release" />
12+
<PackageReference Include="GodotSharp.SourceGenerators" Version="2.3.1" />
1313
</ItemGroup>
1414
<ItemGroup>
1515
<ProjectReference Include="..\CustomGeneratorTests\CustomGeneratorTests.csproj" OutputItemType="analyzer" />

Godot 4 Tests/Godot 4 Tests.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<Project Sdk="Godot.NET.Sdk/4.2.0-rc.1">
1+
<Project Sdk="Godot.NET.Sdk/4.2.0">
22
<PropertyGroup>
33
<LangVersion>preview</LangVersion>
44
<TargetFramework>net8.0</TargetFramework>
@@ -11,7 +11,7 @@
1111
</ItemGroup>
1212
<ItemGroup>
1313
<PackageReference Include="FluentAssertions" Version="6.12.0" />
14-
<PackageReference Include="GodotSharp.SourceGenerators" Version="2.3.1-231211-0953.Release" />
14+
<PackageReference Include="GodotSharp.SourceGenerators" Version="2.3.1" />
1515
</ItemGroup>
1616
<ItemGroup>
1717
<ProjectReference Include="..\CustomGeneratorTests\CustomGeneratorTests.csproj" OutputItemType="analyzer" />

Godot 4 Tests/Run.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ private static IEnumerable<Func<ITest>> Tests
3535
yield return ITest.GetTest<InstancingSceneWithoutScript>;
3636
yield return ITest.GetTest<InstantiateTests>;
3737
yield return ITest.GetTest<LoadAsPlaceholderTest>;
38+
#if TOOLS
3839
yield return ITest.GetTest<OnImportTests>;
40+
#endif
3941
yield return ITest.GetTest<PathTooLongError>;
4042
yield return ITest.GetTest<RootScene>;
4143
yield return ITest.GetTest<RootSceneWithNoNamespace>;

Godot 4 Tests/TestScenes/Feature31.OnImportAttribute/OnImportTests.cs

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
1+
#if TOOLS
2+
using System.ComponentModel;
3+
using System.Linq;
4+
using FluentAssertions;
15
using Godot;
6+
using Godot.Collections;
27
using GodotSharp.BuildingBlocks.TestRunner;
8+
using static GodotTests.TestScenes.OnImportTests;
39

410
namespace GodotTests.TestScenes
511
{
612
[SceneTree]
713
public partial class OnImportTests : Node, ITest
814
{
9-
#if TOOLS
1015
public enum IntEnum : int { a, b, c }
1116
public enum LongEnum : long { a, b, c }
1217

@@ -56,7 +61,7 @@ static void CallImportWithOptions(EditorImportPlugin plugin)
5661
foreach (var item in plugin._GetImportOptions(default, default))
5762
options.Add(item["name"], item["default_value"]);
5863

59-
plugin._Import("res://somepath/MySourceFile.obj", ".import/somepath/MySavePath", options, new(), new());
64+
plugin._Import("res://somepath/MySourceFile.obj", ".import/somepath/MySavePath", options, [], []);
6065
}
6166

6267
static void CheckCommon(EditorImportPlugin plugin, string importerName, string displayName, string[] recognizedExtensions, string[] presets)
@@ -144,9 +149,8 @@ public static Error SaveTestScene(string savePath)
144149
// ok
145150
return Error.Ok;
146151
}
147-
#endif
148152
}
149-
#if TOOLS
153+
150154
[Tool]
151155
internal partial class OnImportWithAllArgs : OnImportEditorPlugin
152156
{
@@ -277,5 +281,5 @@ private string DefaultDfltStrNull(string path, int preset)
277281
return Error.Ok;
278282
}
279283
}
280-
#endif
281284
}
285+
#endif

SourceGenerators/SourceGenerators.csproj

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,27 +16,27 @@
1616
<Description>
1717
C# Source Generators for use with the Godot Game Engine (supports Godot 4 and .NET 8!)
1818
* `SceneTree` class attribute:
19-
* Generates class property for uniquely named nodes
20-
* Provides strongly typed access to the scene hierarchy (via `_` operator)
19+
-- Generates class property for uniquely named nodes
20+
-- Provides strongly typed access to the scene hierarchy (via `_` operator)
2121
* `GodotOverride` method attribute:
22-
* Allows use of On*, instead of virtual _* overrides
23-
* (Requires partial method declaration for use with Godot 4.0)
22+
-- Allows use of On*, instead of virtual _* overrides
23+
-- (Requires partial method declaration for use with Godot 4.0)
2424
* `Notify` property attribute:
25-
* Generates boiler plate code, triggering only when values differ
26-
* (Automagically triggers nested changes for Resource and Resource[])
25+
-- Generates boiler plate code, triggering only when values differ
26+
-- (Automagically triggers nested changes for Resource and Resource[])
2727
* `InputMap` class attribute:
28-
* Provides strongly typed access to project input actions
28+
-- Provides strongly typed access to project input actions
2929
* `CodeComments` class attribute:
30-
* Provides a nested static class to access property comments from code (useful for in-game tooltips, etc)
30+
-- Provides a nested static class to access property comments from code (useful for in-game tooltips, etc)
3131
* `OnInstantiate` method attribute:
32-
* Generates a static Instantiate method with matching args that calls attributed method as part of the instantiation process
33-
* (Also generates a protected constructor to ensure proper initialisation - can be deactivated via attribute)
32+
-- Generates a static Instantiate method with matching args that calls attributed method as part of the instantiation process
33+
-- (Also generates a protected constructor to ensure proper initialisation - can be deactivated via attribute)
3434
* `OnImport` method attribute (GD4 only):
35-
* Generates default plugin overrides and options to make plugin class cleaner (inherit from OnImportEditorPlugin)
35+
-- Generates default plugin overrides and options to make plugin class cleaner (inherit from OnImportEditorPlugin)
3636
* Includes base classes/helpers to create project specific source generators
3737
</Description>
3838
<PackageReleaseNotes>
39-
v.2.3.1 (prerelease)
39+
v.2.3.1
4040
- ADDED: Support for .NET 8.0
4141
- ADDED: OnImport attribute for editor only builds (GD4 only)
4242

@@ -79,8 +79,8 @@ C# Source Generators for use with the Godot Game Engine (supports Godot 4 and .N
7979
<PackageLicenseExpression>MIT</PackageLicenseExpression>
8080
<PackageTags>Godot C# SourceGenerator</PackageTags>
8181
<PackageReadmeFile>README.md</PackageReadmeFile>
82-
<!--<Version>2.3.0</Version>-->
83-
<Version>2.3.1-$([System.DateTime]::Now.ToString(yyMMdd-HHmm)).$(Configuration)</Version>
82+
<Version>2.3.1</Version>
83+
<!--<Version>2.3.1-$([System.DateTime]::Now.ToString(yyMMdd-HHmm)).$(Configuration)</Version>-->
8484
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
8585
</PropertyGroup>
8686
<ItemGroup>

0 commit comments

Comments
 (0)