I am packaging a service fabric ASP.NET Core WebApp with a powershell script
$Env:ASPNETCORE_ENVIRONMENT = "Development"
$msbuild = "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe"
& C:\"Program Files (x86)"\NuGet\nuget.exe restore "D:\build-dir\ADM-DEV-JOB1\ConX.AdminFabricApp.sln" -source "https://api.nuget.org/v3/index.json;http://www.conxnuget.io/nuget"
& $msbuild "D:\build-dir\ADM-DEV-JOB1\ConX.AdminFabricApp\ConX.AdminFabricApp.sfproj" /t:Package /p:Configuration="Release"
when I run this script in ISE on the build server it runs fine, running as a bamboo task it fails and is missing a bunch of references like Nuget restore has not run (which it has according to logs) I am at a bit of a loss as to the issue here?
G’day Community! As we gear up to introduce Bamboo Data Center to the world, we wanted to make sure that we shared a bit more about Bamboo, the product. Our team has put together an overview video ...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events