2

I am want to create a .NET Framework project that has API and MVC parts to it. In Visual Studio there are checkboxes that I can select but in Rider there is nothing, it only allows me to create an MVC project.
I know I can just reinstall Visual Studio and do it from there but I really want to know if there is a way to do this. With .Net Core I can simply add an API controlller bt I don't know how to just add a controller.
If there is a way to add it manually, please tell me!
Rider screenshot: Rider Screenshot As you can see, there is no place to add API. I can't even create a standalone API project!

Status

  • Someone suggested that I create a WebAPI separately and add the config later but I can't even create an API.
  • I looked up how to add an API and it tells you to add one line of config but the code throws errors. The question
10
  • Did you try creating a separate Web API project, seeing what configuration that does, then applying that configuration to your existing MVC project? You'll learn a lot about what is necessary to get them both working that way. Commented Feb 5, 2021 at 15:55
  • But I can't even create a web API project in Rider. I'm thinking of switching back to VS. Commented Feb 5, 2021 at 15:56
  • If you like Rider...then why not just use VS to create the project, then you can use Rider to do actual development? Commented Feb 5, 2021 at 16:06
  • Lol, I have no space for both of them. :) Commented Feb 5, 2021 at 16:08
  • Storage is cheap these days. If you're that storage constrained...get some more storage! Commented Feb 5, 2021 at 16:09

1 Answer 1

4

You can just create it from the type combo:

enter image description here

Sign up to request clarification or add additional context in comments.

1 Comment

Your answer is for ASP.NET Core and not ASP.NET Framework

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.