Build NuGet Package automatically including referenced dependencies

前端 未结 4 2582
长情又很酷
长情又很酷 2020-12-02 08:05

I want to run a local/internal NuGet repository. I think I\'ve figured out how to \"reuse\" existing NuGet packages by including them in a dummy project using NuGet and sca

4条回答
  •  感动是毒
    2020-12-02 08:58

    Check this out!

    The solution which I found is an extension for Visual Studio: https://visualstudiogallery.msdn.microsoft.com/fbe9b9b8-34ae-47b5-a751-cb71a16f7e96/view/Reviews

    You simply add new project called Nuget Package NuGet Package

    Then you are adding interesting you projects to references and BOOOM !! All dependencies and file directories are automatically added. If you want to modify NuSpec data you click right at project and go to Properties, then modify what you want. Generated NuSpec and nupkg will be in folder obj of your new project. I hope it helps ;).

提交回复
热议问题