VS Code refuses to debug my godot C# project. I get this fun message:
'E:\Godot\Projects\defendtheboard\DefendTheBoard.csproj' does not support debugging. No launchable target found.
I have copied and tried like 6 different launch.json and task.json setups and I still get the same message. This seems like something that should require no configuration and should just work automatically. I have the following extensions for VS Code:
.NET Install Tool C# C# Dev Kit C# Tools for Godot Godot .NET Tools Godot Docs for C# Intellicode for C# Dev Mono Debug
I have not programmed in a long time and I would be happy to admit that I did something foolish. Please help me identify my own failures.
Ok here is the .csproj, missing the exe line as pointed out:
<Project Sdk="Godot.NET.Sdk/4.4.0">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<EnableDynamicLoading>true</EnableDynamicLoading>
</PropertyGroup>
</Project>
here is the .sln:
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2012
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DefendTheBoard", "DefendTheBoard.csproj", "{2B2F7E79-C676-4D40-A4A6-6FF709517425}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
ExportDebug|Any CPU = ExportDebug|Any CPU
ExportRelease|Any CPU = ExportRelease|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{2B2F7E79-C676-4D40-A4A6-6FF709517425}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{2B2F7E79-C676-4D40-A4A6-6FF709517425}.Debug|Any CPU.Build.0 = Debug|Any CPU
{2B2F7E79-C676-4D40-A4A6-6FF709517425}.ExportDebug|Any CPU.ActiveCfg = ExportDebug|Any CPU
{2B2F7E79-C676-4D40-A4A6-6FF709517425}.ExportDebug|Any CPU.Build.0 = ExportDebug|Any CPU
{2B2F7E79-C676-4D40-A4A6-6FF709517425}.ExportRelease|Any CPU.ActiveCfg = ExportRelease|Any CPU
{2B2F7E79-C676-4D40-A4A6-6FF709517425}.ExportRelease|Any CPU.Build.0 = ExportRelease|Any CPU
EndGlobalSection
EndGlobal
A quick glance and file search did not reveal anything named "Directory..."