{"id":23155674,"url":"https://github.com/jefersonsv/nuspecfromgithub","last_synced_at":"2025-08-17T23:32:14.193Z","repository":{"id":27723541,"uuid":"115033868","full_name":"jefersonsv/NuspecFromGithub","owner":"jefersonsv","description":"Utility to create .nuspec file from github and project assembly","archived":false,"fork":false,"pushed_at":"2022-12-08T01:22:38.000Z","size":542,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-17T18:24:51.100Z","etag":null,"topics":["assembly","csproj","github","nuget","nuspec"],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jefersonsv.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-12-21T18:11:02.000Z","updated_at":"2021-04-30T14:07:58.000Z","dependencies_parsed_at":"2023-01-14T07:22:01.570Z","dependency_job_id":null,"html_url":"https://github.com/jefersonsv/NuspecFromGithub","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jefersonsv%2FNuspecFromGithub","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jefersonsv%2FNuspecFromGithub/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jefersonsv%2FNuspecFromGithub/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jefersonsv%2FNuspecFromGithub/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jefersonsv","download_url":"https://codeload.github.com/jefersonsv/NuspecFromGithub/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230181547,"owners_count":18185937,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["assembly","csproj","github","nuget","nuspec"],"created_at":"2024-12-17T21:11:01.556Z","updated_at":"2024-12-17T21:11:02.388Z","avatar_url":"https://github.com/jefersonsv.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NuspecFromGithub\nUtility to create .nuspec file from github and project assembly\n\n# Usage\n```bash\n-p, --project... Specify the project path file\n\n-f, --force[optional]... Force recreate file\n\n-g, --github... Specify the username/repository of github\n```\n\n# Features\n\n* Create nuspec file automatically\n* Access github API to get attributes: id,  title, authors, owners, license, project url, description, commit notes and tags\n* Get version file of AssemblyInfo.cs by regex\n\n# How to run\n\nGet binary file on github releases, chocolatey or adding nuget reference and execute:\n\n```bash\nNuspecFromGithub.exe -p ..\\..\\ --force -g jefersonsv/NuspecFromGithub\n```\n\nNuspecFromGithub\n\n## From github releases\nGet the realease on: https://github.com/jefersonsv/NuspecFromGithub/releases/tag/1.0.0\n\n## From chocolatey\n```bash\nchoco install NuspecFromGithub\n```\n\n## Adding nuget reference\n```bash\nPM\u003e Install-Package NuspecFromGithub\n```\n\n# Result\n\nThis command will generate the **NuspecFromGithub.nuspec** in same folder of .csproj file with content\n\n```xml\n\u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e\n\u003cpackage\u003e\n  \u003cmetadata\u003e\n    \u003cid\u003eNuspecFromGithub\u003c/id\u003e\n    \u003cversion\u003e1.0.0.0\u003c/version\u003e\n    \u003ctitle\u003eUtility to create .nuspec file from github and project assembly\u003c/title\u003e\n    \u003cauthors\u003eJeferson Tenorio\u003c/authors\u003e\n    \u003cowners\u003eJeferson Tenorio\u003c/owners\u003e\n    \u003clicenseUrl\u003ehttp://choosealicense.com/licenses/mit/\u003c/licenseUrl\u003e\n    \u003cprojectUrl\u003ehttps://github.com/jefersonsv/NuspecFromGithub\u003c/projectUrl\u003e\n    \u003ciconUrl\u003e\u003c/iconUrl\u003e\n    \u003crequireLicenseAcceptance\u003efalse\u003c/requireLicenseAcceptance\u003e\n    \u003cdescription\u003eUtility to create .nuspec file from github and project assembly\u003c/description\u003e\n    \u003creleaseNotes\u003eimplementation\u003c/releaseNotes\u003e\n    \u003ccopyright\u003eCopyright 2017\u003c/copyright\u003e\n    \u003ctags\u003e\u003c/tags\u003e\n  \u003c/metadata\u003e\n\u003c/package\u003e\n```\n\nAfter file created, on same folder of .csproj file run below command to create .nupkg:\n* For NuGet Version: 4.3.0.4406\n\nSet your nuget ApiKey before below steps running the command (it's necessary only first time):\n```bash\nnuget.exe setApiKey \u003capi-key\u003e\n```\n\nTo put your package to Nuget execute:\n\n```bash\nnuget pack NuspecFromGithub.nuspec -IncludeReferencedProjects\nnuget push \u003cnupgk-generated-file\u003e.nupkg -Source https://www.nuget.org/api/v2/package\n```\n\n\n\nThe command setApi it's option if the key has been configureted previous\n\n# Tips\n* https://docs.microsoft.com/en-us/nuget/create-packages/creating-a-package\n* https://blog.codeinside.eu/2017/02/13/create-nuget-packages-with-cake/\n* https://docs.microsoft.com/en-us/nuget/tools/nuget-exe-cli-reference\n\n# Thanks\n\n* https://github.com/j-maly/CommandLineParser\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjefersonsv%2Fnuspecfromgithub","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjefersonsv%2Fnuspecfromgithub","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjefersonsv%2Fnuspecfromgithub/lists"}