maui icon indicating copy to clipboard operation
maui copied to clipboard

dotnet-bot image doesn't load on Windows unpackaged app

Open eerhardt opened this issue 2 years ago • 3 comments

Description

When I run a dotnet new maui app on Windows in an unpackaged app, I don't see the dotnet-bot image.

Steps to Reproduce

  1. dotnet new maui
  2. dotnet publish -f net6.0-windows10.0.19041.0 -c Release -p:WindowsPackageType=None
  3. bin\Release\net6.0-windows10.0.19041.0\win10-x64\publish\MauiTest.exe

I don't see the dotnet-bot image. Instead the app looks like:

image

Version with bug

Unknown/Other (please specify)

Last version that worked well

Unknown/Other

Affected platforms

Windows

Affected platform versions

Windows 10

Did you find any workaround?

No response

Relevant log output

No response

eerhardt avatar Apr 18 '22 20:04 eerhardt

Verified this issue with Visual Studio Enterprise 17.3.0 Preview 1.0 [32427.455.main]. Repro on Windows. image

XamlTest avatar Apr 28 '22 10:04 XamlTest

Did you also run into the fact that you can't close the app with the X in the top-right?

and additionally, the bot does show when you run the executable from the bin folder. Seems like the resources aren’t included in the publish?

jfversluis avatar Jun 22 '22 12:06 jfversluis

Hi @jfversluis, I can confirm I ran into the same problem as above. I installed the GA version of Visual Studio 17.3 along with Maui that comes with it. I did not install Maui preview on the machine before. After following the repro steps in the original post above, the bot image also did not come up for me when running the exe in the publish folder. The title bar was working for me though - I was able to minimize or close the app.

MaxWang-MS avatar Aug 09 '22 23:08 MaxWang-MS

We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process.

ghost avatar Aug 30 '22 14:08 ghost

I completely disagree with the decision to move this to the graveyard, otherwise known as the backlog! This is a CRUSHING error!!! I followed @jfversluis's YouTube video on how to publish an unpackaged deployment and NONE of the images show! None of the FontImageSource are rendered either. I am hoping I can get a response in the next day or so telling me the solution to this grave problem!! This is a complete deal breaker!

mobycorp avatar Dec 14 '22 22:12 mobycorp

There has been a lot of work going on to support unpackaged apps. Not sure into what versions this all went, but I just tried it on .NET 7 and it works fine for me there. If this is important to you, please update to all the latest bits and use that.

If you still think that doesn't work feel free to open a new issue with all the details of your specific scenario.

The one described here, assuming you're using .NET 7, works as intended now from what I can see.

jfversluis avatar Dec 15 '22 15:12 jfversluis

Hi Gerald,

I am using .NET 7 with Visual Studio Version 17.4.2. Obviously, it is VERY important that my icons and font icon images display! I followed your examples and, with the exception of the overlooked issue I posted a comment on your YouTube video for this topic indicating that you also have to set PublishAppxPackage to false in the publish profile. Here is what it looks like packaged:

[image: image.png] And, this is what it looks like unpackaged with nothing changed except the three lines of code you have published:

[image: image.png]

Not only this, but I have reported at least 10 issues and they all still exist. I have been working on the backend of the app implementing a gRPC P2P app and have not had my fingers on the UI code until now. Look at the title bar... I have reported this, you guys fixed it, then when a new version of VS rolled out, it was broken again. Very frustrating in that I am trying to get a demo for an investor who is potentially going to invest a huge sum of money and I can't show the app like this!

So, no, it does not work as designed.

I will open a new issue.

Thanks! Steve

On Thu, Dec 15, 2022 at 7:07 AM Gerald Versluis @.***> wrote:

There has been a lot of work going on to support unpackaged apps. Not sure into what versions this all went, but I just tried it on .NET 7 and it works fine for me there. If this is important to you, please update to all the latest bits and use that.

If you still think that doesn't work feel free to open a new issue with all the details of your specific scenario.

The one described here, assuming you're using .NET 7, works as intended now from what I can see.

— Reply to this email directly, view it on GitHub https://github.com/dotnet/maui/issues/6202#issuecomment-1353237310, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOPRYYJREKYAVOWSZBOAHQLWNMX2TANCNFSM5TW2O7MQ . You are receiving this because you commented.Message ID: @.***>

mobycorp avatar Dec 15 '22 16:12 mobycorp