uwp
18 TopicsMYSYS2 Installation Guide for Cross-Compilation on Visual Studio 2017, 2019, 2022, and WSL2
Use Notepad to create this file on your desktop or another folder: https://sourceforge.net/projects/openscriptlab/files/IDE_Compilation/MYSYS2.txt/download MYSYS2 Paths: Use Notepad to create this file on your desktop or another folder: https://sourceforge.net/projects/openscriptlab/files/IDE_Compilation/MYSYS2_Path_Win.txt/download NOTE: This folder layout, which can be easily edited, was generated with a batch file that utilizes the default configuration that comes with the UI-based setup program / installer. Use Notepad to create this file on your desktop or another folder: https://sourceforge.net/projects/openscriptlab/files/IDE_Compilation/Generate_MYSYS2_Folder_Paths_Win.bat/download388Views0likes0CommentsRuntime Broker - Consuming lots of memory.
Hello All, I have developed a UWP app years ago to download and store files and sync data from a service of mine. This application has been stable and working without issues for long time, however a recent change in the behaviour of the solution has meant it's almost continually streaming data from the service and a side effect of that means the runtime broker is consuming so much memory the system grinding to a halt, even stopping the traffic doesn't free the memory. Is there any way I can debug what is happening with this RuntimeBroker or understand why this is happening?269Views0likes0CommentsSecure Data Storage for WinUI application
UWP being a sandboxed application had a way to save data using PasswordVault/Credential Manager, but WinUI doesn't offer the same level of security since other apps can access the data. DPAPI also doesn't provide a good way to protect the data as any app running in the same User Context can unprotect it. Adding entropy helps, but where do I store the entropy? Can somebody help me understand the mechanism for storing data securely in Windows App SDK?407Views0likes0CommentsIntegrate the Microsoft.BingAds.UETSdk into our UWP product
Hello, We are currently trying to integrate the UET (Universal Event Tracking) SDK ([Microsoft.BingAds.UETSdk](https://www.nuget.org/packages/Microsoft.BingAds.UETSdk)) into our UWP product. We have been following the documentation closely, but we encounter an issue as soon as we implement the step "Import all of the .NET Native / CoreCLR props" from [this guide](https://learn.microsoft.com/en-us/advertising/guides/windows-app-uet-sdk?view=bingads-13#cpluspluswinrt). After adding this step, when we attempt to submit our UWP package to the Windows Store, we receive the error: "You cannot submit pre-compiled .NET Native packages." For testing purposes, we created an entirely blank project and followed the instructions step by step: 1. Blank project (UetTestBlank.rar and UetTestBlank_1.0.60.0_x86_x64_arm_arm64) - successfully submitted to the Windows Store. 2. Added only the .dll without modifying project settings (UetTestUetPkgOnly_1.0.60.0_x86_x64_arm.appxbundle and UetTestUetPkgOnly.rar) - successfully submitted to the Windows Store. 3. Modified the project by adding "Import all of the .NET Native / CoreCLR props" (UetTestUetPkgWithProjectFileMod.rar and UetTestUetPkgWithProjectFileMod_1_0_60_0_x86_x64_arm_arm64_appxbundle) - submission failed with the error: UetTestUetPkgWithProjectFileMod_1_0_60_0_x86_x64_arm_arm64_appxbundle 3.2 MB, "Package acceptance validation error: You cannot submit pre-compiled .NET Native packages. Please upload the Microsoft Store appxupload file and try again." You can find all the project files here: [Dropbox link](https://www.dropbox.com/scl/fo/d6hr4k24z7sybzg6172r6/AOqBb_2zMBUPCuKgxrmbwhU?rlkey=1pzpak1l1aqcwuejapmmllpid&st=o2wmzce5&dl=0) Could there be any inaccuracies in the documentation, or does anyone have experience working with this library who could provide some guidance or examples? Thank you!318Views0likes0CommentsHow to add attachements to new outlook programmatically?
Hello, We have developped C# UWP application that send an email with attachement file through Courier app and its work fine). Our customers migrate from Courier to New Outlook and our programs still open New Outlook mail message with Recipient, Subject, and body, but attachement files not appears ! Default Mail App - is New Outlook Do you have any ideas to add attachement to new outlook ? We use the following code : protected async void SendMail(Email mail) { try { var emailMessage = new Windows.ApplicationModel.Email.EmailMessage(); emailMessage.AllowInternetImages = true; emailMessage.To.Add(new Windows.ApplicationModel.Email.EmailRecipient(mail.Destinataire)); emailMessage.Subject = mail.Sujet; emailMessage.Body = mail.Corps; var stream = Windows.Storage.Streams.RandomAccessStreamReference.CreateFromFile(mail.fichier); var attachment = new Windows.ApplicationModel.Email.EmailAttachment(fichier.Name, stream); emailMessage.Attachments.Add(attachment); await Windows.ApplicationModel.Email.EmailManager.ShowComposeNewEmailAsync(emailMessage); } catch (Exception ex) { } } Regards, Thibaud372Views0likes0Comments关于Microsoft Defender对VisualBasic.Net编写的软件报毒问题
大家好,我之前使用VS2019写过 VB.net 程序,该程序使用了Winform框架,除了导入了system.data.sqlite之外,其余任何组件都是使用的winform自带的组件,没有使用第三方库,并且仅仅只是一个数据库查询以及创建窗体的功能,将它编译好后,在打开时Microsoft Defender对其报毒(Trojan.xxx.A.xx)了,并且它不是每次打开都会报毒,是偶尔报一次毒,这对我的体验很不好,我无法找到它报毒的原因,请问这应该怎么解决?或者说我在写代码时应该注意什么以避免此问题。期待收到大家的回复,非常感谢1KViews1like0CommentsHow to allow Kerberos authentication on SQL Express?
A self signed certificate has been installed on SQL Express but the WinUI UWP app still will not connect. The server log says: > SQL Server is attempting to register a Service Principal Name (SPN) for the SQL Server service. Kerberos authentication will not be possible until a SPN is registered for the SQL Server service. This is an informational message. No user action is required. I am not able to connect to SQL Express with the Inventory.Sample. https://github.com/microsoft/InventorySample Putting "TrustServerCertificate=True" at the end of the connection string fails. This connection string works in a console app to test ado connection "using Microsoft.Data.SqlClient;". string connString = @"Data Source=.\SQLEXPRESS;Initial Catalog=VanArsdelDb;Integrated Security=SSPI;TrustServerCertificate=True;"; The app and SQL Express are both on the same box.912Views0likes0CommentsProblems with creating a local build of a UWP project
Hi, there are some unknown problems with the local build of the UWP project. I am using visual studio 2022 with the latest version. When trying to create a build in the Release Version, I get the following errors shown in the screenshot. What could be the reasons for this?488Views0likes1CommentAny options to decrease the Portable Library (DLL) Size while compiling
What is the best way to decrease the DLL size while compiling as .Netstandard portable library. I am developing an Xamarin application, where I have .Netstandard libraries referred to the UWP project as Library reference. Size of DLL is getting increased drastically and it is causing lot of issues. Is there a best way to decrease the size while compiling or after compiling? Currently I am using dotnet build/ pack in azure Devops to generate the DLL Thanks in advance for any suggestions1.4KViews0likes0CommentsMigrate UWP App to MAUI Windows: Error after update with MSIX
I currently have a Xamarin Forms UWP App in the Microsoft Store. In the next months I want to update it to MAUI. For testing purposes and ensuring that all stored data are still available within the app, I want to simulate the Update of the Xamarin Forms app to MAUI with side loading for Windows. After installing the MAUI-msix-Update, an error appears: Is this a general problem or do I have a specific issue in my manifest? Sample app: https://github.com/reinhardlackner/SampleUpdateMauiApp Debugging is working correctly (I can start the UWP-App "SampleUpdateApp.UWP" in Debug mode... and after closing it I can start the MAUI-App "SampleNewUpdatedApp") - and the saved click-data from the UWP app are shown in the MAUI app: Sideloading-Update does not work: a) SampleUpdateApp.UWP - Right click => Publish... Sideloading Use test certificate Install UWP app appxbundle-file App opens => OK b) Install MAUI App as Update SampleNewUpdatedApp - Right click => Publish... Sideloading Use same certificate Create MSIX x86 publishing profile and version is 1.0.1 (update of Xamarin 1.0.0) Start created msix-Package and click on Update: Error message is shown: App installation failed with error message: Deployment Add operation with target volume C: on Package E965F79B-76C7-47E0-8308-4A503105EDE0_1.0.1.0_x86__ab06nvn9z6x6m from: (SampleNewUpdatedApp_1.0.1.0_x86.msix) failed with error 0x80073CF3. See http://go.microsoft.com/fwlink/?LinkId=235160 for help diagnosing app deployment issues. (0x80073cf3) If the Xamarin app was not installed before, the MAUI App can be installed correctly: Does anybody have an idea why the update installation is not possible? I assume it could be related with the Manifest-File... Manifest UWP: https://github.com/reinhardlackner/SampleUpdateMauiApp/blob/master/SampleUpdateApp.UWP/Package.appxmanifest Manifest MAUI: https://github.com/reinhardlackner/SampleUpdateMauiApp/blob/master/SampleNewUpdatedApp/Platforms/Windows/Package.appxmanifest2.6KViews0likes2Comments