<?xml version="1.0"?>
<Template Originator="Community" Created="10/6/2010" LastModified="10/6/2010">

  <!-- Template Header -->
  <TemplateConfiguration>
    <_Name>Console Project</_Name>
    <Icon>md-project-console|res:fsharp-icon-32.png</Icon>
    <_Description>Create a console F# project</_Description>
    <_Category>F#</_Category>
    <LanguageName>F#</LanguageName>
  </TemplateConfiguration>

  <!-- Actions -->
  <Actions>
    <Open filename = "Program.fs"/>
  </Actions>

  <!-- Template Content -->
  <Combine name = "${ProjectName}" directory = ".">
    <Options>
      <StartupProject>${ProjectName}</StartupProject>
    </Options>

    <Project name = "${ProjectName}" directory = ".">
      <Options ExternalConsole="True"/>
      <References>
        <Reference type="Gac" refto="System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
      </References>
      <Files>
        <File name = "Program.fs" AddStandardHeader="True"><![CDATA[open System

do
  Console.WriteLine("Hello world!")
]]></File>
<!--        <FileTemplateReference TemplateID="VBAssemblyInfo" name="AssemblyInfo.vb" />-->
      </Files>
    </Project>
  </Combine>
</Template>

<?xml version="1.0"?>
<Template Originator="Community" Created="10/6/2010" LastModified="10/6/2010">

  <!-- Template Header -->
  <TemplateConfiguration>
    <_Name>Console Project</_Name>
    <Icon>md-project-console|res:fsharp-icon-32.png</Icon>
    <_Description>Create a console F# project</_Description>
    <_Category>F#</_Category>
    <LanguageName>F#</LanguageName>
  </TemplateConfiguration>

  <!-- Actions -->
  <Actions>
    <Open filename = "Program.fs"/>
  </Actions>

  <!-- Template Content -->
  <Combine name = "${ProjectName}" directory = ".">
    <Options>
      <StartupProject>${ProjectName}</StartupProject>
    </Options>

    <Project name = "${ProjectName}" directory = ".">
      <Options ExternalConsole="True"/>
      <References>
        <Reference type="Gac" refto="System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
      </References>
      <Files>
        <File name = "Program.fs" AddStandardHeader="True"><![CDATA[module Program

open System

do
  Console.WriteLine("Hello world!")
]]></File>
<!--        <FileTemplateReference TemplateID="VBAssemblyInfo" name="AssemblyInfo.vb" />-->
      </Files>
    </Project>
  </Combine>
</Template>

Add module declaration to template file for application
Add module declaration to template file for application

This prevents a background error occurring
