These instructions are basic and a work in progress. They will be improving a lot over time.
Once you've followed the steps in this document, use the following sample to see the changes you need to make to your project: https://github.com/dotnet/corefxlab/tree/master/samples/ClassLib.
- Install Visual Studio 2015 - https://www.visualstudio.com/downloads/download-visual-studio-vs
- Check "Universal Windows App Development Tools" in the initial install or modify the install to include it.
-
Install (latest PRIVATE nuget vsix)[https://www.myget.org/F/nuget-vsix/vsix/NuGet.0d421874-a3b2-4f67-b53a-ecfce878063b-3.3.0.152.vsix]. Not that this NuGet VSIX is from the dev feed, which contains the latest changes necessary to complete the rest of the instructions. It will updated your existing NuGet client.
-
Setup ".NET Core Dev Feed" package source -> "http://myget.org/F/dotnet-core". Goto Tools | Options.
Note: Eventually these packages will be available on nuget.org and so this feed will not be interesting for anyone that doesn't want daily dev builds from the corefx/coreclr repos.
- File > New
- Select ".NET Framework 4.6" and "ASP.NET Core 5.0"
- At this point the project should compile
Currently to enable generations you need do to some manual steps
- Manually edit your csproj file by right clicking on the project and select unload and then right click and select edit. Add this to the bottom of your project file:
-
Save and close your project file and then reload it.
-
Open project.json file and change "dotnet" to "dotnet5.4".
- Save it.
- At this point your project should be in a buildable state and targeting generation 5.4.
- Now if you want to update to the latest version of the meta-packages right click on references and chose "Manage Nuget Packages". a. Click "Updates" tab a. Check the "Include prerelease" check-box a. Select ".NET Core Dev Feed" as the package source. a. Check "Select all packages" a. Click "Update". Accept the preview dialog and the license agreement (might take a while to pop-up).
- Your project should now be in a buildable state again with the latest version of our library packages.