Godot Version
4.4 stable
Question
`I am trying to implement custom C++ classes as modules. So I have a custom Godot build. The problem is that Jetbrains Rider does not recognize my C# Wrapper classes even if generated successfully by Godot. I can access and use the classes in GDScript though.
So how do I configure my IDE to recognize those C# Wrapper classes? I found an older reddit post where the solution to my problem is the following command when using the build_assemblies.py:
–push-nupkgs-local
What I do not understand is what i have to add in the mentioned local nuget folder? The generated C# files? Or what exactly? It is difficult to understand from just the documentation.
Thanks in advance!`
The --push-nupkgs-local
flag means the assemblies built by the build_assemblies.py
script will be copied to the directory specified by that flag. So you don’t have to copy anything manually if you use the flag.
The directory you have to specify with the --push-nupkgs-local
flag is the path to your local NuGet source feed. If you haven’t created a local NuGet source, you can create it with the dotnet nuget add source
command. For example, something like this:
dotnet nuget add source <my_local_source> --name MyLocalNugetSource
<my_local_source>
should be the directory that you want to use for the NuGet source (for example C:\Users\matthiasbae\MyLocalNuGetSource
). This is the same path you will specify in the --push-nupkgs-local
flag.
This is explained in the NuGet packages section of the documentation.