Whenever I try to debug some C# code in Visual Studio I keep getting this error code: Debugger operation failed - ScriptError: Not authorized to send Apple events to Terminal.
The project is created as a C# template.
I have tried googling the error message but I have not found anything of value. I have attached screenshots of the code and the error.
using System;
namespace test
{
class MainClass
{
public static void Main(string[] args)
{
Console.WriteLine("Hello World!");
}
}
}
Debugger operation failed
ScriptError: Not authorized to send Apple events to Terminal.