dnx icon indicating copy to clipboard operation
dnx copied to clipboard

Can not restore Microsoft.Framework.CommandLineUtils.Sources (≥ 1.0.0-beta5)

Open gbdrm opened this issue 11 years ago • 20 comments

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

gbdrm avatar Jul 01 '15 11:07 gbdrm

I have the same problem...

dergroncki avatar Jul 01 '15 12:07 dergroncki

+1

terryt2000 avatar Jul 01 '15 12:07 terryt2000

+1

betimd avatar Jul 01 '15 12:07 betimd

+1

mxpv avatar Jul 01 '15 13:07 mxpv

@Eilon @davidfowl @DamianEdwards Are any of you able to enlighten us?

dgee2 avatar Jul 01 '15 14:07 dgee2

+1

joergjo avatar Jul 01 '15 14:07 joergjo

+1

For me it is a dependency in "xunit.runner.dnx"

premkumar-gg avatar Jul 01 '15 15:07 premkumar-gg

Me too. => "xunit.runner.dnx"

henriqueprj avatar Jul 01 '15 15:07 henriqueprj

Recommended workaround for Visual Studio RC users is:

  • Remove "Microsoft.Framework.CodeGenerators.Mvc": "1.0.0-beta5" from project.json
  • Remove gen command from project.json

In the next release of Visual Studio, we do not have these dependencies in the web application template anymore.

muratg avatar Jul 01 '15 16:07 muratg

Line that needs to be fixed: https://github.com/aspnet/Scaffolding/blob/dev/src/Microsoft.Framework.CodeGeneration.Core/project.json#L7

muratg avatar Jul 01 '15 16:07 muratg

+1

RehanSaeed avatar Jul 01 '15 18:07 RehanSaeed

What's the workaround for xunit runner?

milutinovici avatar Jul 01 '15 18:07 milutinovici

same question as milutinovici. Can't install the xunit.runner.dnx, because it can't resolve the commandlineutils (beta5).

mehtkab avatar Jul 01 '15 19:07 mehtkab

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.

ielcoro avatar Jul 02 '15 11:07 ielcoro

Thanks, that did the trick!

joergjo avatar Jul 02 '15 12:07 joergjo

Glad to help!

ielcoro avatar Jul 02 '15 13:07 ielcoro

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

muratg avatar Jul 02 '15 15:07 muratg

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 avatar Jul 02 '15 16:07 muratg

@muratg are we still tracking the actual fixes for beta 6?

Eilon avatar Jul 02 '15 17:07 Eilon

Yes.

  • TestHost: https://github.com/aspnet/Testing/issues/128
  • CodeGeneration.Core: https://github.com/aspnet/Scaffolding/issues/99

muratg avatar Jul 02 '15 21:07 muratg