GithubHelp home page GithubHelp logo

Comments (10)

davidfowl avatar davidfowl commented on May 4, 2024

@Eilon did we pin those as well?

from aspnetcore.

Eilon avatar Eilon commented on May 4, 2024

Everything should be pinned. Do we know which specific versions can't be found?

from aspnetcore.

smaglio81 avatar smaglio81 commented on May 4, 2024

This is the contents of the project.json file:

{
  "version": "0.1-alpha-*",
  "dependencies": {
    "Microsoft.AspNet.Diagnostics": "0.1-alpha-build-0623",
    "Microsoft.AspNet.Hosting": "0.1-alpha-build-0519",
    "Microsoft.AspNet.Server.WebListener": "0.1-alpha-build-0469",
    "Microsoft.AspNet.StaticFiles": "0.1-alpha-build-0402"
  },
  "commands": {
    "web": "Microsoft.AspNet.Hosting server=Microsoft.AspNet.Server.WebListener server.urls=http://localhost:5001"
  },
  "configurations": {
    "net45": {},
    "k10": {}
  }
}

from aspnetcore.

smaglio81 avatar smaglio81 commented on May 4, 2024

Thank you both for your time. I had copied the sample HelloWeb into a different folder (outside of the aspnet\Home directory). kpm restore was unable to find those packages when run from the outside folder.

So, there must be some files/configurations in the aspnet\Home directories that give kpm restore the information necessary to resolve the dependencies.

My apologizes for taking up your time; especially on a Saturday.

Thanks again.

from aspnetcore.

Eilon avatar Eilon commented on May 4, 2024

Glad you got it working! I did notice some problems in the error message and logged aspnet/dnx#206 to track improving the error message.

from aspnetcore.

smaglio81 avatar smaglio81 commented on May 4, 2024

I think I understand the sandbox a little better now. And, I think I understand why copying the HelloWeb app to a new folder didn't work.

The NuGet.Config file which contains a reference to the myget repository needs to be at least 2 directory levels up from the project.json file. It looks like klr.exe starts searching 2 levels up with a search pattern of:

C:\
     NthLevel\
         2ndLevel\
             .nuget\
                 NuGet.Config [1st search]
             packages\ [klr.exe creates this]
             1stLevel (eg.samples or src)\
                 ProjectName (eg.HelloWeb)\
                     project.json
         NuGet.Config [2nd search]
      NuGet.Config [Nth search]

It does search for and include the default NuGet.Config at %APPDATA%\NuGet\NuGet.Config. But the rest of the search pattern is backwards from the normal NuGet Config search pattern.

It also looks like klr.exe always creates a /packages folder at the second level.

aspnet\KRuntime's .kproj's all look to be 2-levels deep. So, this may be the convention, I guess? But that's a question for StackOverflow.

from aspnetcore.

davidfowl avatar davidfowl commented on May 4, 2024

@smaglio81 for more information on how the "root" is located aspnet/dnx#192

from aspnetcore.

smaglio81 avatar smaglio81 commented on May 4, 2024

That's awesome! Thanks!

from aspnetcore.

archasek avatar archasek commented on May 4, 2024

Hey, I had a similar problem, fixed it as this thread says, and now I have this error:
System.NotImplementedException: The requested feature is not implemented. at Microsoft.Framework.PackageManager.Restore.NuGet.PackageUtilities.EnsureValidPackageContents (System.IO.Stream stream, Microsoft.Framework.PackageManager.PackageInfo package) [0x00000] in <filename unknown>:0 at Microsoft.Framework.PackageManager.Restore.NuGet.PackageUtilities+<>c__DisplayClass1_0.<OpenNupkgStreamAsync>b__0 (System.IO.Stream stream) [0x00000] in <filename unknown>:0 at Microsoft.Framework.PackageManager.Restore.NuGet.HttpSource+<GetAsync>d__8.MoveNext () [0x00000] in <filename unknown>:0

stacktrace: http://wklej.org/hash/5360fc51211/

from aspnetcore.

Eilon avatar Eilon commented on May 4, 2024

@archasek if this is a new issue please log a new bug, thanks!

from aspnetcore.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.