summaryrefslogtreecommitdiffstats
path: root/modules/mono/editor/GodotTools
Commit message (Collapse)AuthorAgeFilesLines
* C#: Use dotnet CLI to launch OpenVisualStudio.dllRaul Santos2024-09-192-2/+2
| | | | Use the DLL instead of the EXE, so we can rely on the dotnet CLI handling the architecture.
* C#: Fallback to CoreCLR/MonoVM hosting APIs when hostfxr/NativeAOT failsRaul Santos2024-09-161-1/+24
| | | | | | | | Some platforms don't support hostfxr but we can use the coreclr/monosgen library directly to initialize the runtime. Android exports now use the `android` runtime identifier instead of `linux-bionic`, this removes the restrictions we previously had: - Adds support for all Android architectures (arm32, arm64, x32, and x64), previously only the 64-bit architectures were supported. - Loads `System.Security.Cryptography.Native.Android` (the .NET library that binds to the Android OS crypto functions).
* C#: Use export platform to determine the target OS and log errorsRaul Santos2024-08-302-34/+31
| | | | | - Use the export platform's `get_os_name` to determine the platform name instead of guessing from the features. - Use the export platform's `add_message` to add error messages instead of a custom error dialog. Integrates .NET error messages with the export log dialog.
* Fix build logger unable to handle an event without an associated fileRedOrbweaver2024-08-291-2/+2
|
* C#: Use Godot's LipO implementation instead of Xcode's lipo commandRaul Santos2024-08-173-106/+21
|
* Fix ContextMenu Copy Error is off in MSBuild PanelMarius Hanl2024-05-151-1/+1
|
* Specify a runtime rollforward for OpenVisualStudioPaul Joannon2024-05-071-0/+1
| | | | | | Use `LatestMajor` Fixes #91638
* Dotnet: Fix attributes for `sln`/`csproj` filesThaddeus Crews2024-05-039-16/+24
|
* Fill copyright field in .csproj filesKonstantin Kretov2024-04-261-0/+1
| | | | This ensures that nuget packages will have both license and copyright fields filled.
* [.NET] Disable output embedding on macOS, move it to the advanced options on ↵bruvzg2024-04-091-1/+1
| | | | other platforms.
* Show errors when solution file is missing in C# projectNông Văn Tình2024-04-071-0/+7
| | | | | | Fixes: #86591 Co-authored-by: Raul Santos <raulsntos@gmail.com>
* Fixed "Create C# solution" dialogAyOhEe2024-04-011-2/+2
| | | Flipped the title and dialog text to how they should be. It seemed that the title was being put in the dialog text, and vice versa.
* Merge pull request #88570 from paulloz/dotnet/warnings-editorconfig-cleanupRémi Verschelde2024-02-272-2/+4
|\ | | | | | | [.NET] Better `.editorconfig` setup in `modules/mono/`
| * Cleanup C# projects, code quality & stylePaul Joannon2024-02-272-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | New rules: - Do not silence CA1805 any more - Limit where we silence CA1707, CA1711, CA1720 - Enforce severity=warning for IDE0040 - Enforce Allman style braces - Enforce naming conventions (IDE1006 is still severity=suggestion) Fixes: - Fix REFL045, CS1572, CS1573 - Suppress CS0618 when generating `InvokeGodotClassMethod` - Fix indent when generating GD_constants.cs - Temporarily silence CS1734 in generated code - Fix a lot of naming rule violations Misc.: - Remove ReSharper comments for RedundantNameQualifier - Remove suppression attributes for RedundantNameQualifier - Remove severity=warnings for CA1716, CA1304 (already included in the level of analysis we run)
* | Fix hover style margin with extra borders enabledMatt Enad2024-02-211-0/+1
|/ | | | The content margins for FlatMenuButton and RunBarButton are now handled correctly when the "Draw Extra Borders" user option is enabled
* Merge pull request #87133 from Repiteo/dotnet/enforce-globalization-rulesRémi Verschelde2024-02-2011-51/+55
|\ | | | | C#: Enforce globalization code quality rules
| * C#: Enforce Globalization code quality rulesThaddeus Crews2024-02-2011-51/+55
| |
* | Merge pull request #86378 from RobProductions/update-hover-stylingRémi Verschelde2024-02-201-1/+1
|\ \ | | | | | | | | | Add hover highlight to main editor buttons
| * | Add hover highlight to main editor buttonsMatt Enad2024-02-161-1/+1
| | | | | | | | | | | | Updates styling of the editor run bar, plugin, bottom panel, icon buttons, and main menu buttons for accessibility.
* | | Bump Rider.PathLocator nuget version, which provides a fix for detecting ↵Ivan Shakhov2024-02-191-1/+1
| | | | | | | | | | | | Rider installations
* | | C#: Various fixes to generic scriptsRaul Santos2024-02-191-0/+9
| | | | | | | | | | | | | | | | | | - Report a diagnostic when there are multiple classes that match the script file name in the same script since that will result in a duplicate path key in the bimap and it's not allowed. - Fix InspectorPlugin to handle empty paths in case the project was built with a previous version of Godot that used empty paths for generic scripts. - Add tests for the new diagnostic GD0003.
* | | C#: Fix building OpenVisualStudio executableRaul Santos2024-02-181-0/+3
| |/ |/| | | | | Since moving the TFM to .NET Core we need to add some configuration to cross-compile a Windows executable from Linux.
* | Merge pull request #87137 from /dotnet/nullable-godot-toolsRémi Verschelde2024-02-1747-194/+349
|\ \ | |/ |/|
| * C#: Enable nullable environment for `GodotTools`Thaddeus Crews2024-02-1347-194/+349
| |
* | Merge pull request #88238 from shana/cs-export-fix-output-filesRémi Verschelde2024-02-121-4/+4
|\ \ | | | | | | | | | C#: Fix processing exclusions during export
| * | Fix processing exclusions during exportAndreia Gaita2024-02-121-4/+4
| | |
* | | Improve handling of generic C# typesRaul Santos2024-02-081-2/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Create CSharpScript for generic C# types. - `ScriptPathAttributeGenerator` registers the path for the generic type definition. - `ScriptManagerBridge` lookup uses the generic type definition that was registered by the generator. - Constructed generic types use a virtual `csharp://` path so they can be registered in the map and loaded as if there was a different file for each constructed type, even though they all share the same real path. - This allows getting the base type for a C# type that derives from a generic type. - Shows base scripts in the _Add Node_ and _Create Resource_ dialogs even when they are generic types. - `get_global_class_name` implementation was moved to C# and now always returns the base type even if the script is not a global class (this behavior matches GDScript). - Create `CSharpScript::TypeInfo` struct to hold all the type information about the C# type that corresponds to the `CSharpScript`, and use it as the parameter in `UpdateScriptClassInfo` to avoid adding more parameters.
* | | Fix C# "out of sync" notice with external editorsPaul Joannon2024-02-075-23/+29
| | | | | | | | | | | | | | | Change what triggers our re-evaluation of the last valid build datetime stored internally. Move that datetime in `BuildManager`.
* | | Fix incorrect condition for error filteringNông Văn Tình2024-01-311-8/+8
| |/ |/| | | | | | | | | | | | | Fixes: #87643 The original condition stopped immediately after checking for 'searchText' in the 'Message' field, resulting in premature termination of subsequent checks. This fix ensures that all relevant conditions are appropriately evaluated before determining the filtering outcome. Additionally, accompanying changes include improved code readability for better comprehension. This adjustment enhances the maintainability of the error filtering mechanism, contributing to a more robust codebase overall.
* | Merge pull request #87679 from raulsntos/dotnet/remove-unusedRémi Verschelde2024-01-303-657/+0
|\ \ | | | | | | | | | C#: Remove unused code
| * | C#: Remove unused codeRaul Santos2024-01-283-657/+0
| | | | | | | | | | | | | | | | | | | | | - Remove `AotBuilder` that was used for MonoAOT in 3.x. - Remove `PlaySettings` that was used for IDE support in 3.x. - Remove `ApiAssembliesInfo` that was used for Project generation in 3.x. - Remove pieces of the old iOS support from 3.x.
* | | Clean a bunch of C# warningsPaul Joannon2024-01-261-2/+2
|/ / | | | | | | | | | | | | | | | | - `[Obsolete]` tag generated in the middle of documentation comments - Potential `null` values in generators - Obsolete call to `GetEditorInterface()` - We don't want `Godot.Collections.Array` to end with `Collection` - A few culture specifications and use of `AsSpan` instead of `SubString` in `StringExtensions` - Disable CA1716 in GodotSharp
* | Merge pull request #86454 from Repiteo/c#-upgrade-TFMsRémi Verschelde2024-01-115-20/+18
|\ \ | | | | | | | | | C#: Upgrade TFM for `net472` and some `netstandard2.0` projects
| * | C#: Upgrade TFM for `net472` and some `netstandard2.0` projectsThaddeus Crews2024-01-065-20/+18
| |/
* | Merge pull request #85460 from van800/masterRémi Verschelde2024-01-111-1/+1
|\ \ | | | | | | | | | Bump the `JetBrains.Rider.PathLocator` PackageReference to 1.0.8
| * | bump the PackageReference "JetBrains.Rider.PathLocator" to 1.0.8Ivan Shakhov2023-11-281-1/+1
| |/
* / Inspector :warning: when C# props might be out of datePaul Joannon2023-12-223-0/+120
|/
* [iOS] Fix dotnet export.bruvzg2023-11-162-3/+3
|
* Fix node names of submenu items across the editorYuri Sizov2023-11-081-1/+4
| | | | Also removes some programmer remarks and fixes some docs.
* Merge pull request #83809 from raulsntos/dotnet/free-dialogsRémi Verschelde2023-10-301-0/+6
|\ | | | | | | C#: Free dialogs when exiting the editor
| * C#: Free dialogs when exiting the editorRaul Santos2023-10-231-0/+6
| |
* | Merge pull request #83325 from raulsntos/dotnet/find-latest-sdkRémi Verschelde2023-10-242-5/+10
|\ \ | |/ |/| | | C#: Fallback to the latest SDK
| * C#: Fallback to the latest SDKRaul Santos2023-10-142-5/+10
| |
* | C#: Allow exporting games without C#Raul Santos2023-10-161-1/+14
|/ | | | When exporting a game that contains a C# solution, a feature is added so the exported game can check if it should initialize the .NET module. Otherwise, the module initialization is skipped so games without C# won't check for the assemblies and won't show alerts when they're missing.
* C#: Add checks to Android exportRaul Santos2023-10-102-2/+6
| | | | | - Add .NET 7.0 TFM when the platform is Anroid to the created csproj. - Prevent exporting to Android when the architecture is not supported.
* Merge pull request #82729 from shana/shana/ios-csharpRémi Verschelde2023-10-096-70/+356
|\ | | | | | | Add C# iOS support
| * Add C# iOS supportAndreia Gaita2023-10-096-70/+356
| | | | | | | | | | | | | | | | | | This support is experimental and requires .NET 8 Known issues: - Requires macOS due to use of lipo and xcodebuild - arm64 simulator templates are not currently included in the official packaging
* | Fix C# editor dialogsRaul Santos2023-10-022-31/+39
|/ | | | | - Use `EditorInterface` to open C# editor dialogs. - Ensure C# editor dialogs are open after `EditorProgress` finishes.
* C#: Redesign MSBuild panelRaul Santos2023-09-277-470/+1067
| | | | | | | | - Redesign panel to look closer to the look of other Godot panels such as Output and Debugger. - Moved list of problems and output log to separate tabs instead of using a HSplit. - Added Tree/List layouts to the problems tab. - Added search box to filter problems tab. - Added `FileTree` icon, made from `FileList`. Both are used for the button that toggles the Tree/List layouts.
* Implemented {project} placeholder for external dotnet editorcrazyStewie2023-09-201-0/+4
| | | | | | | | | | | Implements the {project} placeholder, available when setting an external editor in the project settings, via Editor > Editor Settings > Text Editor > External for the c# external editor, under Editor > Editor Settings > Dotnet > Editor, This allows passing the project folder as a command line argument when using a custom external editor that isn't one of the available options. Fixes #81845