Startup Project Option in Jetbrains Rider
Asked Answered
T

2

10

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.

Thornton answered 21/7, 2020 at 12:40 Comment(0)
U
8

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.

Unstring answered 16/4, 2021 at 6:43 Comment(1)
Rider is amazingClarinda
T
1

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>
Tyson answered 21/7, 2020 at 12:56 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.