0

I am having troubles configuring my Rider project configuration to run my Main function when I'd like to run the project (which is a simple Console App). Since I am new to the whole C# environment, I am kinda struggling here. What do I need to do, to simply execute the Main function from the IDE?

File: StockApplication.cs


namespace StockApplication
{
    public class StockApplication
    {
        public static void Main(string[] args) 
        { 
             Console.WriteLine("Hello World");
        }
    }
}

There's also a csproj-File:

<Project Sdk="Microsoft.NET.Sdk">

    <PropertyGroup>
        <TargetFramework>net6.0</TargetFramework>
        <Nullable>enable</Nullable>
    </PropertyGroup>

</Project>

Configuration setting

enter image description here

Remo
  • 1,112
  • 2
  • 12
  • 25

1 Answers1

0

Just select the project and click on run button

Just like this

Select your project in configuration