且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

dotnet建立指定主要方法

更新时间:2023-11-18 15:15:22

您可以编辑csproj来定义要使用的类(在PropertyGroup内):

You can edit your csproj to define which class to use (inside a PropertyGroup):

<StartupObject>foo.Program2</StartupObject>

或通过以下命令在命令行上指定此MSBuild属性:

or specify this MSBuild property on the command line via:

$ dotnet build foo.csproj /p:StartupObject=foo.Program2