-
Notifications
You must be signed in to change notification settings - Fork 662
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
Published Package doesn't start #3749
Comments
Running into the exact same problem as you list out above. |
I have observed the same issue with the app not starting. In my case, setting PublishTrimmed to false in the Properties\PublishProfiles\win10-X.pubxml file fixed it. |
@lhak Thanks this seems to resolve the issue. The question remains is this expected behavior. |
I too was able to set PublishTrimmed to false and it resolved it for me. |
I'm glad ya'll found the workaround. My apologies on this one, the default PublishProfiles should have had This is a know issue with the deps.json file generation with the packaging project. @wli3 for FYI, do you know when this will be fixed? |
For WinUI3 RTM, we'll set |
This should be fixed in Preview4, the default publish profiles no longer set |
Same is happening to me. Version 1.0 of the Windows App SDK... (WinUI)... The windows event logger complains about this:
Running from inside Visual Studio works... the project is open source and the link is here. You will need the Proft running prior to run the application (it uses a COM+ object from it to get the RTD information). The WinForms version of the application works both inside the visual Studio 2022 and the published version from the command line... |
@Bigous If you're still seeing this with version 1.1 and want help with it, can you open a new issue? |
I have the same issue with my WindowsAppSDK1.1 It doesnt run anymore when deployed, but it does work in Visual Studio. We use separate MSIX installer project. |
I decided to use only the Windows Forms which works perfectly. The tool is just for me, so, I'm ok with that. |
Bug description
If a sideload package is created and installed it will not start. After attaching a VS debugger the following error message is produced even on the machine the build was created and release or debug builds within VS work fine.
Error: An assembly specified in the application dependencies manifest (App1.deps.json) was not found: package: 'runtimepack.Microsoft.NETCore.App.Runtime.win-x64', version: '5.0.0' path: 'Microsoft.VisualBasic.Core.dll''App1.exe' (Win32): Loaded 'C:\Windows\System32\kernel.appcore.dll'. Symbols loaded.
dotnet --info
produces following output:Steps to reproduce the bug
Expected behavior
App should start the same way as it does in VS
Version Info
NuGet package version:
[Microsoft.WinUI 3.0.0-preview3.201113.0]
Windows app type:
The text was updated successfully, but these errors were encountered: