Reputation:
Using a WPF application, all console output goes to the Visual Studio output window if you use debug mode or in release mode, no Console appears. Is it an anomaly? If you know a workaround? I want my console appears in two modes.. thank you in advance.
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
}
private void Button_Click(object sender, RoutedEventArgs e)
{
Program.Main();
}
}
Upvotes: 0
Views: 525
Reputation: 1052
Just change project "Output type" to "Console Application" and you will see both: app window and console.
Upvotes: 1