Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
279 views
in Technique[技术] by (71.8m points)

c# - How can you create MVC and Web API project in the same project in JetBrains Rider?

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
question from:https://stackoverflow.com/questions/66066274/how-can-you-create-mvc-and-web-api-project-in-the-same-project-in-jetbrains-ride

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...