asp.net - VSTS Build With Local Nuget Package From Local Nuget Server -


has had success building aspnet5 application in vsts local (not public facing) nuget server feed? following these steps: https://msdn.microsoft.com/library/vs/alm/build/azure/deploy-aspnet5 can see script restoring errors out on local package. sure configuring wrong. have tried:

  1. add nuget installer task arg solution , nuget arguments nugete.exe -source "https://www.nuget.org/api/v2/;http://mynugetserver" (and tried including no nuget arguments , including nuget.config in root of solution). however, build runs exception saying cant find local url: system.net.http.httprequestexception: error occurred while sending request. ---> system.net.webexception: remote name not resolved: 'mydomain'. okay understand that, recognize local url?
  2. after researching thought have use package manager extension vsts. loaded packaged on there successfully, when included package url in nuget.config bunch of unauthorized responses prebuild.ps1 because trying @ vsts package url too. , now.

current nuget.config

    <?xml version="1.0" encoding="utf-8"?>     <configuration>       <packagerestore>         <add key="enabled" value="true" />         <add key="automatic" value="true" />       </packagerestore>       <config>         <!--do need include proxy infor here behind 1 @ work-->       </config>       <bindingredirects>         <add key="skip" value="false" />       </bindingredirects>       <activepackagesource>         <add key="nuget.org" value="https://api.nuget.org/v3/index.json" />       </activepackagesource>       <packagesources>         <add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolversion="3" />         <add key="nuget.org" value="https://www.nuget.org/api/v2/" />         <add key="local" value="https://vstsurl/defaultcollection/_packaging/local/nuget/v3/index.json" /> <add key="company nuget gallery v2" value="http://mydomain/nuget/api/v2" />       </packagesources>     </configuration> 

update

if use package manager on vsts these warnings / exceptions seem come local feed. not sure why using local feed external packages

 system.net.http.httprequestexception: response status code not indicate success: 401 (unauthorized). ... other exceptions here           ----------     restore failed 

if using build agent hosted vsts , nuget server in local (cannot access internet), package restore fail since build agent cannot find nuget server. you'd either configure nuget server can accessed internet or deploy own build agent in same intranet nuget server.


Comments

Popular posts from this blog

ios - UITEXTFIELD InputView Uipicker not working in swift -

Hatching array of circles in AutoCAD using c# -