Make WPF on .net core always have an exposed entrypoint?
Open
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
Assessment
This issue has not been assessed yet.