Search code examples
c#visual-studiounity-game-engineerror-handlingunity-container

Unity- vs code error: if ($?) { dotnet run $Player_Movement }


Hi I am getting "cd "c:\Users\UMUT\Desktop\Unity Projects\Newest\Assets" ; if ($?) { dotnet run $Player_Movement }" message and I get this error message "Couldn't find a project to run. Ensure a project exists in C:\Users\UMUT\Desktop\Unity Projects\Newest\Assets, or pass the path to the project using --project." in my Vs code Unity project. İn my another old project I have a C# script named Player_Movement but I am getting this error in my new Unity Project when I try to debug the project.I downloaded C# extension.I downl Any solutions or reason why it is happening?

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class New : MonoBehaviour 
{
// Start is called before the first frame update
void Start()
{
 Debug.Log("hi");   
}

// Update is called once per frame
void Update()
{
    
}
}

Solution

  • I reseted Vs code settings to default and my problem is fixed.