-
Notifications
You must be signed in to change notification settings - Fork 306
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
Self contained publish fails when using winappsdk 1.1 and microsoft.identity.client #2492
Comments
This may be a duplicate of #1856. Could you take a look at that and see if it's the same issue? |
@mikebattista based on the thread, it is similar but doesn't appear to be the same. |
Also when you say self-contained "publish", are you doing |
The errors above were when I did a right click, publish on the application project in visual studio. That ultimately isn't the typical app deployment method, so it may end up being behavior not supported in the long run. When I try generating the app packages option, VS2022 17.3-preview 1 crashed. I made sure everything I could find was updated appropriately and it still crashed every time. I did finally get a msix built from the command line, so I have something working now. I'll be refining what i've done so far, so I may have more/better info over the next couple weeks. |
Thanks. |
When I try create app packages, visual studio crashes entirely -- no dialog/wizard shows; just a crash report to MS followed by a vs restart. |
I have hit this too in the past and debugged with VS. There's a hidden |
I deleted all .vs/.user/bin/obj directories entirely. Now when I try it, it still crashes but Visual Studio will let me throw it to debug. Here is the exception details from the debugger:
I'm happy to help if you want to continue to trace this down, but please keep in mind -- I'm running preview VS with preview WinAppSDK and could very well have messed something up in my install by adding or removing extensions from the early winappsdk builds. In other words, I wouldn't be shocked if this particular issue was not reproducible. I was much more concerned about the other issues that we've already addressed as at least relatively known -- even if it wasn't clear to me that they were related initially. |
Thanks. Yes that is exactly the known issue I have hit and is specific to the 1.1 preview release. VS is investigating. It's not a 100% repro and the workaround for me was to remove both the .suo and csproj.user files I mentioned, but I've heard that doesn't always work. If you hit this and need to produce an MSIX, you can do so from the command line with tools like Regarding the original APPX1101 issue, we are investigating that. |
I'm following up with the WebView2 team on this issue. It's definitely WebView2 specific and not the same as the other issue I linked, given it's included in WinAppSDK but also pulled in as a transitive dependency from the identity client library. |
Did this issue ever get resolved? I am using WinAppSDK 1.1.5 and still getting the msix duplication failure with WebView2. |
Same issue about msix webview2 when using Microsoft.Data.SqlClient >=5.00, and works with Microsoft.Data.SqlClient 4.1.1 |
No updates? |
@mikebattista @bpulliam This is still a problem. |
Describe the bug
When trying to publish a self contained app using windows app sdk 1.1 preview 2 and Microsoft Identity Client 4.43.2 I'm getting an error:
I think the issue is that the publish isn't picking up that the file is already requested. I've tried suppressing duplicate file errors and setting an itemgroup remove for it, but nothing has worked so far.
ideas?
Steps to reproduce the bug
Create a new winui3 desktop app.
Add a winui3 class library that the app references
add the microsoft identity client to the class library
attempt to publish the app
Expected behavior
No response
Screenshots
No response
NuGet package version
1.1.0-preview1
Packaging type
Packaged (MSIX)
Windows version
Windows 10 version 2004 (19041, May 2020 Update)
IDE
Visual Studio 2022-preview
Additional context
No response
The text was updated successfully, but these errors were encountered: