日韩天堂,国产精品久久久久久久久久一区,羞羞羞网站,自拍视频网站,久久亚洲欧美成人精品,桃花阁成人网在线观看

Hello! 歡迎來到小浪云!


Fixing Missing Windows App Runtime Environment Prompt for Unpackaged WinUI 3 Applications


avatar
小浪云 2025-05-24 17

this article will guide you on how to resolve the issue of a missing windows app runtime environment prompt when running non-packaged winui 3 applications on a customer’s machine.

The prompt for a missing Windows App Runtime environment on the user’s machine appears as follows:

Fixing Missing Windows App Runtime Environment Prompt for Unpackaged WinUI 3 Applications alt=”Fixing Missing Windows App Runtime Environment Prompt for Unpackaged WinUI 3 Applications” />By clicking “Yes,” you will be directed to the download page at https://www.php.cn/link/460eb45f1f9b67a58c96a73be551f37b.

To resolve this issue, you can download and install the Windows App Runtime installation package, known as WindowsAppRuntimeInstall.exe.

However, requiring users to install additional files like WindowsAppRuntimeInstall.exe is not ideal for an application. This article will explain how to configure WinUI 3 applications to function like traditional Win32 applications, allowing them to be simply copied and run on a user’s machine.

Step 1: Ensure that the microsoft.WindowsAppSDK NuGet package is at version 1.2 or later. As of June 15, 2023, the latest version available is 1.3.230602002. The WindowsAppSdkUndockedRegFreeWinRTInitialize feature, which helps avoid the aforementioned prompt, was introduced in version 1.2.

Step 2: Modify the csproj project file by setting WindowsAppSDKSelfContained to true and WindowsPackageType to None. When these settings are configured as such, the SDK automatically sets WindowsAppSdkUndockedRegFreeWinRTInitialize to true.

The updated csproj project file would look like this:

<project sdk="Microsoft.NET.Sdk">   <propertygroup>     <outputtype>WinExe</outputtype>     <targetframework>net6.0-windows10.0.19041</targetframework>     <nullable>enable</nullable>     <usewinui>true</usewinui>     <platforms>x86;x64;x86</platforms>     <runtimeidentifiers>win10-x86;win10-x64</runtimeidentifiers>     <windowsappsdkselfcontained>true</windowsappsdkselfcontained>     <windowspackagetype>None</windowspackagetype>   </propertygroup>   <itemgroup>     <packagereference include="Microsoft.WindowsAppSDK" version="1.3.230602002"></packagereference>     <packagereference include="Microsoft.Windows.SDK.BuildTools" version="10.0.22621.756"></packagereference>   </itemgroup> </project>

After applying these modifications, you can publish the application independently, eliminating the need for users to install the Windows App Runtime environment. The application can be run by simply double-clicking it.

Due to the limited official documentation available on WindowsAppSdkUndockedRegFreeWinRTInitialize and UndockedRegFreeWinRT, I am not well-versed in their specifics. If you’re interested in learning more, I recommend further exploration on your own.

相關閱讀

主站蜘蛛池模板: 2021国产麻豆剧传媒新片 | 羞羞视频免费网站入口 | 国产精品亚洲欧美一级久久精品 | 免费版| 亚洲国产成人最新精品资源 | 亚洲电影免费在线看精品国产 | 中文字幕亚洲综合久久2 | 日本一区二区视频在线 | 欧美日韩小视频 | 羞羞的视频在线免费观看 | 亚洲一级电影 | 欧美专区在线观看 | 一级片在线免费看 | 国产伦视频 | 男女精品视频 | 精品国产一区在线观看 | 国产精品资源在线观看网站 | 欧美精品久久久久久久小说 | 欧美色婷婷 | 四虎影视最新网站在线播放 | 男人的天堂日本 | 亚洲综合激情六月婷婷在线观看 | 一级片在线免费播放 | 在线看日韩 | 欧美成人高清性色生活片 | 在线观看国产视频 | 成人毛片一区二区三区 | 亚洲国产成人精品电影 | 自拍 欧美 日韩 | 久久国产视频精品 | 久久国产精品久久精品国产 | 男女黄网站 | 欧洲一区二区三区 | 男女免费视频网站 | 五月激情六月 | 伊人激情在线 | 久久久精品日本一区二区三区 | 中文字幕 自拍偷拍 | 九一网站免费看nba 九九影音 | 波多野结衣视频免费观看 | 正在播放国产一区 |