-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hot design missing when appBuilder (on linux) #2655
Comments
@sarosigy thanks for raising this, we'll investigate this |
@sarosigy which version of the uno.sdk are you using (look in global.json)? When I follow the steps you provided, I also adjusted the next two lines of the code:
Let me know if this helps |
At that time the SDK was the latest, I have the UseStudio line, it came with the template. However, the MainWindow = appBuilder.Window; line helped. Now it works, the toolbar is in place. So, it seems it is a documentation issue, because at the Hosting (Hosting) it gives this as an example: protected override void OnLaunched(LaunchActivatedEventArgs e)
{
var appBuilder = this.CreateBuilder(args)
.Configure(host => {
// Configure the host builder
});
Host = appBuilder.Build();
...
} And at the Localization (Localization): protected override void OnLaunched(LaunchActivatedEventArgs e)
{
var appBuilder = this.CreateBuilder(args)
.Configure(host =>
{
host.UseLocalization()
});
...
} Unfortunately the MainWindow = appBuilder.Window; part is missing from both places, and while the application works (or it seems to be working at least), it breaks the Hot Design. If you don't need this issue remain open (to fix documentation) you may close it. |
@sarosigy thanks for following up - I'll transfer this across to extensions so that we can amend the documentation. |
Current behavior
I just created a brand new Uno desktop app, it runs as it should.
I wanted to leverage the Localization which means using Hosting, also. I did exactly what is written in Uno Howto Hosting Setup
But even adding the single line
var appBuilder = this.CreateBuilder(args);
causes two things:Expected behavior
It should work as expected.
How to reproduce it (as minimally and precisely as possible)
dotnet new unoapp --platforms desktop -o unoinout
Hosting
to<UnoFeatures>
var appBuilder = this.CreateBuilder(args);
in the first line of App.xaml.csprotected override void OnLaunched(LaunchActivatedEventArgs args)
Workaround
Not using appBuilder.
Which tool(s) are affected?
Hot Design™
Affected platforms
Desktop (Skia)
Uno.Sdk version
5.5.54
IDE used
Visual Studio Code on Linux
IDE version
1.96.0
Uno Platform Extension version
0.18.5
Relevant plugins
No response
Anything else we need to know?
No response
The text was updated successfully, but these errors were encountered: