Skip to content

This is killing me #3209

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

Closed
The-Futurist opened this issue Jun 7, 2018 · 9 comments
Closed

This is killing me #3209

The-Futurist opened this issue Jun 7, 2018 · 9 comments

Comments

@The-Futurist
Copy link

The-Futurist commented Jun 7, 2018

I'm reading that I can create an ASP.NET Core wb app project that targets .Net Framework. However there have been numerous articles published over the past year that are either out of date or simply flat wrong.

One article said to edit the project.json file - then a little later I discover this is no longer used and we're back to good old *.csproj.

Anyway when I create a new ASP.NET Core web app I get no option to select a target framework (I've installed 2.1 too by the way).

Even after the project is created if I go to project properties then the Application pane the only options in Target framework dropdown list are .Net Core 1.0, 1.1, 2.0 and 2.1 - No sign anywhere of .Net Framework.

So perhaps one must manually edit the *.csproj file which is inexcusably sloppy if true.

I've said this before and so have others - this is a mess...

@davidfowl
Copy link
Member

New Project -> Web -> ASP.NET Core Application:

image

.NET Framework:

image

Done

@The-Futurist
Copy link
Author

The-Futurist commented Jun 7, 2018

@davidfowl - Except it's not "Done" in my case because the dropdown list is mysteriously and inexplicably disabled and says only ".NET Core" as you can see here:

netcorefra

@davidfowl
Copy link
Member

What options did you select when you installed VS 2017?

/cc @Andrew-MSFT @BillHiebert

Any ideas?

@The-Futurist
Copy link
Author

The-Futurist commented Jun 7, 2018

@davidfowl - I really can't recall, it was a year ago. Almost all work I do on this particular machine is conventional .NET Framework stuff MVC, desktop apps, console apps etc. I can certainly see the current setup of installed bits n pieces though if you want me to check something in particular.

@AndrewBrianHall
Copy link

The Target Framework dropdown will be locked to .NET Core if you enter through the ".NET Core" node in the new project dialog. If you enter through the "Web" entry point as shown in @davidfowl's screenshot, you will be able to choose between the two.

@The-Futurist
Copy link
Author

@Andrew-MSFT @davidfowl - Thank you gentlemen, this is much appreciated!

@narendra2605
Copy link

@Korporal: But if you select ".Net Framework" from the 1st dropdown, you are creating a .Net Framework Web App and not a .Net Core WebApp targeting .Net Framework. Hope you get it.

@Plasma
Copy link

Plasma commented Jun 20, 2018

Thank you @davidfowl and @Korporal -- I had the exact same experience trying to get started porting a large ASP.NET MVC app to .NET Core, targeting .NET Framework (to assist with porting).

Would really like to see a more thorough guide, including things like how to upgrade old controllers, utilize existing route code, etc, as I think each person/team is struggling independently and it would be good to have a central location to document a good bunch of the steps.

Thank you

@davidfowl
Copy link
Member

Would really like to see a more thorough guide, including things like how to upgrade old controllers, utilize existing route code, etc, as I think each person/team is struggling independently and it would be good to have a central location to document a good bunch of the steps.

https://docs.microsoft.com/en-us/aspnet/core/migration/proper-to-2x/?view=aspnetcore-2.1

Provide feedback on that document.

@Eilon Eilon closed this as completed Jul 9, 2018
@ghost ghost locked as resolved and limited conversation to collaborators Dec 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants