Windows 8 – NuGet: You are trying to install this package into a project that targets ‘.NETCore,Version=v4.5’

By Dries Marckmann
February 5, 2013
0

Today, after installing Visual Studio Express 2012 for Windows 8 on my home laptop, I experienced something I haven’t since I started developing. I got this message when trying to install Caliburn.Micro in a new project:

You are trying to install this package into a project that targets ‘.NETCore,Version=v4.5’, but the package does not contain any assembly references that are compatible with that framework. For more information, contact the package author.

I remember having to Google for a while before finding the answer, so here it is: It’s to do with the version of NuGet Package Manager you have installed. NuGet 2.0 or earlier expect the ‘winRT45′ or ‘NETCore45’ packages while as of version 2.1 NuGet expects one of the following: Windows, Windows8, win, win8.

More information can be found here: http://docs.nuget.org/docs/release-notes/nuget-2.1#Targeting_Windows_8_and_Windows_Phone_8_Projects

Comments: 0

Leave a Reply

Your email address will not be published. Required fields are marked *