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

'Migrating' from .NET Framework to .NET Standard #7275

Closed
mpoettgen opened this issue Nov 30, 2016 · 9 comments
Closed

'Migrating' from .NET Framework to .NET Standard #7275

mpoettgen opened this issue Nov 30, 2016 · 9 comments
Milestone

Comments

@mpoettgen
Copy link

What would be best practice when trying to convert a whole bunch of '.NET Framework' csproj-projects to '.NET Standard'/'.NET Core' csproj-projects, optionally targeting multiple frameworks?

The projects are mostly libraries that should be simple enough to compile targeting .NET Standard, but is there any (planned) tool support to convert the traditional csproj files into the new ones?

@TheRealPiotrP
Copy link
Contributor

@srivatsn thoughts?

@blackdwarf
Copy link

/cc @terrajobst as well.

@TheRealPiotrP
Copy link
Contributor

@mpoettgen I don't think we have a doc yet. I've done the process a few times manually, though. Perhaps I can help with comments?

In general, I've had the most luck by:

  1. dotnet new a core template
  2. Add stuff to it until it builds your project
  3. delete the old csproj file

@michael-x
Copy link

Any update on this?

@MNF
Copy link

MNF commented May 17, 2017

Added a link to the article, how it can be done manually now http://www.natemcmaster.com/blog/2017/03/09/vs2015-to-vs2017-upgrade/

@szalapski
Copy link

MNF, that seems to be about Visual Studio 2017, not about .NET Standard at all.

@guardrex
Copy link
Contributor

The general porting docs are at: Porting to .NET Core from .NET Framework. There are a couple of sub-topics under that which will hopefully be of assistance.

@stijnherreman
Copy link

@guardrex there's some useful info in there but they need updating, see dotnet/docs#2255

@guardrex
Copy link
Contributor

guardrex commented Jul 3, 2017

@stijnherreman Yes, since I wrote that ☝️ a few weeks ago, it's in the bullpen at the review stage with dotnet/docs#2467. It's subject to changes (usually not major changes tho). We don't have a built version of that one that can be seen, but the raw GH version is at: https://github.com/GuardRex/docs-1/blob/85e025b022b2f37263f2dbfbd0ea59fbd04d49f3/docs/core/porting/libraries.md

WRT .NET Standard specifically in that porting topic: One of the changes was to rip out the content that can be cross-linked because it can't be adequately covered there and it's a duplication of content, so the .NET Standard info is going to stay in the .NET Standard topic (at least until we get into review and finalize that decision).

@msftgits msftgits transferred this issue from dotnet/cli Jan 31, 2020
@msftgits msftgits added this to the Discussion milestone Jan 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants