5

I have the following build pipe line which I created using the Universal Windows Platform Template.

build pipeline

I want to deploy to the app center.

What do I put for the Binary File Path?

I see the help states

Relative path from the repo root to the APK or IPA file you want to publish

However there will be no APK files because the build does not make them.

Am I missing a task?

I tried

drop

I got an error

Error: Cannot find any file based on D:\a\1\s\drop.

[Update] I edited this question to make it clearer I hope.

[Update]

I wonder if I need a Windows Application Packaging Project in the Repository? packaging project

[Update]

It is clear from the docs that I cant use App Center to distribute to the store.

Never the less I assume App Center is still relevant to UWP. otherwise why would it even have a column in the support matrix and have a build task in a template called UWP? Thus why do I get the error deploying to the App Center?

Kirsten
  • 15,730
  • 41
  • 179
  • 318

1 Answers1

0

"Visual Studio App Center" is for mobile applications like Android, iOS, Windows Phone etc., in these kinds of apps you have .apk file (for Android) or .ipa file (for iOS).

You have created a "Universal Windows Platform" application, is not a mobile app, you can't publish the app to VS App Center, so your last task is incorrect.

The template is fine, you build the application (UWP - apps run on all Windows 10 devices, from your TV to your tablet or PC) and the artifact is .exe file, like every windows application.

You can upload the application to the Windows Store with this task, read here which are the steps to deploy to store.

Shayki Abramczyk
  • 36,824
  • 16
  • 89
  • 114
  • Surely since I used the Universal Windows Template, and that contains a task to deploy to the app center then it is possible? – Kirsten Oct 26 '18 at 11:52
  • 1
    I checked nod and you right, it gives me this step but in Disable, I think because it gives you the option to upload to vs app center if you build a cross-platform app (in Xamarin, for example) and then you have uwp app and Android/iOS app. in your case, if it's just uwp app you don't need to use this step. – Shayki Abramczyk Oct 26 '18 at 11:56
  • I want to put it in the store. Isn't the app center a necessary step to get to the store? After all I can make .apk files by right click Deploy in Visual Studio. – Kirsten Oct 26 '18 at 12:21
  • 1
    When you deploy from vs to the store is not to vs app center, is to Windows Store, you need this task: https://marketplace.visualstudio.com/items?itemName=MS-RDX-MRO.windows-store-publish – Shayki Abramczyk Oct 26 '18 at 12:50
  • You are right that you cant publish to the app store from the app center.. https://learn.microsoft.com/en-us/appcenter/distribution/stores/ never the less it does seem to be on the radar. – Kirsten Oct 29 '18 at 19:31
  • but how do I deploy to the app center? – Kirsten Oct 29 '18 at 20:47
  • 1
    My mistake... please check this: https://stackoverflow.com/questions/47730034/distribute-uwp-app-to-app-center-aka-mobile-center-using-vsts-task – Shayki Abramczyk Oct 29 '18 at 20:52