Skip to content

Conversation

@wli3
Copy link

@wli3 wli3 commented Aug 5, 2019

fix #3023

Description

Apphost generation is disabled for dotnet tools to prevent the apphost from being packaged in the package. When debugging a WPF or Winforms project that has PackAsTool set to true, there is no exe generated with appropriate Windows PE bits set, because we disabled it as described above. Instead of disabling apphost generation when PackAsTool=true, SDK should generate it during build, but prevent it from being packaged in the nupkg.

Customer Impact

When debugging an WPF or Winforms dotnet tool project (PackAsTool=true) in VS, the user would see the command line instead of the GUI. The app's GUI is not rendered and you get only a blank command prompt.

Regression?

Yes. This regressed from .NET Core SDK 3.0.100-preview3 due to 3487007

Risk

Low risk.

Test changes in this PR

Added new unit test coverage to ensure RunCommand(which VS debug calls) uses the apphost exe instead of the dll.

@wli3 wli3 changed the title Need apphost in build but do not pack it WIP Need apphost in build but do not pack it Aug 5, 2019
@wli3 wli3 force-pushed the no-pack-apphost branch 2 times, most recently from 1c0bee0 to 3b7b36b Compare August 5, 2019 21:51
@wli3 wli3 changed the base branch from master to release/3.0.1xx August 5, 2019 21:51
@wli3
Copy link
Author

wli3 commented Aug 5, 2019

@peterhuene @nguerrera tests passed other than #3509 please review it. And I will work on ask mode at the same time

Copy link
Contributor

@peterhuene peterhuene left a comment

Choose a reason for hiding this comment

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

Just some questions before I can sign off.

@wli3 wli3 force-pushed the no-pack-apphost branch from 3b7b36b to 3d2fff4 Compare August 5, 2019 22:59
@wli3 wli3 force-pushed the no-pack-apphost branch from 3d2fff4 to ea74f4f Compare August 5, 2019 23:06
@livarcocc livarcocc added this to the 3.0.1xx milestone Aug 5, 2019
@wli3 wli3 force-pushed the no-pack-apphost branch from ea74f4f to b9818fb Compare August 5, 2019 23:46
@wli3 wli3 changed the title WIP Need apphost in build but do not pack it Need apphost in build but do not pack it Aug 6, 2019
@wli3 wli3 merged commit 11e0233 into dotnet:release/3.0.1xx Aug 6, 2019
@wli3 wli3 deleted the no-pack-apphost branch August 6, 2019 20:08
dsplaisted pushed a commit to dsplaisted/sdk that referenced this pull request Feb 19, 2020
…0191109.2 (dotnet#3505)

- Microsoft.AspNetCore.DeveloperCertificates.XPlat - 5.0.0-alpha1.19559.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants