-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
After Update from 11.0 to 11.1.3 published app has runtime errors with double packed resources #16838
Comments
Hi, @peter-friedland-t2i. Try adding the following to your project file. Maybe it will help. <PropertyGroup>
<AvaloniaIncludeApplicationIconAsWindowIcon>false</AvaloniaIncludeApplicationIconAsWindowIcon>
</PropertyGroup> |
thank you for your help. I give it a try but I am not really sure that this will help guess you have been misslead by the name: Icons.axaml. its a resource dictionary containing geometrydrawings. |
Yes indeed, I was mistaken. I apologize. 😳 |
I have some updates, I will add it in the description as well: when I create a new project outside of the solution it works., if I have the very same code in my existing solution the published app has the same problems. I am confused what outside of the project is responsible for that. |
I found the real problem: when publish is perform with the flag --no-build the error also occurs for an empty, newly created project. I update the description. |
FYI I suspect that whatever causes your issue, also causes mine: #16732 |
I hit the same problem. Thanks @peter-friedland-t2i for the tip about --no-build causing it. It got me unstuck for now |
Hi. |
There is already a PR to fix this: #16835 |
Describe the bug
I have updated our avalonia application from 11.0.11 to 11.1.3. The application builds and runs properly from IDE or dotnet run. But if I publish the app self contained for windows at runtime the following error occurs:
To Reproduce
dotnet new avalonia.app -o MyApp
<SelfContained>true</SelfContained>
and<RuntimeIdentifiers>win-x64</RuntimeIdentifiers>
to project fileWon't start up, windows event log has an error with above mentioned exception
Expected behavior
App starts as intended
Avalonia version
11.1.3
OS
Windows
Additional context
Publish with removing the --no-build fixes the issue.
The text was updated successfully, but these errors were encountered: