admin管理员组文章数量:1391951
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..."
本文标签: Debugging Godot C in VS CodeStack Overflow
版权声明:本文标题:Debugging Godot C# in VS Code - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744681914a2619463.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论