Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't run Samples.Mvc5 because it's a class library #184

Closed
RudeySH opened this issue May 9, 2017 · 5 comments
Closed

Can't run Samples.Mvc5 because it's a class library #184

RudeySH opened this issue May 9, 2017 · 5 comments
Labels

Comments

@RudeySH
Copy link
Contributor

RudeySH commented May 9, 2017

Title says it all, Samples.Mvc5 is a class library, it does not have a Program.cs with a static Main entry point. How do I run this sample?

@jdaigle
Copy link
Contributor

jdaigle commented May 10, 2017

Technically it's an ASP.NET application (i.e. ASP.NET 4.x, which requires IIS). But the project is using the new .NET SDK project schema which doesn't correctly support launching IIS or IISExpress for ASP.NET 4.x applications from within Visual Studio.

The workaround is to manually create an IIS site and point it at the source directory.

@NickCraver
Copy link
Member

Yep - nothing we can do here, unfortunately. I hope the .NET guys will add support back in VS 2017 soon.

cc @davkean - any idea if there's a timeline for MVC5 support in new .csproj, or if it's been cut?

@NickCraver
Copy link
Member

I have opened up dotnet/project-system#2670 in hopes they'll add the functionality to handle all cases like this.

@Daniel15
Copy link

The way I handle this in one of my projects (ReactJS.NET) is that the MVC 5 sample uses the "old style" .csproj, while every other project uses the new-style ones. It works fine.

@NickCraver
Copy link
Member

While not a long-term solution (they need to just add support) a fix for the starting specifically can be found here: dotnet/aspnetcore#1978 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants