Azure Function CI build

Trying to set up CI for a series of Azure Functions (pre-compiled assemblies) but struggling. New pre-release VS2017.3 with Azure Function Tools extension and TeamCity running as build agent. Whenever I try to build a solution, I get a series of compiler errors:

enter image description here

If I compile the solution manually in VisualStudio, then the dependencies are resolved correctly after using the build agent. Fyi, I added a nuget restore step with NuGet v4.1 but no luck.

Any ideas? Or perhaps point me to a ps build script to create the final output structure (generated by the .json function, folder structure, etc.).

Update: Exit from nuget.exe restore phase:

[15:24:15]: [Step 2/7] restore: restore NuGet packages for nhdb.sln (3s) [15:24:15]: [restore] NuGet command: C: \ BuildAgent \ plugins \ nuget-agent \ bin \ JetBrains.TeamCity.NuGetRunner.exe C: \ BuildAgent \ tools \ NuGet.CommandLine.4.1.0 \ nuget.exe restore C: \ BuildAgent \ work \ 4921688dcda87d0e \ nhdb.sln [15:24:15]: [ restore] Run: C: \ BuildAgent \ temp \ agentTmp \ custom_script1291459864204598526.cmd [15:24:15]: [restore] in directory: C: \ BuildAgent \ work \ 4921688dcda87d0e [15:24:15]: [restore] JetBrains TeamCity NuGet Runner 8.0.46812.9 [15:24:15]: [Step 2/7] restore: restore NuGet packages for nhdb.sln (3s) [15:24:15]: [restore] NuGet Command: C: \ BuildAgent \ plugins \ nuget-agent \ bin \ JetBrains.TeamCity.NuGetRunner.exe C: \ BuildAgent \ tools \ NuGet.CommandLine.4.1.0 \ nuget.exe restore C: \ BuildAgent \ work \ 4921688dcda87d0e \ nhdb.sln [15: 24:15]:[restore] Run: C: \ BuildAgent \ temp \ agentTmp \ custom_script1291459864204598526.cmd [15:24:15]: [restore] in directory: C: \ BuildAgent \ work \ 4921688dcda87d0e [15:24:15]: [restore] JetBrains TeamCity NuGet Runner 8.0.46812.9 [15:24:15]: [restore] Registered additional extensions from paths: C: \ BuildAgent \ plugins \ nuget-agent \ bin \ plugins-4.0 [15:24:15]: [restore ] Setting environment variable 'NUGET_PACKAGES' to 'C: \ WINDOWS \ system32 \ config \ systemprofile.nuget \ packages' [15:24:15]: [restore] Run NuGet.exe 4.1.0.2450 from C: \ BuildAgent \ tools \ NuGet.CommandLine.4.1.0 \ nuget.exe [15:24:16]: [repair] Auto detect MSBuild: Using msbuild version '15 .3.409.57025 'from' C: \ Program Files (x86) \ Microsoft Visual Studio \ Preview \ Professional \ MSBuild \ 15.0 \ bin '. [15:24:17]:[restore] Package restore for C: \ BuildAgent \ work \ 4921688dcda87d0e \ AGP.NHDB.VSM \ AGP.NHDB.VSM.csproj ... [15:24:17]: [restore] Package restore for C: \ BuildAgent \ work \ 4921688dcda87d0e \ AGP.NHDB.BE \ AGP.NHDB.BE.csproj ... [15:24:17]: [restore] Package restore for C: \ BuildAgent \ work \ 4921688dcda87d0e \ AGP.NHDB.LU \ AGP .NHDB.LU.csproj ... [15:24:17]: [restore] Package restore for C: \ BuildAgent \ work \ 4921688dcda87d0e \ AGP.NHDB.SE \ AGP.NHDB.SE.csproj ... [15 : 24: 17]: [restore] Package restore for C: \ BuildAgent \ work \ 4921688dcda87d0e \ AGP.NHDB.DE \ AGP.NHDB.DE.csproj ... [15:24:17]: [restore] Package restore for C: \ BuildAgent \ work \ 4921688dcda87d0e \ AGP.NHDB.NL \ AGP.NHDB.NL.csproj ... [15:24:17]: [restore] Restore packages for C: \ BuildAgent \ work \ 4921688dcda87d0e \ AGP .NHDB.UK \ AGP.NHDB.UK.csproj ... [15:24:17]: [restore] GEThttps://api.nuget.org/v3-flatcontainer/microsoft.build.framework/index.json [15:24:17]: [restore] GET https://api.nuget.org/v3-flatcontainer/microsoft .build.utilities.core / index.json [15:24:18]: [restore] OK https://api.nuget.org/v3-flatcontainer/microsoft.build.framework/index.json 552ms [15:24 : 18]: [restore] CACHE https://api.nuget.org/v3-flatcontainer/microsoft.build.framework/index.json [15:24:18]: [restore] OK https: //api.nuget .org / v3-flatcontainer / microsoft.build.utilities.core / index.json 580ms [15:24:18]: [restore] CACHE https://api.nuget.org/v3-flatcontainer/microsoft.build.framework /index.json [15:24:18]: [restore] CACHEhttps://api.nuget.org/v3-flatcontainer/microsoft.build.framework/index.json [15:24:18]: [restore] CACHE https://api.nuget.org/v3-flatcontainer/microsoft .build.framework / index.json [15:24:18]: [restore] GET https://api.nuget.org/v3-flatcontainer/microsoft.build.utilities.core/15.1.548/microsoft.build. utilities.core.15.1.548.nupkg [15:24:18]: [restore] GET https://api.nuget.org/v3-flatcontainer/microsoft.build.framework/15.1.548/microsoft.build.framework .15.1.548.nupkg [15:24:18]: [restore] OK https://api.nuget.org/v3-flatcontainer/microsoft.build.utilities.core/15.1.548/microsoft.build.utilities. core.15.1.548.nupkg 12ms [15:24:18]: [restore] CACHEhttps://api.nuget.org/v3-flatcontainer/microsoft.build.framework/index.json [15:24:18]: [restore] OK https://api.nuget.org/v3-flatcontainer/microsoft .build.framework / 15.1.548 / microsoft.build.framework.15.1.548.nupkg 12ms [15:24:18]: [restore] CACHE https://api.nuget.org/v3-flatcontainer/microsoft.build .framework / index.json[15:24:18]: [restore] Performing restore ... [15:24:18]: [restore] Lock file has not changed. Skip write lock file. Path: C: \ BuildAgent \ work \ 4921688dcda87d0e \ AGP.NHDB.NL \ obj \ project.assets.json [15:24:18]: [restore] Restore completed in 1.38 seconds for C: \ BuildAgent \ work \ 4921688dcda87d0e \ AGP.NHDB.NL \ AGP.NHDB.NL.csproj. [15:24:18]: [restore] Performing restore ... [15:24:18]: [restore] Lock file has not changed. Skip write lock file. Path: C: \ BuildAgent \ work \ 4921688dcda87d0e \ AGP.NHDB.BE \ obj \ project.assets.json [15:24:18]: [restore] Restore completed in 1.46 seconds for C: \ BuildAgent \ work \ 4921688dcda87d0e \ AGP.NHDB.BE \ AGP.NHDB.BE.csproj. [15:24:18]: [restore] Performing restore ... [15:24:18]: [restore] Lock file has not changed.Skip write lock file. Path: C: \ BuildAgent \ work \ 4921688dcda87d0e \ AGP.NHDB.LU \ obj \ project.assets.json [15:24:18]: [restore] Recovery completed in 1.51 seconds for C: \ BuildAgent \ work \ 4921688dcda87d0e \ AGP.NHDB.LU \ AGP.NHDB.LU.csproj. [15:24:18]: [restore] Performing restore ... [15:24:18]: [restore] Lock file has not changed. Skip write lock file. Path: C: \ BuildAgent \ work \ 4921688dcda87d0e \ AGP.NHDB.SE \ obj \ project.assets.json [15:24:18]: [restore] Restore completed in 1.57 seconds for C: \ BuildAgent \ work \ 4921688dcda87d0e \ AGP.NHDB.SE \ AGP.NHDB.SE.csproj. [15:24:18]: [restore] Performing restore ... [15:24:18]: [restore] Lock file has not changed. Skip write lock file. Path: C: \ BuildAgent \ work \ 4921688dcda87d0e \ AGP.NHDB.VSM \ obj \ project.assets.json [15:24:18]:[restore] Restore completed in 1.62 seconds for C: \ BuildAgent \ work \ 4921688dcda87d0e \ AGP.NHDB.VSM \ AGP.NHDB.VSM.csproj. [15:24:18]: [restore] Performing restore ... [15:24:18]: [restore] Lock file has not changed. Skip write lock file. Path: C: \ BuildAgent \ work \ 4921688dcda87d0e \ AGP.NHDB.UK \ obj \ project.assets.json [15:24:18]: [restore] Restore completed in 1.68 seconds for C: \ BuildAgent \ work \ 4921688dcda87d0e \ AGP.NHDB.UK \ AGP.NHDB.UK.csproj. [15:24:18]: [restore] Performing restore ... [15:24:18]: [restore] Lock file has not changed. Skip write lock file. Path: C: \ BuildAgent \ work \ 4921688dcda87d0e \ AGP.NHDB.DE \ obj \ project.assets.json [15:24:18]: [restore] Restore completed in 1.74 seconds for C: \ BuildAgent \ work \ 4921688dcda87d0e \ AGP.NHDB.DE \ AGP.NHDB.DE.csproj. [15:24:18]:[restore] [15:24:18]: [restore] NuGet configuration files: [15:24:18]: [restore] C: \ WINDOWS \ system32 \ config \ systemprofile \ AppData \ Roaming \ NuGet \ NuGet.Config [ 15:24:18]: [restore] C: \ Program Files (x86) \ NuGet \ Config \ Microsoft.VisualStudio.Offline.config [15:24:18]: [restore] [15:24:18]: [ restore] Used feeds: [15:24:18]: [restore]https://api.nuget.org/v3/index.json [15:24:18]: [restore] C: \ Program Files (x86) \ Microsoft SDK \ NuGetPackages \ [15:24:18]: [restore ] Process ended with code 0

+3


source to share





All Articles