Fix VS Mobile Center Error: Publish build artifacts failed with error: Not found PathtoPublish - visual-studio-app-center

When starting a build in Visual Studio App Center I am getting this error in the build logs. How do I fix this?
==============================================================================
##[error]Publish build artifacts failed with error: Not found PathtoPublish: /Users/ci/agent/vstsagent/_work/1/a/symbols
##[section]Finishing: Publish symbols
##[section]Starting: Create distribution
==============================================================================
Task : Mobile Center Upload
Description : Upload mobile app packages to Visual Studio Mobile Center
Version : 0.115.1
Author : Microsoft Corporation
Help : Upload mobile app packages to Visual Studio Mobile Center
==============================================================================
##[warning]Cannot find any file based on /Users/ci/agent/vstsagent/_work/1/a/symbols.
##[error]TypeError: Cannot read property 'forEach' of null
##[section]Finishing: Create distribution
##[section]Starting: Post Job Cleanup

In order to fix this issue you can try the following:
Open your project.
Go to Build Settings.
For Debug Information Format select "DWARF with dSYM File".
Commit code and push to repo.
Run build again.

Related

VS AppCenter - XCUI - Getting Failed to analyze MachO file error

I am creating an azure Devops pipeline for UI testing my iOS application.
I have built my project and feeding my ipa to Visual Studio AppCenter Test pipeline, I was getting the error,
Error: Failed to analyze MachO file: Unknown load command: 2147483700
I tried to run my code manually using appcenter-cli from terminal and still getting the same error. I saw this issue in GitHub and not sure how to do this workaround in devops pipeline.
Am I missing something here? Can no-one use AppCenter CLI because of this issue?
You have to build your app with xcode 11 and than it works. But this is just a workaround. Hopefully they will fix it in the near future.

Azure Kudu is unable to restore packages after 2.2.1 sdk release

I'm having trouble to deploy to Azure App Service from git last 2 days. Kudu is unable to run dotnet restore with following error:
Command: "D:\home\site\deployments\tools\deploy.cmd"
Handling ASP.NET Core Web Application deployment.
Restoring packages for D:\home\site\repository\Web.csproj...
D:\Program Files (x86)\dotnet\sdk\2.2.100\NuGet.targets(114,5): error : Could not find file 'D:\home\.nuget\runtime.win7-x86.runtime.native.system.data.sqlclient.sni\4.0.1\runtime.win7-x86.runtime.native.system.data.sqlclient.sni.4.0.1.nupkg'. [D:\home\site\repository\Web.csproj]
Failed exitCode=1, command=dotnet restore "D:\home\site\repository\Web.csproj"
An error has occurred during web site deployment.
\r\nD:\Program Files (x86)\SiteExtensions\Kudu\79.11121.3655\bin\Scripts\starter.cmd "D:\home\site\deployments\tools\deploy.cmd"
I tried to change SDK to 2.1.500 via global.json but the error is very same except SDK version.
Tried restart, stop/start the service with no luck. I couldn't find any way to deploy the app.
Any idea how to fix this?

Flutter: Android build for deployment

How can I create/prepare Android build for deployment on Appstore, using Android Studio? (I've developer account singed app and keys/credential)
What are step and checklist, required to create Android deployment build for flutter project
They have provided all the steps over here
Preparing an Android App for Release.
And for project You can set all common settings in pubspec.yaml file.
To build an android release of your project.
1. Using the GUI (AndroidStudio)
As shown in the image below, in your Android Studio action bar click on build and then select flutter and choose the type of build you want;
Build Apk
Well, for example when you want to test your app outside of google play store.
Build App bundle
Recommended when you want to publish your app on playstore
2. Using the CLI (Terminal, Cmd )
Open the terminal and navigate to the root folder of your project and then tape the following command;
flutter build apk
or
flutter build appbundle
After the build you'll see a message like this :
Running Gradle task 'assembleRelease'... 191.3s
✓ Built build/app/outputs/flutter-apk/app-release.apk (32.1MB).
This means everything is fine, so go to the build folder in your project's root folder to access your final app file.
For more details, Please use the official documentation guidelines : https://docs.flutter.dev/deployment/android.

VSTS Release Management for Nuget Package with Hosted Linux Preview using dotnet

Is it possible to setup a release management task that works for the Hosted Linux Preview Agent that pushes a nuget package using dotnet push?
I've got a Build process that creates the nuget package and publishes it as an artifact. So far I've got this, which works when I use the Hosted VS2017 Agent.
The error i'm getting is:
2017-11-16T09:08:37.3084270Z ##[section]Starting: dotnet push
2017-11-16T09:08:37.3413530Z ==============================================================================
2017-11-16T09:08:37.3426100Z Task : .NET Core
2017-11-16T09:08:37.3439540Z Description : Build, test, package, or publish a dotnet application, or run a custom dotnet command. For package commands, supports NuGet.org and authenticated feeds like Package Management and MyGet.
2017-11-16T09:08:37.3451740Z Version : 2.1.8
2017-11-16T09:08:37.3464910Z Author : Microsoft Corporation
2017-11-16T09:08:37.3477740Z Help : [More Information](https://go.microsoft.com/fwlink/?linkid=832194)
2017-11-16T09:08:37.3491430Z ==============================================================================
2017-11-16T09:08:40.3181020Z ##[error]No packages matched the search pattern.
2017-11-16T09:08:40.3305430Z ##[section]Finishing: dotnet push
I'm wondering if there is a difference between the agents on how they pattern match file names.
So it turns out that backslashes and forward slashes are pretty important.
I changed the Path to NuGet package(s) to publish to use forward slashes $(System.DefaultWorkingDirectory)/**/*.nupkg
And what do you know, it works :D

TeamCity FTP Publish

I am trying to build and deploy my project in team city. I get green but it does not publish project to FTP. What could be the problem?
Teamcity Build Step:
Publish Profile:
Buildlog of Teamcity:
Try the build step Visual Studio.sln, give the Solution file path , select the Visual Studio Version, select the Target as build;publish, select Configuration as release. Then run the program. You will get an error message. Then check the following link for a solution.
http://www.jayway.com/2011/03/20/configuring-automatic-deployment-of-a-windows-azure-application-using-teamcity/
I hope this would help you.

Resources