Sir Ruggie
❔ WinUI exe launch issue
I receive this following issue every time from event viewer when I try to start the application via the exe, but it works fine from within Visual Studio.
I'm not quite understanding why it's not creating the dependencies it needs.
Application: RestDB.exe
CoreCLR Version: 7.0.222.60605
.NET Version: 7.0.2
Description: The process was terminated due to an unhandled exception.
Exception Info: System.DllNotFoundException: Unable to load DLL 'Microsoft.ui.xaml.dll' or one of its dependencies: The specified module could not be found. (0x8007007E)
at RestDB.Program.XamlCheckProcessRequirements()
at RestDB.Program.Main(String[] args) in C:\Users\psa_gposab7\source\repos\RestDB\RestDB\obj\x64\Release\net7.0\win10-x64\App.g.i.cs:line 28
4 replies
✅ PowerShell Method in WinUI C#
So firstly, yes I have to use Powershell and am unable to just do it in C#.
Below will be an example of a basic PowerShell script that I have
My issue is that I'm returning a System.Data.Datarow, but I'm unable to return any data in C#.
PowerShell Console Results
Within my application I have a PowerShellHelper.cs where I'm trying to use System.Management.Automation with the below method
52 replies