更新时间: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