dotnet / core

.NET news, announcements, release notes, and more!
https://dot.net
MIT License
20.68k stars 4.86k forks source link

.NET 5 in Surface Hub devices #7226

Open alexispolakMURAL opened 2 years ago

alexispolakMURAL commented 2 years ago

Hi! I'm making a WinUI3 app that uses the WebView2 Fixed Runtime library for Surface Hub devices. I was able to upload the app to the Microsoft Store but when I download it to test it I'm getting that I need to install .NET in order to use it. The main problem here is that Surface Hub devices can only install apps from the Microsoft Store, and you can't download/install .NET 5 from it.

Is there a way that I can distribute .NET 5 with my app so there is no need to install anything when someone downloads the app?

Thanks !

teo-tsirpanis commented 2 years ago

Hello @alexispolakMURAL, .NET supports self-contained deployment of apps that do not need installing anything machine-wide, and I think you can publish them on the Windows Store.

ghost commented 2 years ago

This issue has been marked needs-author-action since it may be missing important information. Please refer to our contribution guidelines for tips on how to report issues effectively.

alexispolakMURAL commented 2 years ago

Thanks @teo-tsirpanis ! Based on that doc I was able to make a self-contained unpacked deployment of the app. The problem here is that the process to make it is generating a .exe file when I need a .appx file so I can upload it to the Microsoft Store, and also is not taking into consideration my webview2 runtime fixed version folder with all the files inside of it that I need to run the app. Is any case where I could solve this ?

I prefer using the app packed because I can include the WebView2 Runtime Fixed Version and also generate the release to the Microsoft Store. Is there a way to put the self-contained .NET on the app packed to submit it to the store?

NikolaMilosavljevic commented 2 years ago

cc @leecow, @richlander