-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
New Visual Studio 2022 Install - Cannot publish any .NET 7 MAUI Blazor app for Windows _GenerateAppxPackage #12625
Comments
@shyftkenney thanks for contacting us. Could you generate a binlog so that we can take a look? Or can you at least include the line and the file that is producing this error? |
Hi @shyftkenney. We have added the "s/needs-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time. |
I have provided a sample project to reproduce this to the team.
…On Mon, Jan 16, 2023 at 7:56 AM msftbot[bot] ***@***.***> wrote:
Hi @shyftkenney <https://github.com/shyftkenney>. We have added the
"s/needs-info" label to this issue, which indicates that we have an open
question for you before we can take further action. This issue will be
closed automatically in 7 days if we do not hear back from you by then -
please feel free to re-open it if you come back to this issue after that
time.
—
Reply to this email directly, view it on GitHub
<#12625 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/A43N3WPBX6RVCWEH3ICXLV3WSVHPZANCNFSM6AAAAAATZZ3PVQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
--
*Kenney Myers*
*Chief Technology Officer*
*Phone: +1 (832) 248-8168*
Email: ***@***.*** ***@***.***>*
<https://vimeo.com/shyftmoving>
<https://www.linkedin.com/company/shyftmoving/mycompany/>
<https://twitter.com/shyftmoving> <https://www.shyftmoving.com/>
The information contained in this e-mail message and any attachments hereto
may be privileged and confidential, and it is only for the use of the
intended recipient(s). If you are not the intended recipient, you are
hereby notified that any dissemination, distribution, disclosure, use or
making or retaining of a copy of the contents of this e-mail message or any
of its parts is strictly prohibited. If you have received this e-mail
message or any of its parts in error, please contact the sender by return
e-mail and delete the message from your system.
|
Did you follow these instructions? https://learn.microsoft.com/dotnet/maui/windows/deployment/publish-visual-studio-folder I just did a test now with a brand new app and I was able to publish. Does it work with a File | New | Maui App template? What options did you select when publishing? Providing the logs from the Output window or even a full binlog (https://github.com/xamarin/xamarin-macios/wiki/Diagnosis) will really help us see what you are doing differently to me. |
Hi @shyftkenney. We have added the "s/needs-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time. |
I am seeing this too, and have been for a month or so. I think it might have started with the .NET 7 service release. CLI works. I am also experiencing some issues doing a "dotnet workload update"
It is possible that this oddity is unrelated. |
It does not work for me with a *.NET MAUI Blazor* default template
application. I sent one over that went to the Senior Program Manager as an
example.
…On Mon, Jan 16, 2023 at 3:57 PM Matthew Leibowitz ***@***.***> wrote:
Did you follow these instructions?
https://learn.microsoft.com/dotnet/maui/windows/deployment/publish-visual-studio-folder
I just did a test now with a brand new app and I was able to publish. Does
it work with a File | New | Maui App template? What options did you select
when publishing? Providing the logs from the Output window or even a full
binlog (https://github.com/xamarin/xamarin-macios/wiki/Diagnosis) will
really help us see what you are doing differently to me.
—
Reply to this email directly, view it on GitHub
<#12625 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/A43N3WKOHEW2G65DV63U223WSW74BANCNFSM6AAAAAATZZ3PVQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
--
*Kenney Myers*
*Chief Technology Officer*
*Phone: +1 (832) 248-8168*
Email: ***@***.*** ***@***.***>*
<https://vimeo.com/shyftmoving>
<https://www.linkedin.com/company/shyftmoving/mycompany/>
<https://twitter.com/shyftmoving> <https://www.shyftmoving.com/>
The information contained in this e-mail message and any attachments hereto
may be privileged and confidential, and it is only for the use of the
intended recipient(s). If you are not the intended recipient, you are
hereby notified that any dissemination, distribution, disclosure, use or
making or retaining of a copy of the contents of this e-mail message or any
of its parts is strictly prohibited. If you have received this e-mail
message or any of its parts in error, please contact the sender by return
e-mail and delete the message from your system.
|
I ran another dotnet workload update after the latest service release and I'm able to publish now. |
Oh that's great news! I'll give that a try. Thank you Edward!
…On Wed, Jan 18, 2023 at 10:05 PM Edward Miller ***@***.***> wrote:
I ran another dotnet workload update after the latest service release and
I'm able to publish now.
—
Reply to this email directly, view it on GitHub
<#12625 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/A43N3WLV3BB3PBSTJOKKDMLWTC4SDANCNFSM6AAAAAATZZ3PVQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
--
*Kenney Myers*
*Chief Technology Officer*
*Phone: +1 (832) 248-8168*
Email: ***@***.*** ***@***.***>*
<https://vimeo.com/shyftmoving>
<https://www.linkedin.com/company/shyftmoving/mycompany/>
<https://twitter.com/shyftmoving> <https://www.shyftmoving.com/>
The information contained in this e-mail message and any attachments hereto
may be privileged and confidential, and it is only for the use of the
intended recipient(s). If you are not the intended recipient, you are
hereby notified that any dissemination, distribution, disclosure, use or
making or retaining of a copy of the contents of this e-mail message or any
of its parts is strictly prohibited. If you have received this e-mail
message or any of its parts in error, please contact the sender by return
e-mail and delete the message from your system.
|
I have exact the same problem. NET MAUI Blazor, target windows only, VS 17.4.4 |
I actually gave up and just deployed this as a blazor web app instead. I'll
come back to MAUI after this is all worked out though. Super cool stuff!
…On Fri, Jan 20, 2023 at 2:57 PM AlexNek ***@***.***> wrote:
I have exact the same problem. NET MAUI Blazor, target windows only, VS
17.4.4
I have different image for "Set the build target" as Publish a .NET MAUI
app for Windows with Visual Studio
<https://learn.microsoft.com/en-us/dotnet/maui/windows/deployment/publish-visual-studio-folder?view=net-maui-7.0>
[image: grafik]
<https://user-images.githubusercontent.com/2191467/213803440-9b52c559-e424-4b36-a8fd-4cac057d8548.png>
—
Reply to this email directly, view it on GitHub
<#12625 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/A43N3WNMLJTM5LZEHDIOPNDWTL32ZANCNFSM6AAAAAATZZ3PVQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
--
*Kenney Myers*
*Chief Technology Officer*
*Phone: +1 (832) 248-8168*
Email: ***@***.*** ***@***.***>*
<https://vimeo.com/shyftmoving>
<https://www.linkedin.com/company/shyftmoving/mycompany/>
<https://twitter.com/shyftmoving> <https://www.shyftmoving.com/>
The information contained in this e-mail message and any attachments hereto
may be privileged and confidential, and it is only for the use of the
intended recipient(s). If you are not the intended recipient, you are
hereby notified that any dissemination, distribution, disclosure, use or
making or retaining of a copy of the contents of this e-mail message or any
of its parts is strictly prohibited. If you have received this e-mail
message or any of its parts in error, please contact the sender by return
e-mail and delete the message from your system.
|
I have Version: 1.2.0.2211083 |
|
I would also try to set the target framework to net7.0-windows10.0.22621.0 if possible. And I would restart visual studio after performing the workload update and extension update. This particular bug seems solved to me, and needing to use "dotnet publish" via CLI wasn't so bad. Publishing as an EXE is something that is under development, and I'm looking forward to this as well. But windows store deployments with these new style msix bundles are pretty painless, and you can distribute to only a private audience if you want, and you get free auto-upgrade capability. |
Apparently you should already be able to publish as EXE if you aren't using one of the known incompatible features. |
I have now net7.0-windows10.0.19041.0 |
|
Same problem here |
Hi @shyftkenney. We have added the "s/needs-repro" label to this issue, which indicates that we require steps and sample code to reproduce the issue before we can take further action. Please try to create a minimal sample project/solution or code samples which reproduce the issue, ideally as a GitHub repo that we can clone. See more details about creating repros here: https://github.com/dotnet/maui/blob/main/.github/repro.md This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time. |
That is very easy. Try to use default MAUI Blazor template and then Publish. |
When you say publish, is this in the IDE or the CLI? Can you send a screenshot of which menu item you select to publish if this is the IDE? I know there are a several publish options in the IDE so maybe one of the others are appearing. |
IDE of course /I use only one place on the solution explorer/. CLI is "not existing" for me. I use windows not *Nix. |
I still can't reproduce this. I tried both a normal and a blazor maui app using the stable version of VS 17.4.4 using maui 7.0.52. All works fine without an issue. The only thing that I can think that can cause this issue if the Microsoft.WindowsAppSDK nuget got corrupted as that is where this target lives. Can you try clearing the nuget cache? Or deleting the The only way for me to diagnose any issues is with a sample project - even if it is the template because maybe your templates are corrupted - and with a binlog as that tells me what actually happened and what called what. https://github.com/xamarin/xamarin-macios/wiki/Diagnosis Many things will happen, but you should get a publish item somewhere: Save that and attach it here. I will have a look and see what I can find... The missing target sounds like something is not getting included. |
Thanks for the answer. I try to replay all again and have curious behavior. Immediately after project creation I can deploy it. |
Hi @shyftkenney. We have added the "s/needs-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time. |
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. If it is closed, feel free to comment when you are able to provide the additional information and we will re-investigate. |
Description
It's impossible to publish any .NET MAUI Blazor app including one straight from the project template. It simply does not work with the latest version of everything installed.
Severity Code Description Project File Line Suppression State
Error MSB4057 The target "_GenerateAppxPackage" does not exist in the project.
It seems completely broken. It has been reported but no response has been received yet after several days. Any patches or things to look at in the local environment would be great. The machine is a windows computer with the latest version of Windows 11 installed. It literally could not be more current.
Steps to Reproduce
Link to public reproduction project repository
https://github.com/dotnet/maui
Version with bug
7.0 (current)
Last version that worked well
Unknown/Other
Affected platforms
Windows
Affected platform versions
Windows 11
Did you find any workaround?
The only way to publish right now is to use the CLI
Relevant log output
The text was updated successfully, but these errors were encountered: