-
Notifications
You must be signed in to change notification settings - Fork 368
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added conditions based on langVersion
- Loading branch information
1 parent
7c97b77
commit 4a16adf
Showing
3 changed files
with
37 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 18 additions & 1 deletion
19
...Microsoft.DotNet.Common.ProjectTemplates.6.0/content/ConsoleApplication-CSharp/Program.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,20 @@ | ||
//We've made changes to the Console template! Find out more at https://aka.ms/new-console-template | ||
// We've made changes to the Console template! Find out more at https://aka.ms/new-console-template | ||
|
||
#if (langVersion != "" && langVersion != "10.0") | ||
using System; | ||
|
||
#endif | ||
#if (langVersion != "" && langVersion != "10.0" && langVersion != "9.0") | ||
namespace Console.ConsoleApplication1 | ||
{ | ||
class Program | ||
{ | ||
static void Main(string[] args) | ||
{ | ||
Console.WriteLine("Hello, World!"); | ||
} | ||
} | ||
} | ||
#else | ||
Console.WriteLine("Hello, World!"); | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters