Comments (10)
@Eilon did we pin those as well?
from aspnetcore.
Everything should be pinned. Do we know which specific versions can't be found?
from aspnetcore.
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.
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.
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.
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.
@smaglio81 for more information on how the "root" is located aspnet/dnx#192
from aspnetcore.
That's awesome! Thanks!
from aspnetcore.
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.
@archasek if this is a new issue please log a new bug, thanks!
from aspnetcore.
Related Issues (20)
- Multiple ways to short-circuit pipeline is a poor design and should be reconsidered HOT 2
- Perf improvement: endpoint
- Unhandled exceptions are being logged before custom IExceptionHandler is being called HOT 1
- Error hard to debug because of minified JS HOT 4
- Net7 regression: Kestrel HttpRequestHeaders doesn't enumerate "Content-Length" unless there's another known header also present. HOT 5
- shaw 256 Failed to find a valid digest in the 'integrity' attribute for resource .net 8 HOT 3
- Issue with Failed to load resource: net::ERR_HTTP2_PROTOCOL_ERROR HOT 3
- "Onclick" JavaScript invocations no longer working after upgrade to .NET 8.0 from .NET 7.0 HOT 2
- builder.Services.AddDataProtection().PersistKeysToFileSystem() how to ensure 100% availability when a web farm of servers are using a single file share to decrypt and validate an AntiForgeryToken HOT 1
- webapi template uses HttpsRedirection and .http files redirect silently
- Perf improvement: updates
- /usr/share/dotnet/sdk/8.0.202/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(491,5): error NETSDK1082: There was no runtime pack for Microsoft.AspNetCore.App available for the specified RuntimeIdentifier 'browser-wasm'. HOT 2
- InputSelect does not bind correctly to Nullable<bool>
- The target "GenerateNPMCommandProps" does not exists in the project HOT 1
- Razor StreamRendering bug with EF Core
- First page load or any subsequent refreshes always utilize Blazor Server, while booting WebAssembly in the background HOT 11
- Bug: Hard reload not triggered when navigating from Interactive page to SSR page via browser back button
- Perf improvement: fortunes_dapper, updates
- Perf regression: fortunes
- The message The value '' is not valid for HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aspnetcore.