Skip to content

Instantly share code, notes, and snippets.

@jamesmontemagno
Last active March 20, 2018 15:27
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jamesmontemagno/cebc8646d92e127e8adc35236dafab24 to your computer and use it in GitHub Desktop.
Save jamesmontemagno/cebc8646d92e127e8adc35236dafab24 to your computer and use it in GitHub Desktop.
Updating PCL to .NET Standard

The goal here is to convert your PCL projects to .NET Standard projects and not lose any Git history. The key is to trick Git a bit by simply creating a new library, copy files into it, delete the old PCL library, and then rename the folder and project to the original PCL name.

6 Steps to Converting your PCL Library to .NET Standard

  1. Create new .NET Standard Library targeting 2.0 and name it NAME.Standard
  2. Copy all files from PCL to .NET Standard Library
  3. Delete PCL library and Delete the folder
  4. Rename the .NET Standard Libary to the PCL's old name and rename the folder
  5. Re-install all NuGets
  6. Add references back
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment