简体   繁体   中英

Startup Project Option in Jetbrains Rider

I'm using Jetbrain's Rider. I have two classes in a project. They both have main methods. So I'm getting an erorr saying " Program has more than one entry point". I cannot even find the "Startup Project" (as in Visual Studio) option in Rider. Help me out here.

My answer is probably too late to help the original poster, but this may help future people:

The Run > Edit Configurations... menu brings up a dialog where you can manage different configurations. To run multiple startup projects together, press the + button to create a Compound configuration and add your projects to it.

You can add next line in .csproj (inside PropertyGroup tag) with name of the class which should be startup object (see docs ):

<StartupObject>MyApplication.Core.Program</StartupObject>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM