Hello,
I'm walking through the phonebook tutorial. I'm at this step: Open Windows Command Prompt, locate to the folder containing the .EntityFramework project and run the "dotnet ef migrations add "Added_Persons_Table"
when I run this command, I receive a response stating;
The specified framework 'Microsoft.NETCore.App', version '1.1.0' was not found.
- Check application dependencies and target a framework version installed at: C:\Program Files\dotnet\shared\Microsoft.NETCore.App
- The following versions are installed: 1.0.1
- Alternatively, install the framework version '1.1.0'.
But when I; Install-Package Microsoft.NETCore.App via PM, I receive a message stating that 4.6.1 is not compatible.
Seems like a catch 22... Any suggestions?
I read that some are changing this;
"frameworks": { "net461": { //"Microsoft.NETCore.App": "1.1.0" "Microsoft.NETCore.App": "1.0.0-rc2-3002702" } }
to something more like this;
"frameworks": { "net461": { }, "netcoreapp1.0": { "dependencies": { "Microsoft.NETCore.App": { "type": "platform", "version": "1.1.0" } } } }
I tired this but it didn't work either.
5 Answer(s)
-
0
Hi,
You need to install it to your computer not to project itself. Please download and install from here <a class="postlink" href="https://www.microsoft.com/net/core#windowsvs2015">https://www.microsoft.com/net/core#windowsvs2015</a>.
-
0
<cite>ismcagdas: </cite> Hi,
You need to install it to your computer not to project itself. Please download and install from here <a class="postlink" href="https://www.microsoft.com/net/core#windowsvs2015">https://www.microsoft.com/net/core#windowsvs2015</a>.
Hello,
As illustrated above, I have it installed : - The following versions are installed: 1.0.1
The link that you provided downloads the above, <a href="https://go.microsoft.com/fwlink/?LinkID=827546" class="os button active">Download .NET Core 1.0.1 tools Preview 2</a>
Zero is asking for: The specified framework 'Microsoft.NETCore.App', version '1.1.0' was not found.
Scott Hanslemen is reccomending a dependency within .net 461 here; <a class="postlink" href="http://www.hanselman.com/blog/HowToReferenceAnExistingNETFrameworkProjectInAnASPNETCore10WebApp.aspx">http://www.hanselman.com/blog/HowToRefe ... ebApp.aspx</a>
Others have had to do something similar: <a class="postlink" href="https://jonhilton.net/2016/09/07/using-asp-net-core-against-net-4-6/">https://jonhilton.net/2016/09/07/using- ... t-net-4-6/</a>
Can you tell me what you recommend for this bug? Thanks.
Please advise, thanks.
-
0
Hi,
We can connect to your computer via Team Viewer and check the issue there when you are availble. We are available between 08:00 to 17:00 UTC+3.
Please send your availability to <a href="mailto:[email protected]">[email protected]</a>.
Thanks.
-
0
josh i had the same issue and discovered i needed to install
<a class="postlink" href="https://www.microsoft.com/net/download/core#/current">https://www.microsoft.com/net/download/core#/current</a>
hope that helps
-
0
<cite>chrisworrell: </cite> josh i had the same issue and discovered i needed to install
<a class="postlink" href="https://www.microsoft.com/net/download/core#/current">https://www.microsoft.com/net/download/core#/current</a>
hope that helps
Worked, thank you!