简体   繁体   中英

ASP.NET Core app CI using VS code and CLI

I am using bitbucket private repos as project dependencies with .net core tooling for deploying a asp.net core web api.

I have generated this project using the .net core CLI tools outside Visual Studio 2015/2017 on a Mac system using similar steps as documented in msdn

How do I include the bitbucket private repos as project dependencies for this project and then use the bitbucket CI pipelines product for deploying to azure?

I followed a recent msdn article on CI using asp.net core, but doesn't talk about how to include private or non-globally available nuget dependencies

One way I thought of was by making the private repos as git submodules, but landed up with issues mentioned here and here

You need to create and host your own Nuget feed, put your private nuget packages there and update nuget configuration for project to use that feed during package restore. You may read about available options in Hosting packages section in nuget documention:

  • Local feed : Packages are simply placed on a suitable network file share, ideally using nuget init and nuget add to create a hierarchical folder structure (NuGet 3.3+)

  • NuGet.Server : Packages are made available through a local server through HTTP

  • NuGet Gallery: Packages are hosted on an Internet server using the NuGet Gallery Project on GitHub. NuGet Gallery provides user management and additional features such as an extensive web UI that allows searching and exploring packages from within the browser, similar to nuget.org.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM