最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Debugging Godot C# in VS Code - Stack Overflow

programmeradmin0浏览0评论

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..."

发布评论

评论列表(0)

  1. 暂无评论