# Error when trying to run project in Visual Studio

**URL:** <https://forum.godotengine.org/t/error-when-trying-to-run-project-in-visual-studio/53849>\
**Category:** Help\
**Tags:** godot-4, csharp\
**Created:** [March 30, 2024, 12:43pm UTC](https://forum.godotengine.org/t/error-when-trying-to-run-project-in-visual-studio/53849 "2024-03-30T12:43:53Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![supernovafiles](https://forum.godotengine.org/user_avatar/forum.godotengine.org/supernovafiles/32/4783_2.png) [@supernovafiles](https://forum.godotengine.org/u/supernovafiles)\
**Post date:** [March 30, 2024, 12:43pm UTC](https://forum.godotengine.org/t/error-when-trying-to-run-project-in-visual-studio/53849/1 "2024-03-30T12:43:54Z")

</div>

### Godot Version

4.2.1

### Question

I’m learning C# and when I try to run the project in Visual Studio, it generates an error file. It seems Godot is not able to determine what should be opened. What configuration am I missing?

 ![image](https://forum.godotengine.org/uploads/default/original/3X/5/f/5f2bb26bf44d0ea5835a746229aff10171895a78.png)

I have this profile configured in VS:

 ![image](https://forum.godotengine.org/uploads/default/original/3X/5/f/5f3060ead9f7582c9f831ca69f58cb1d154f0d75.png)

Enable native code debugging is also enabled. What else should I configure?

---

<div class="post-metadata">

**Author:** ![igat](https://forum.godotengine.org/user_avatar/forum.godotengine.org/igat/32/15343_2.png) [@igat](https://forum.godotengine.org/u/igat)\
**Post date:** [March 30, 2024, 1:13pm UTC](https://forum.godotengine.org/t/error-when-trying-to-run-project-in-visual-studio/53849/2 "2024-03-30T13:13:02Z")

</div>

Hi,  
You probably haven’t selected a default scene to run.  
Try run game inside Godot editor. Godot will ask to choose default scene.

Or you can choose manually.  
Project → Project Settings → General → Application → Run

“Default Scene” I mean “Main Scene”.

 ![image](https://forum.godotengine.org/uploads/default/original/3X/5/a/5abd858d137b8faa2ebc1c91d6d7d72818ce1164.png)

---

<div class="post-metadata">

**Author:** ![supernovafiles](https://forum.godotengine.org/user_avatar/forum.godotengine.org/supernovafiles/32/4783_2.png) [@supernovafiles](https://forum.godotengine.org/u/supernovafiles)\
**Post date:** [March 30, 2024, 2:05pm UTC](https://forum.godotengine.org/t/error-when-trying-to-run-project-in-visual-studio/53849/3 "2024-03-30T14:05:20Z")

</div>

It’s running! But I can’t see the output in VS. I’m trying to print something with `GD.Print(Hello);` but I don’t see this print result anywhere in VS or Godot.

---

<div class="post-metadata">

**Author:** ![igat](https://forum.godotengine.org/user_avatar/forum.godotengine.org/igat/32/15343_2.png) [@igat](https://forum.godotengine.org/u/igat)\
**Post date:** [March 30, 2024, 2:23pm UTC](https://forum.godotengine.org/t/error-when-trying-to-run-project-in-visual-studio/53849/4 "2024-03-30T14:23:03Z")

</div>

Unfortunetlly, I don’t know how to resolve this problem.  
I have two ways to debug:

- “Light debug”: using GD.Print() and run project by Godot Engine. It’s just only general diagnosis.
- “Hard debug”: using VS, breakpoints, checking variable values etc. (but without output - in my opinion this is not neccesary if I can see variable values)

---

<div class="post-metadata">

**Author:** ![system](https://forum.godotengine.org/uploads/default/original/2X/4/4b0a7fa8a6334634b94a13d421f0d99e6f04e21f.svg) [@system](https://forum.godotengine.org/u/system)\
**Post date:** [April 29, 2024, 2:23pm UTC](https://forum.godotengine.org/t/error-when-trying-to-run-project-in-visual-studio/53849/5 "2024-04-29T14:23:17Z")

</div>

Closed on April 29, 2024, 2:23pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
