unoplatform / uno

Build Mobile, Desktop and WebAssembly apps with C# and XAML. Today. Open source and professionally supported.
https://platform.uno
Apache License 2.0
8.51k stars 690 forks source link

dotnet run --framework net8.0-windows10.0.19041 in VSCODE opens window but does not render UI Elements #16500

Open sotoralph opened 1 month ago

sotoralph commented 1 month ago

Current behavior

I installed the Uno Platform using the command lines and opened in VS Code. I open the terminal to the app directory and run

dotnet build

then

dotnet run --framework net8.0-windows10.0.19041

It runs and I see a blank page

2024-04-28_18-50-58

I run the app inside of Visual Studio

Expected behavior

I should see the Login Page.

How to reproduce it (as minimally and precisely as possible)

No response

Workaround

Had to open in Visual Studio instead of VS Code for windows only. Wasm works on both VS and VSCode.

Works on UWP/WinUI

None

Environment

No response

NuGet package version(s)

No response

Affected platforms

No response

IDE

No response

IDE version

No response

Relevant plugins

No response

Anything else we need to know?

No response

jeromelaban commented 1 month ago

Thanks for the report. We're not reproducing the behavior you're showing.

dotnet build it not particularly well supported by WinAppSDK at this time, which may cause the behavior you're seeing, but to be sure, could you open a Developer Command Prompt for VS 2022 and start the app using the following:

msbuild /r /t:run /p:TargetFramework=net8.0-windows10.0.19041
lindexi commented 4 weeks ago

Thank you very much. I can build it with command line.