[英]How to configure Run Configuration to execute Main function in JetBrains Rider
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).当我想运行项目(这是一个简单的控制台应用程序)时,我无法配置我的 Rider 项目配置以运行我的 Main function。 Since I am new to the whole C# environment, I am kinda struggling here.由于我是整个 C# 环境的新手,我在这里有点挣扎。 What do I need to do, to simply execute the Main function from the IDE?我需要做什么,从 IDE 简单地执行 Main function?
File: StockApplication.cs文件:StockApplication.cs
namespace StockApplication
{
public class StockApplication
{
public static void Main(string[] args)
{
Console.WriteLine("Hello World");
}
}
}
There's also a csproj-File:还有一个 csproj 文件:
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<Nullable>enable</Nullable>
</PropertyGroup>
</Project>
Configuration setting配置设置
Just select the project and click on run button只需 select 项目并单击运行按钮
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.