question

revans611 avatar image
1 Vote"
revans611 asked ·

Is UWP the Right Development Tool for My Project?

I want to create an app for Window Store, but I fear that UWP is not the right development tool. My project targets the Windows desktop only, and my project will rename directores and files, and it will replace text in files.

After doing some research here, I think I have determined that a file picker can be used to allow the user to access additional locations, but I am not sure if my app would be allowed to rename directories, rename files and replace text.

I don't want to do a lot of development with UWP only to find that I have programmed my app into a hole and have to restart with a different strategy.

uwp
· 1
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

To publish to Windows Store, you can write your desktop app and then package it in MSIX, https://docs.microsoft.com/en-us/windows/msix/packaging-tool/create-app-package-msi-vm

0 Votes 0 · ·
jtorjo avatar image
0 Votes"
jtorjo answered ·

Let me save you a LOT of pain:

DO NOT USE UWP.

You'll end up hating your life, probably missing all your deadlines, and feel as if the "platform" is fighting you, every time coming up with things like "But you should do it like this".

Here are a few "gotchas" that simply make this close to "I would rather develop software for Apple instead": https://docs.microsoft.com/answers/questions/608/please-either-allow-systemio-all-over-hdd-or-drast.html https://docs.microsoft.com/answers/questions/4027/uwp-cant-install-signed-application-non-ms-storeco.html

And as a bonus, especially for you, say you actually request broadSystemAccess (basically, access to all HDD). Someone completely out of touch with reality at Microsoft, designed the following stupidity:

  1. When you request broadSystemAccess, your application, by default, DOES NOT have that access.

  2. You need to make your app resilient to this change, and handle "Access Denied" requests. In such a case, you should point your user to open "File System Privacy Settings" (there is a rather simple way to do it)

  3. The user ends up in that settings window, and he'll toggle your app ON...

  4. ... at which point, Windows closes your application.

  5. The user needs to restart your application

The point 4. is simply beyond stupidity - it's the worst UI design flow anyone could come up with.

· Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

revans611 avatar image
1 Vote"
revans611 answered ·

@jtorjo

I have actually completed my app, using WPF, and I was considering rewriting it to UWP, but it looks like you have saved me a lot of grief.

Thank you.

· 1 · Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Glad to be of help. In my case, I was actually forced to port my app from WPF to UWP because I need win2d (and that's only UWP). I've spent waaay more than I'd like to admit to myself doing that.

And trust me, if there had been another way for me, I would have taken it. All the best!

0 Votes 0 · ·