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.
Startup Project Option in Jetbrains Rider
Asked Answered
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.
Rider is amazing –
Clarinda
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>
© 2022 - 2024 — McMap. All rights reserved.