dotnet / dotnet/wpf

Make WPF on .net core always have an exposed entrypoint?

Open
#192 11 comments 17 reactions 0 assignees View on GitHub
Enhancement Requested
Dominant language
C#
Stars
7.7k
Forks
1.3k
Avg merge
1d 11h
Merged PRs (30d)
61

Description

*Copied from https://github.com/dotnet/core/issues/2045*

AFAIK `App.Xaml` hide the entry-point in WPF .
Could the template of WPF always has the `public static void Main()` entry-point (Do not generate a entrypoint for `App.Xaml`)?
```C#
public static void Main(string[] args)
{
var app = new MyApp.App();
//app.InitializeComponent(); call this in App's constructor
app.Run();
}
```
this will let developer know how Xaml app start, and customize app start easily (control start as command line app or UI app).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.