Skip to content

Instantly share code, notes, and snippets.

What would you like to do?

This is a step by step guide to using this workaround for Godot 3.2.3+ support in Visual Studio:

  1. In the solution explorer, add a new project to your solution.


  2. Search for library .net framework to find the "old-style" project style. Select it and press Next.


  3. Set up the project.

    • Name: StubProj
    • Location: make sure this is your project directory.
    • Framework: the default is fine, we're going to replace this later anyway.


  4. Open the StubProj directory. You can use Open Folder in File Explorer to do this easily.


  5. Close Visual Studio. Press Yes if prompted to save files.

  6. In the StubFolder directory, delete all files and directories except StubProj.csproj. (Delete bin, obj, Properties, Class1.cs.)

  7. Open StubProj.csproj in a text editor. (Not Visual Studio.) Delete the content, then paste this text (a slightly modified version of the original workaround)

    <?xml version="1.0" encoding="utf-8"?>
    <Project ToolsVersion="15.0" xmlns="">
      <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
        <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
        <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
      <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
        <ProjectReference Include="..\*.csproj">
      <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
  8. Start Visual Studio. Open your Godot project back up.

  9. Set StubProj as your Startup Project.


  10. See the extension's debugging options are there!



This comment has been minimized.

Copy link
Owner Author

@31 31 commented Oct 12, 2021

If you hit an error like this (image credit to @Atlinx, asking about this on the Godot Discord), it seems to mean the StubProj folder isn't inside the Godot project directory:


Make sure the StubProj folder is inside your Godot project folder.

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