Skip to content
This repository has been archived by the owner on Dec 18, 2017. It is now read-only.

Package restore broken on mono #1214

Closed
davidfowl opened this issue Feb 14, 2015 · 7 comments
Closed

Package restore broken on mono #1214

davidfowl opened this issue Feb 14, 2015 · 7 comments
Assignees
Milestone

Comments

@davidfowl
Copy link
Member

System.IO.DirectoryNotFoundException: Could not find a part of the path "/Users/dfowler/.k/packages/Microsoft.AspNet.Owin/1.0.0-beta4-10923/../aetc4zld.rwn"
  at System.IO.Directory.CreateDirectoriesInternal (System.String path) [0x00000] in <filename unknown>:0 
  at System.IO.Directory.CreateDirectory (System.String path) [0x00000] in <filename unknown>:0 
  at Microsoft.Framework.PackageManager.NuGetPackageUtils+<>c__DisplayClass0_0+<<InstallFromStream>b__0>d.MoveNext () [0x00000] in <filename unknown>:0 
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>:0 
  at System.Runtime.CompilerServices.TaskAwaiter`1[System.Int32].GetResult () [0x00000] in <filename unknown>:0 
  at Microsoft.Framework.PackageManager.ConcurrencyUtilities+<ExecuteWithFileLocked>d__1`1[System.Int32].MoveNext () [0x00000] in <filename unknown>:0 
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>:0 
  at System.Runtime.CompilerServices.TaskAwaiter`1[System.Int32].GetResult () [0x00000] in <filename unknown>:0 
  at Microsoft.Framework.PackageManager.NuGetPackageUtils+<InstallFromStream>d__0.MoveNext () [0x00000] in <filename unknown>:0 
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] in <filename unknown>:0 
  at Microsoft.Framework.PackageManager.RestoreCommand+<InstallPackages>d__61.MoveNext () [0x00000] in <filename unknown>:0 
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] in <filename unknown>:0 
  at Microsoft.Framework.PackageManager.RestoreCommand+<RestoreForProject>d__59.MoveNext () [0x00000] in <filename unknown>:0 
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>:0 
  at System.Runtime.CompilerServices.TaskAwaiter`1[System.Boolean].GetResult () [0x00000] in <filename unknown>:0 
  at Microsoft.Framework.PackageManager.RestoreCommand+<>c__DisplayClass57_0+<<ExecuteCommand>b__0>d.MoveNext () [0x00000] in <filename unknown>:0 
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] in <filename unknown>:0 
  at Microsoft.Framework.PackageManager.RestoreCommand+<ExecuteCommand>d__57.MoveNext () [0x00000] in <filename unknown>:0 
----------
Restore failed
Could not find a part of the path "/Users/dfowler/.k/packages/Microsoft.AspNet.Owin/1.0.0-beta4-10923/../aetc4zld.rwn"

Looks like your change @pranavkm

@davidfowl davidfowl added this to the 1.0.0-rc1 milestone Feb 14, 2015
@davidfowl davidfowl self-assigned this Feb 14, 2015
@anfomin
Copy link

anfomin commented Feb 14, 2015

Any news when this bug will be resolved? I'm trying to run vNext project from Windows on OS X just now 😥

@pranavkm
Copy link
Contributor

@anfomin Our regular feed needs some sorting out so it'll take a bit for it to appear there. In the meanwhile, you can grab the fixed build of KRE from the volatile feed in ~10 mins.

export KRE_FEED=https://www.myget.org/F/aspnetvolatile/api/v2/
kvm upgrade

@davidfowl
Copy link
Member Author

@anfomin Are you using beta4 bits? I'm asking because I'd love to know how you're using them on windows. Are you using Visual Studio?

@anfomin
Copy link

anfomin commented Feb 14, 2015

@pranavkm I tried aspnetvolatile right now but there is no fresh version:
2015-02-14 23 56 17

@davidfowl Yes, we are using latest builds from https://www.myget.org/F/aspnetvnext/ for about 5-6 months on Windows. MVC6 beta4 is great! VS2015 is still very-very slow and buggy. Moreover it often crashes when many razor views are opened.

There are beta-version for one of our sites running public: http://ukgorizont.ru. It's working on MVC6 + EF7.

We've started new project a month ago and decided to develop it under ASP.NET Core 5.0. Some of our developers using OS X and we interested in running project on mono rather that using Parallels Desktop...

@davidfowl
Copy link
Member Author

You might be running an older version of kvm itself.

@anfomin
Copy link

anfomin commented Feb 15, 2015

@davidfowl @pranavkm I've tried to clear .k and start from scratch:

Last login: Sun Feb 15 11:46:18 on ttys001
ZorroMacBook:~ afomin$ mkdir .k
ZorroMacBook:~ afomin$ curl -o ~/.k/kvm.sh https://raw.githubusercontent.com/aspnet/dotnetsdk/dev/src/kvm.sh
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 16570  100 16570    0     0  21600      0 --:--:-- --:--:-- --:--:-- 21575
ZorroMacBook:~ afomin$ source ~/.k/kvm.sh
ZorroMacBook:~ afomin$ export KRE_FEED=https://www.myget.org/F/aspnetvolatile/api/v2/
ZorroMacBook:~ afomin$ kvm upgrade
Determining latest version
Latest version is 1.0.0-beta3-10921
Downloading kre-mono.1.0.0-beta3-10921 from https://www.myget.org/F/aspnetvolatile/api/v2/
kre-mono.1.0.0-beta3-10921 was not found in repository https://www.myget.org/F/aspnetvolatile/api/v2/
ZorroMacBook:~ afomin$ 

But with latest kvm from https://github.com/aspnet/dotnetsdk I can't upgrade to right kre.

@anfomin
Copy link

anfomin commented Feb 18, 2015

Updated to latest KRE today and vNext works on OS X. Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants