Skip to content

Commit

Permalink
Add auto-generated header to generated Program (#424)
Browse files Browse the repository at this point in the history
Add auto-generated header comment to generated Program.cs and Program.vb
files to resolve #420.
  • Loading branch information
martincostello authored and Faizan2304 committed Feb 2, 2017
1 parent 52a3b45 commit 5daf25c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Microsoft.NET.Test.Sdk.targets
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,13 @@
Outputs="$(GeneratedProgramFile)">

<ItemGroup Condition="'$(Language)'=='C#'">
<Line Include="// &lt;auto-generated&gt; This file has been auto generated. &lt;/auto-generated&gt; "/>
<Line Include="using System%3b "/>
<Line Include="class Program {static void Main(string[] args){}}"/>
</ItemGroup>

<ItemGroup Condition="'$(Language)'=='VB'">
<Line Include="' &lt;auto-generated&gt; This file has been auto generated. &lt;/auto-generated&gt; "/>
<Line Include="Imports System"/>
<Line Include="Module Program"/>
<Line Include="Sub Main(args As String())"/>
Expand Down

0 comments on commit 5daf25c

Please sign in to comment.