Software Development

A journal for sharing all things software development related

Errors pushing packages to Github nuget repository (Resolved)

Mon, 15 Jun 2020 19:19 UTC by garethbrown

Today I encountered errors pushing packages to Github nuget repository that I haven't pushed to for a few months.

This SO post helped me to solve this issue:

If you are seeing errors like those below, the issue may be that you need to add properties in the .csporj file.

Package "MyApp.MyProject" is already associated with another repository

repo name with owner has wrong number of components: [xxx MyApp.MyProject packages 100000] (wanted 2, got 4)

No destination repository detected. Ensure the source project has a 'RepositoryUrl' property defined. If you're using a nuspec file, ensure that it has a repository element with the required 'type' and 'url' attributes.

This was the answer ...

If this is useful to anyone my package.json file had the following:

"repository": {
    "type": "git",
    "url": "git://"

when it should have been

"repository": {
    "type": "git",
    "url": ""

The information on this site is provided “AS IS” and without warranties of any kind either
express or implied. To the fullest extent permissible pursuant to applicable laws, the author disclaims all warranties, express or implied, including, but not limited to, implied warranties of merchantability, non-infringement and suitability for a particular purpose.

UI block loader
One moment please ...