Skip to content

Generating the C# project fails when .Net 8 Sdk is installed. #81133

Closed
@Summpot

Description

Godot version

4.1.1.stable.mono

System information

Godot v4.1.1.stable.mono - Windows 10.0.23531

Issue description

When I install .Net 8 on my system (I'm using the preview version of Visual Studio, so I can't uninstall .Net 8), I get the message "Failed to create C# project." when I create a C# script file, and it doesn't generate the corresponding project files.

modules/mono/glue/runtime_interop.cpp:1324 - System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. System cannot find the specified file.
  File name: 'System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
     at GodotTools.ProjectEditor.ProjectGenerator.GenAndSaveGameProject(String dir, String name)
     at GodotTools.CsProjOperations.GenerateGameProject(String dir, String name) in /root/godot/modules/mono/editor/GodotTools/GodotTools/CsProjOperations.cs:line 13
  Transient parent has another exclusive child.

Steps to reproduce

  1. Install the latest preview version of .Net 8 Sdk.
  2. Create a new godot project.
  3. Add a scene root node.
  4. Attach a C# script to the node.

Minimal reproduction project

N/A

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions