Hi,
I want to upgrade my netcoreapp from "Microsoft.NETCore.App": "1.0.0-rc2-3002702" to "Microsoft.NETCore.App":"1.0.0". Here is what I did,
PM> install-package Microsoft.NETCore.App GET https://api.nuget.org/v3/registration1-gz/microsoft.netcore.app/index.json OK https://api.nuget.org/v3/registration1-gz/microsoft.netcore.app/index.json 2011ms Retrieving package 'Microsoft.NETCore.App 1.0.0' from 'nuget.org'. Installing NuGet package Microsoft.NETCore.App.1.0.0. Successfully installed 'Microsoft.NETCore.App 1.0.0' to testing Executing nuget actions took 658.4 ms Time Elapsed: 00:00:08.5324267
it
looks fine. I double check "References" => ".NETCoreApp,Version=v1.0" => "Microsoft.NETCore.App(1.0.0)". So it's been updated. However, when I did add-migration
PM> add-migration study The targeted framework { 'Microsoft.NETCore.App': '1.0.0' } was not found.
- Check application dependencies and target a framework version installed at: C:\Program Files (x86)\dotnet\shared\Microsoft.NETCore.App - The following versions are installed: 1.0.0-rc2-3002702 - Alternatively, install the framework version '1.0.0'.
This
confuses me. I have two questions:
1.The nugget package 'Microsoft.NETCore.App 1.0.0' has been installed to my local project named "testing", isn't this enough?
2.My current version in "C:\Program Files (x86)\dotnet\shared\Microsoft.NETCore.App" is "1.0.0-rc2-3002702". Do I need to update it also? This isn't bound to any specific .netcoreapp project, how do I upgrade it?