Skip to content

Commit 49354a7

Browse files
committed
Fix for Release
1 parent 152c515 commit 49354a7

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Tetris/App.xaml.cs

+2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ public partial class App : Application
2020
private static extern bool AllocConsole();
2121
protected override void OnStartup(StartupEventArgs e)
2222
{
23+
#if DEBUG
2324
AllocConsole();
25+
#endif
2426
base.OnStartup(e);
2527
}
2628
}

Tetris/Tetris.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
66
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
77
<ProjectGuid>{672ADF65-0B89-4D13-88C4-5C7C49535395}</ProjectGuid>
8-
<OutputType>Exe</OutputType>
8+
<OutputType>WinExe</OutputType>
99
<AppDesignerFolder>Properties</AppDesignerFolder>
1010
<RootNamespace>Tetris</RootNamespace>
1111
<AssemblyName>Tetris</AssemblyName>

0 commit comments

Comments
 (0)