Skip to content
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

Deploy from layout #4945

Merged
merged 8 commits into from
May 20, 2020
Merged

Deploy from layout #4945

merged 8 commits into from
May 20, 2020

Conversation

asklar
Copy link
Member

@asklar asklar commented May 18, 2020

Visual Studio is able to deploy a UWP app from layout (i.e. without installing the APPX). This has several benefits for inner-loop development: installing an APPX requires elevation to pre-install the certificate that was used to sign the APPX with, which is unnecessary and cumbersome for Debug builds while you're writing the app.

This workflow works well in VS, however the command-line experience is broken. There are docs for Add-AppxPackage which tell us how to register a UWP app from layout. This seems to work for native apps but it doesn't work for .net UWP apps: apps will crash on launch. The symptom is that the desktop .net framework gets loaded instead of the .net framework for UWP.

As part of #4749 we disabled layout registration due to these UWP dotnet issues.
This PR fixes #4760 (the follow up bug to reenable .net UWP layout registration in Debug mode)

More details here

Microsoft Reviewers: Open in CodeFlow

@asklar asklar requested a review from a team as a code owner May 18, 2020 23:42
@dannyvv
Copy link
Member

dannyvv commented May 19, 2020

Does this mean we can stop generating the .pfx key files as well? Or will that still be needed for layout installs?

@asklar
Copy link
Member Author

asklar commented May 19, 2020

Does this mean we can stop generating the .pfx key files as well? Or will that still be needed for layout installs?

@dannyvv it's not strictly needed for layout installs but they are needed for appx. We still produce the appx even in Debug (so that you can carry the appx to a different machine and install it there), but installing from layout avoids having to elevate to install the certificate and is faster than installing an APPX

Copy link
Member

@vmoroz vmoroz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@asklar asklar merged commit b3fc68f into microsoft:master May 20, 2020
ZihanChen-MSFT pushed a commit to ZihanChen-MSFT/react-native-windows that referenced this pull request May 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Opt dotnet projects back into layout registration
6 participants