Thaddeus Crews
2161217ed6
Merge pull request #104219 from van800/source_gen_fix
...
C#: Fix source generator for primary constructor
2025-03-24 10:00:59 -05:00
Thaddeus Crews
1cb3cfaa8e
Style: Convert namespaces to PascalCase
2025-03-23 19:10:24 -05:00
Ivan Shakhov
724c0021c7
fix https://github.com/godotengine/godot/issues/104135 Generator for C# makes illegal code for a GodotObject with a primary ctor
...
Co-authored-by: Raul Santos <raulsntos@gmail.com >
2025-03-21 08:34:25 -07:00
Thaddeus Crews
a9065db5ad
Merge pull request #104130 from KoBeWi/are_tools_enabled_when_tools_are_enabled
...
Remove `TOOLS_ENABLED` checks from `editor/`
2025-03-17 10:52:25 -05:00
Raul Santos
2213545fc5
[.NET] Deprecate compat methods that reference deprecated types
2025-03-14 21:33:33 +01:00
kobewi
7cb2fb189a
Remove TOOLS_ENABLED checks from editor/
2025-03-14 18:13:16 +01:00
Thaddeus Crews
b377562b52
Merge pull request #91660 from AThousandShips/methodinfo_vec
...
[Core] Use `Vector` for `MethodInfo::arguments`
2025-03-14 10:06:13 -05:00
Aaron Franke
6c9087fb5a
Fix missing Vector4(i) and Projection in C# bindings generator
2025-03-13 19:04:47 -07:00
Aaron Franke
97ee05e9b7
Rename version defines to GODOT_VERSION_* to match GDExtension godot-cpp
2025-03-12 11:11:38 -07:00
Thaddeus Crews
e1b9048ae4
Merge pull request #103536 from raulsntos/dotnet/shipped-diagnostics
...
Move entries from `AnalyzerReleases.Unshipped.md` to `AnalyzerReleases.Shipped.md`
2025-03-11 09:34:51 -05:00
A Thousand Ships
d9721954e6
[Core] Use Vector for MethodInfo::arguments
2025-03-10 13:57:53 +01:00
A Thousand Ships
331a43a9d8
Add String::remove_char(s) methods for performance and convenience
2025-03-10 13:19:28 +01:00
Thaddeus Crews
324512e11c
Style: Replace header guards with #pragma once
2025-03-07 17:33:47 -06:00
Thaddeus Crews
850599c36d
Merge pull request #98153 from Delsin-Yu/dotnet-warn-missing-tool-preprocessor
...
[Editor] Prevent `TOOLS` .Net DefineConstants being overriden by the user
2025-03-07 15:12:49 -06:00
Thaddeus Crews
3c43508ed7
Merge pull request #102427 from AThousandShips/fix_substr
...
Clean up some uses of `String::substr`
2025-03-07 15:12:33 -06:00
Thaddeus Crews
0c8f4f3d91
Merge pull request #97908 from atlasapplications/just-linux-bionic
...
Add `linux-bionic` RID export option
2025-03-07 15:12:32 -06:00
A Thousand Ships
5113022dfe
Clean up some uses of String::substr
...
Cases where the end position is either equvalent to the default or past
the end of the string.
2025-03-07 14:50:38 +01:00
Raul Santos
57d5b664d3
[.NET] Skip re-saving .csproj when TFM is unchanged
...
Avoids updating the platform-specific `TargetFramework` properties if they already match the minimum required version.
2025-03-06 18:49:08 +01:00
Raul Santos
7dcad4c9ad
Move entries from AnalyzerReleases.Unshipped.md to AnalyzerReleases.Shipped.md
2025-03-04 00:35:42 +01:00
Rémi Verschelde
1c35a31b9e
Bump version to 4.5-dev
...
Mr. Godot told me to tell you he won't come this evening but surely tomorrow.
2025-03-03 17:27:40 +01:00
Pāvels Nadtočajevs
ddd807ff7d
Add (void *) cast directly to GetProcAddress calls.
2025-02-27 12:30:04 +02:00
DE-YU_H14
b2b7c1fd77
Force include TOOLS in Editor to prevent data loss
...
Update modules/mono/editor/Godot.NET.Sdk/Godot.NET.Sdk/Sdk/Sdk.targets
Co-authored-by: Raul Santos <raulsntos@gmail.com >
2025-02-23 05:54:27 +08:00
Rémi Verschelde
7a0e659a80
Merge pull request #102836 from raulsntos/dotnet/export-tool-button-no-storage
...
[.NET] Disallow `[ExportToolButton]` on members thay may store the Callable
2025-02-14 22:58:25 +01:00
Raul Santos
f4094b554d
[.NET] Disallow [ExportToolButton] on members thay may store the Callable
...
Ensures the user doesn't store the Callable so the .NET assembly can be reloaded.
2025-02-14 01:09:59 +01:00
Thaddeus Crews
c90fd7f3da
Merge pull request #98066 from TCROC/fix-android-mono-export
...
Fix Android mono export with 2 or more cpu architectures fails
2025-02-10 12:21:32 -06:00
Travis Lange
5e2fd7b1d7
fix android mono export causing conflicts
2025-02-10 10:09:52 -05:00
Justin Sasso
8a4bc9881f
Add linux-bionic RID Export Option
...
Adds an export option to enable the linux-bionic RID so Android can export with NativeAOT enabled.
2025-01-28 12:54:10 -05:00
Raul Santos
5a53ec55ec
[.NET] Add Obsolete attribute to signal trampolines and emitter functions
...
If a signal is deprecated, make sure we also add the `[Obsolete]` attribute to that signal's trampoline and emitter functions.
2025-01-24 02:18:28 +01:00
Thaddeus Crews
73278bf35d
SCons: Properly NoCache all text files
2025-01-16 16:59:12 -06:00
Yufeng Ying
34d8255947
Force build editor with regex module, remove checking code.
...
Fix include.
Co-authored-by: Rémi Verschelde <rverschelde@gmail.com >
2025-01-07 19:43:23 +08:00
Raul Santos
975369fceb
[.NET] Fix EmitSignal with typed array parameters
...
Signals with typed arrays were generating EmitSignal methods with untyped array parameters.
2024-12-20 06:51:09 +01:00
Raul Santos
8d41b5a582
[.NET] Upgrade user project's TargetFramework to net8.0
...
- Upgrades the TFM for new created projects to `net8.0`.
- Implements system to upgrade TFM for existing projects to `net8.0`.
2024-12-18 02:44:32 +01:00
Rémi Verschelde
cb0d731daf
Merge pull request #100351 from raulsntos/dotnet/android-gradle-fix
...
[.NET] Fix gradle builds for multiple ABIs
2024-12-17 22:59:58 +01:00
Paul Joannon
fb8553e4d7
Move to .NET8
...
- Change TFM and LangVersion
- Better exception throwing (CA1510, CA1512, CA1513)
- Better exception utility method definition (CA1859)
- Prefer comparing `.Count` over calling `.Any()` (CA1860)
- Prefer `.AsSpan()` over `.Substring()` (CA1846)
- Add a few more `scoped`
- Use `RuntimeHelpers.GetUninitializedObject()` instead of `FormatterServices.GetUninitializedObject()`
- Use delegate instead of delegate pointer in variant generic conversions
- Enable EnforceExtendedAnalyzerRules in source generator projects
- Disable CS8981 on structs named movable in Godot.NativeInterop
2024-12-13 14:00:13 +01:00
Raul Santos
d526d523b4
[.NET] Fix gradle builds for multiple ABIs
...
Include the needed .NET jar in the Godot templates so it's always available, then we don't need to include the jar from a .NET publish which could fail when exporting to multiple architectures because it would attempt to add the same jar for each architecture.
2024-12-13 08:01:13 +01:00
RedworkDE
f0b6b24d9e
C#: Update to net7.0
...
Because of ref safety changes in the languages, all methods that return an interop struct have to have all other reference parameters marked as scoped to signal the the method does not capture that reference.
The variant change is necessary, because for some reason a type of the exact shape godot_variant is in, crashes the .NET 7 JIT, but when changing it to be sequential with the same effective layout it works.
2024-12-12 17:42:39 +01:00
Thaddeus Crews
57d08dbec3
C#: Fix warnings caught by new problem-matchers
...
• Restore MSVC problem matcher for Linux builds
2024-12-10 14:04:35 -06:00
Lukas Tenbrink
b5c31ebb41
Add contains_char() for single-character 'contains' calls.
2024-12-06 20:23:35 +01:00
Thaddeus Crews
ea3154a0d4
Merge pull request #99424 from dalexeev/core-fix-builtin-enum-const-binds
...
Core: Fix built-in enum constant bindings
2024-11-22 14:54:31 -06:00
Danil Alexeev
03b05cf9ac
Core: Fix built-in enum constant bindings
2024-11-22 14:03:21 +03:00
Raul Santos
4e5080d805
[.NET] Preserve no-hint behavior for unmarshallable generics in dictionaries
2024-11-21 20:38:55 +01:00
Thaddeus Crews
ec7fd4f6f1
Merge pull request #97894 from paulloz/dotnet/export-tool-button
...
Implement `[ExportToolButton]`
2024-11-19 15:20:07 -06:00
Paul Joannon
4f52c2bb1f
Implement [ExportToolButton]
2024-11-18 20:19:47 +01:00
Thaddeus Crews
1889d2a264
Merge pull request #99206 from a-johnston/fix_double_diagnostic
...
Remove duplicate read/write-only property warning from ScriptPropertiesGenerator
2024-11-18 09:23:30 -06:00
A Thousand Ships
68f638cf02
Use (r)find_char instead of (r)find for single characters
2024-11-17 10:02:18 +01:00
Adam Johnston
186f35fc9b
remove duplicate read/write only property warning from ScriptPropertiesGenerator
2024-11-13 14:23:53 -08:00
Thaddeus Crews
2705202ebb
Merge pull request #98459 from zaevi/fix_csharp_signal_parameters
...
C#: Escape signal parameters
2024-11-12 09:27:43 -06:00
Hugo Locurcio
9f2bd57b7b
Add Codium support to C# external editors
...
Selecting the VS Code option will now work if Codium is installed,
picking it as the last option after attempting to run VS Code.
2024-11-02 00:00:41 +01:00
Zae
2a3d400dd8
C#: Escape signal parameters
2024-10-23 23:24:00 +08:00
kobewi
5c0f2414cd
Always add decimal when printing float
2024-10-23 15:00:21 +02:00