C#。我将此添加到我的csproj中,它开始工作:7.1true在dotnetcore中,这将以下内容添加到我的项目中。csproj:。。。。图书馆 using System; using System.Collections.Generic; using

C#。我将此添加到我的csproj中,它开始工作:7.1true在dotnetcore中,这将以下内容添加到我的项目中。csproj:。。。。图书馆 using System; using System.Collections.Generic; using,c#,compilation,C#,Compilation,C#。我将此添加到我的csproj中,它开始工作:7.1true在dotnetcore中,这将以下内容添加到我的项目中。csproj:。。。。图书馆 using System; using System.Collections.Generic; using System.Linq; using System.Windows.Forms; using System.Threading; namespace SimpleAIMLEditor { static class Program


C#。我将此添加到我的csproj中,它开始工作:
7.1true
在dotnetcore中,这将以下内容添加到我的项目中。csproj:
。。。。图书馆
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using System.Threading;

namespace SimpleAIMLEditor
{
    static class Program
    {
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            Application.Run(new mainSAEForm());
        }
    }
}
internal class Program
 {
    public static void Main(string[] args)
    {
        //My Code
    }
  }
<PropertyGroup>
    <LangVersion>latest</LangVersion>
    <NoWin32Manifest>true</NoWin32Manifest>
</PropertyGroup>
static async void Main(string[] args)
static void Main(string[] args)
--> Right click on the project

--> and select "Properties"

--> then set "Output Type" to "Class Library".
public static void Main(string[] args)
public async static void Main(string[] args)
public async static Task Main(string[] args)