simple-nuget-server | A very simple PHP NuGet server | DevOps library
kandi X-RAY | simple-nuget-server Summary
kandi X-RAY | simple-nuget-server Summary
A very simple NuGet server for my personal use, similar to [NuGet.Server] but in PHP. Designed for scenarios where a single user (ie. a person or a build server) pushes packages.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Add entry meta data
- Search packages by name
- Delete a package version
- Create tables .
- Get packages updates .
- Add a feed entry
- Render the dependencies .
- Parse the ORDER BY clause .
- Start the feed
- Adds metadata to an entry .
simple-nuget-server Key Features
simple-nuget-server Examples and Code Snippets
Community Discussions
Trending Discussions on simple-nuget-server
QUESTION
Forgive what must be a very simple oversight on my part but I simply cannot get this to work as expected.
I am building a .NET Framework 4.6 Class Library that needs to be downloaded by other applications from a private nuget repository. Here is my process:
- I have a test project, ConsoleApp5. It has a simple main function in it.
- I download my NuGet package, MyPackage (right click on project and click Manage NuGet Packages, select appropriate repo and package, click install.)
- I run my test. In this case, I'm simply trying to instantiate a class, something not difficult. I'm getting an error about class accessibility.
- Back in MyPackage, I replace all instances of the word
protected
withpublic
. I add a new class as well by right-clicking on the project, selecting Add Item, targeting a class and giving it the nameTestClass
. - I go to Project > MyPackage Properties... > Application (tab) > Assembly Information, and I manually update the version patch number by one. So now it is 1.0.5.
- I go to the project directory in the Developer Command Line and run the following command:
C:\Users\jptak\Downloads\nuget.exe pack -Version 1.0.5
- Then I run the following command to push the update (Success message:
Your package was pushed.
):C:\Users\jptak\Downloads\nuget.exe push MyPackage.1.0.5.nupkg MySecretCodeGoesHere -src http://my.nuget.server.goes.here.com
- I go back to ConsoleApp5, Manage NuGet Packages, see the update in the appropriate package, and click the update arrow. The download completes and the new version number is there.
- I go to use new classes or check that old errors are fixed and all of my tests fail.
TestClass
is not there.
This leads me to believe that the code I am writing is not making it to the NuGet server. Does anyone know what I am missing from this process to make the most recent version of the code get updated on the server?
This process is foreign to me as I am not a .NET developer (I work with PHP mostly).
Here are some more pieces of information about my IDE settings:
- In Build > Configuration Manager... > Debug has been switched to Release
- I have tried building, rebuilding, and cleaning my project. I haven't seen that any of these processes has had any effect on the code being pushed at all.
Here is the code from my ConsoleApp5:
...ANSWER
Answered 2019-Jan-22 at 17:08Bit long for a comment, not exactly an answer but here we go:
So top debugging tips for NuGet packages are:
Download the package manually. A
.nupkg
file is just a zip file that can be opened with 7Zip or any other archive tool.Once inside you can inspect both the
.nuspec
file that has been used to pack the package, and inside thelib
folder are the dlls that have been supplied.A decompiler like DotPeek or ILSpy can be used on the dll to see exactly what is going on inside the dll.
Possible causes of your symptoms could include the NuGet server giving a false success, or your application failing to update the package and still refering to the old one.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install simple-nuget-server
A web server (Nginx, Apache, Cherokee, etc.)
PHP 5.4+ or HHVM
SQLite, XML, and Zip extensions (bundled with HHVM, or apt-get install php5-sqlite for PHP 5, or apt-get install php7.0-sqlite php7.0-xml php7.0-zip for PHP 7)
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page