Skip to content

EnableWindowsTargeting does not work well for building WinApps in linux #34197

@ali50m

Description

@ali50m

Hi Team,

I am trying to build and publish my WPF(.net7-windows) through the github action pipeline. After reading this blog, I find EnableWindowsTargeting can be used for build Windows App on a linux machine.

However, after publishing the app in ubuntu-latest runner and run it, I find there is a unwanted console output window after my app is lauching. It does not act like the building artifact from windows machine.

I also tried publish the app on ther linux machines and found the same behavior. The console output window is annoying.

You can also see this issue in this blog.

Please kindly let me know if there is any other properties need to combine with EnableWindowsTargeting for building a WPF app in linux, or it is a bug?

BTW, the windows runner for github action is really slow, and expensive, comparing to ubuntu runner. :(


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.


Associated WorkItem - 69434

Metadata

Metadata

Assignees

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions