Can not restore Microsoft.Framework.CommandLineUtils.Sources (≥ 1.0.0-beta5)
There is an issues with restoring Microsoft.Framework.CommandLineUtils.Sources (≥ 1.0.0-beta5) package from nuget.org
https://www.nuget.org/packages/Microsoft.Framework.CommandLineUtils.Sources/ returns 404
and it is a dependency in https://www.nuget.org/packages/Microsoft.Framework.CodeGeneration.Core/
that is causing the issues, like http://stackoverflow.com/questions/31151388/vs2015rc-mvc-project-upgrade-from-beta4-to-beta5
I have the same issue with "Microsoft.Framework.CodeGenerators.Mvc": "1.0.0-beta5" can not restore it because of: Unable to locate Microsoft.Framework.CommandLineUtils.Sources >= 1.0.0-beta5
I have the same problem...
+1
+1
+1
@Eilon @davidfowl @DamianEdwards Are any of you able to enlighten us?
+1
+1
For me it is a dependency in "xunit.runner.dnx"
Me too. => "xunit.runner.dnx"
Recommended workaround for Visual Studio RC users is:
- Remove
"Microsoft.Framework.CodeGenerators.Mvc": "1.0.0-beta5"fromproject.json - Remove
gencommand fromproject.json
In the next release of Visual Studio, we do not have these dependencies in the web application template anymore.
Line that needs to be fixed: https://github.com/aspnet/Scaffolding/blob/dev/src/Microsoft.Framework.CodeGeneration.Core/project.json#L7
+1
What's the workaround for xunit runner?
same question as milutinovici. Can't install the xunit.runner.dnx, because it can't resolve the commandlineutils (beta5).
The problematic package seems to be Microsoft.Framework.TestHost as is published in nuget still carries dependecies with Microsoft.Framework.CommandLineUtils.Sources.
I get around it by changing my nuget package source settings to the master builds feed from nuget: https://www.myget.org/F/aspnetmaster/ The Microsoft.Framework.TestHost hosted there has the correct dependencies.
That change makes xunit runner to work.
Thanks, that did the trick!
Glad to help!
The following two will need to updated to build time dependencies:
- https://github.com/aspnet/Testing/blob/dev/src/Microsoft.Framework.TestHost/project.json#L12
- https://github.com/aspnet/Scaffolding/blob/dev/src/Microsoft.Framework.CodeGeneration.Core/project.json#L7
Microsoft.Framework.CommandLineUtils.Sources.1.0.0-beta5 is pushed to nuget.org now. This should unblock folks. We will remove this dependency from the impacted packages in Beta 6.
@muratg are we still tracking the actual fixes for beta 6?
Yes.
- TestHost: https://github.com/aspnet/Testing/issues/128
- CodeGeneration.Core: https://github.com/aspnet/Scaffolding/issues/99