lhak

Results 56 comments of lhak

@ziaulhasanhamim Create a new WinUI project (empty project with separate packaging project). Then add the following lines to the project file: ```xml None true win10-$(Platform).pubxml ``` Dotnet run (in the...

There currently seems to be a bug in the winui build scripts that still set the runtime identifier to win10-platform instead of win-platform when in AnyCPU configuration. To workaround that,...

@ajsuydam What error do you get? The issue I have observed is that "dotnet run" does not accept any parameters and reverts to AnyCPU configuration. The winui build scripts then...

@ajsuydam I used "dotnet run" from the commandline

As it looks that you have trimming enabled, you might want to try setting to "partial" in your .csproj file.

Check your publish profile and see if PublishTrimmed is enabled there (according to your video, it seems to be). You might also want to try setting it to false.

I could reproduce this issue. It started working once I deleted the obj and bin folders once.

I did the following steps: -Create the new project -Add TrimMode=partial, WindowsPackageType=None and WindowsAppSdkSelfContained=true setting to the csproj. -Open the publish profile for the architecture and change PublishSingleFile to true....

Looks like this has been resolved. Impact on startup time has been reduced drastically.

@rodirigos You can set the RequestedTheme property of the StackPanel (the window content) to `ElementTheme.Dark` if you want the window background color to be black.