package-managers

Package manager in Visual Studio 2015 “407 (Proxy Authentication Required)”

妖精的绣舞 提交于 2019-11-27 23:49:42
问题 I understand this is an often asked question, however after days of research I've not found an answer to this particular problem. I have a new ASP.NET 5 (Core 1.0) MVC template that I'm trying to add a package to however each and every time I get in the Package Manager output: Response status code does not indicate success: 407 (Proxy Authentication Required). and the following at the top of solution explorer: my settings look fine and I am able to browse packages in the 'Manage Packages for

Why we need a package manager like Nuget?

北慕城南 提交于 2019-11-27 22:25:31
问题 I know Package Manager like NuGet help us when we want to use third party components. From Nuget Codeplex Page: NuGet is a free, open source developer focused package management system for the .NET platform intent on simplifying the process of incorporating third party libraries into a .NET application during development. There are a large number of useful 3rd party open source libraries out there for the .NET platform, but for those not familiar with the OSS ecosystem, it can be a pain to

Add custom package source to Visual Studio Code

偶尔善良 提交于 2019-11-27 17:18:38
问题 Does anybody know how to add custom package source to Visual Studio Code ? E.g. I'd like to add https://www.myget.org/F/aspnet-contrib/api/v3/index.json as a package source and drive these packages through project.json. 回答1: To add to the answer, adding a nuget.config in the project solves it for the project. Adding to the root is ok. The config could look like this: <?xml version="1.0" encoding="utf-8"?> <configuration> <packageSources> <add key="MyGet" value="https://www.myget.org/F/aspnet

Nu-Get & issue with project level dependences for projects referenced by multiple solutions

本秂侑毒 提交于 2019-11-27 13:57:10
问题 I'm trying to figure out what the best way to handle this scenario is. Let's say I have a library that's referenced by multiple different non-related solutions, let's call it WebServiceInterface.dll. This library has a dependency on JSON.NET. Before NuGet The JSON.NET binary was referenced via a SVN external in the WebServiceInterface project. Other solutions which had a dependency on WebServiceInterface referenced the project (also as an SVN external) and as a result pulled both the project,

What does this mean: Failure [INSTALL_FAILED_CONTAINER_ERROR]?

浪尽此生 提交于 2019-11-27 10:35:05
I try to deploy my app and sometimes get this error: Failure [INSTALL_FAILED_CONTAINER_ERROR] I tried to google it but don't find what the error means or what it's caused by. I deploy via IDE (IntelliJ) the file gets copied to the device to the /data/local/tmp (unrooted Huawei Ideos, running 2.2), but the package manager doesn't seem to like it. Before installing the apk, I already removed the app from the device beforehand. I also made sure there was no old file under /data/local/tmp on the device. Still I'm getting this error now. The package should be signed with the debug key, since I

composer.lock: how does it work?

柔情痞子 提交于 2019-11-27 10:25:22
问题 I'm trying to understand this part: http://getcomposer.org/doc/02-libraries.md#lock-file this lock file will not have any effect on other projects that depend on it. It only has an effect on the main project" Does that mean that if project P depends on library A, and library A depends on library B v1.3, project P won't care about the version of library B, and will possibly install B 1.4 instead? What's the point then? Or does it mean the opposite, as one would expect from a dependency manager

Homebrew install permissions issue

Deadly 提交于 2019-11-27 10:18:09
问题 I have a standard homebrew install inside of usr/local/ When I try: Larson-2:~ larson$ brew install postgresql Error: Cannot write to /usr/local/Cellar And when I use sudo: Larson-2:~ larson$ sudo brew install postgresql Cowardly refusing to `sudo brew install' What am I doing wrong? 回答1: You somehow have limited permissions to /usr/local/Cellar . Brew doesn't like to install with sudo which is why it refuses. Check the permissions: ls -ld /usr/local/Cellar Open them up for writing: sudo

How open new activity clicking an item in listview?

你离开我真会死。 提交于 2019-11-27 09:14:27
I can't start a new activity clicking over an item in my listview. I want that onItemClick can open the ApkInfoActivity .. Actually when i click nothing happen. protected void onItemClick(ListView l, View v, int position, long id, AdapterView<?> parent) { super.onListItemClick(l, v, position, id); final ApplicationInfo app = applist.get(position); PackageInfo packageInfo = (PackageInfo) parent.getItemAtPosition(position); AppDataActivity appData = (AppDataActivity) getApplicationContext(); appData.setPackageInfo(packageInfo); Intent appInfo = new Intent(getApplicationContext(), ApkInfoActivity

Invalid object name 'dbo.__MigrationHistory' using Database.Create; EF6.02 when connection string is passed in

為{幸葍}努か 提交于 2019-11-27 06:34:01
问题 I experience an error when trying to create a database using the following code. Note the problem does not happen if the connection string is not passed in. Also the problem happens when I run the program in the IDE. It does not happen if I run the program .exe or if I run the unit tests within the IDE. However if the database is created by running the unit tests or by running the .EXE then the __MigrationHistory table is created in the main tables section, not the system tables. public

Why use peer dependencies in npm for plugins?

我的未来我决定 提交于 2019-11-27 05:51:14
Why does, for example, a Grunt plugin define its dependency on grunt as " peer dependencies "? Why can't the plugin just have Grunt as its own dependency in grunt-plug/node_modules ? Peer dependencies are described here: https://nodejs.org/en/blog/npm/peer-dependencies/ But I don't really get it. Example I'm working with AppGyver Steroids at the moment which uses Grunt tasks to build my source files into a /dist/ folder to be served on a local device. I'm quite new at npm and grunt so I want to fully comprehend what is going on. So far I get this: [rootfolder]/package.json tells npm it depends