Skip to content

Commit 93d7b98

Browse files
ReedCopseyKevinRansom
authored andcommitted
Updated all templates (except tutorial) to include AssemblyInfo.fs setup in the same manner as default C# project templates
1 parent 110449b commit 93d7b98

28 files changed

Lines changed: 284 additions & 0 deletions

File tree

vsintegration/src/Templates/ConsoleProjectTemplates/ConsoleProjectTemplates.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@
7171
<ItemGroup>
7272
<None Include="ProjectTemplates\ConsoleApplication\App.config" />
7373
<None Include="ProjectTemplates\ConsoleApplication\ConsoleApplication.fsproj" />
74+
<None Include="ProjectTemplates\ConsoleApplication\AssemblyInfo.fs" />
7475
<None Include="ProjectTemplates\ConsoleApplication\Program.fs" />
7576
</ItemGroup>
7677
<ItemGroup>
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
namespace $safeprojectname$.AssemblyInfo
2+
3+
open System.Reflection
4+
open System.Runtime.CompilerServices
5+
open System.Runtime.InteropServices
6+
7+
(* General Information about an assembly is controlled through the following
8+
set of attributes. Change these attribute values to modify the information
9+
associated with an assembly. *)
10+
[<assembly: AssemblyTitle("$projectname$")>]
11+
[<assembly: AssemblyDescription("")>]
12+
[<assembly: AssemblyConfiguration("")>]
13+
[<assembly: AssemblyCompany("$registeredorganization$")>]
14+
[<assembly: AssemblyProduct("$projectname$")>]
15+
[<assembly: AssemblyCopyright("Copyright © $registeredorganization$ $year$")>]
16+
[<assembly: AssemblyTrademark("")>]
17+
[<assembly: AssemblyCulture("")>]
18+
19+
(* Setting ComVisible to false makes the types in this assembly not visible
20+
to COM components. If you need to access a type in this assembly from
21+
COM, set the ComVisible attribute to true on that type. *)
22+
[<assembly: ComVisible(false)>]
23+
24+
// The following GUID is for the ID of the typelib if this project is exposed to COM
25+
[<assembly: Guid("$guid1$")>]
26+
27+
(* Version information for an assembly consists of the following four values:
28+
29+
Major Version
30+
Minor Version
31+
Build Number
32+
Revision
33+
34+
You can specify all the values or you can default the Build and Revision Numbers
35+
by using the '*' as shown below:
36+
[<assembly: AssemblyVersion("1.0.*")>] *)
37+
[<assembly: AssemblyVersion("1.0.0.0")>]
38+
[<assembly: AssemblyFileVersion("1.0.0.0")>]
39+
40+
do
41+
()

vsintegration/src/Templates/ConsoleProjectTemplates/ProjectTemplates/ConsoleApplication/ConsoleApplication.fsproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
$endif$
5555
</ItemGroup>
5656
<ItemGroup>
57+
<Compile Include="AssemblyInfo.fs" />
5758
<Compile Include="Program.fs" />
5859
<None Include="App.config" />
5960
</ItemGroup>

vsintegration/src/Templates/ConsoleProjectTemplates/ProjectTemplates/ConsoleApplication/fsConsoleApplication.vstemplate

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
</TemplateData>
1616
<TemplateContent>
1717
<Project File="ConsoleApplication.fsproj" ReplaceParameters="true">
18+
<ProjectItem ReplaceParameters="true">AssemblyInfo.fs</ProjectItem>
1819
<ProjectItem ReplaceParameters="true" OpenInEditor="true">Program.fs</ProjectItem>
1920
<ProjectItem ReplaceParameters="true">App.config</ProjectItem>
2021
</Project>

vsintegration/src/Templates/LibraryProjectTemplates/LibraryProjectTemplates.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@
7777
</ItemGroup>
7878
<ItemGroup>
7979
<None Include="ProjectTemplates\Library\Library.fsproj" />
80+
<None Include="ProjectTemplates\Library\AssemblyInfo.fs" />
8081
<None Include="ProjectTemplates\Library\Library1.fs" />
8182
<None Include="ProjectTemplates\Library\Script.fsx" />
8283
</ItemGroup>
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
namespace $safeprojectname$.AssemblyInfo
2+
3+
open System.Reflection
4+
open System.Runtime.CompilerServices
5+
open System.Runtime.InteropServices
6+
7+
(* General Information about an assembly is controlled through the following
8+
set of attributes. Change these attribute values to modify the information
9+
associated with an assembly. *)
10+
[<assembly: AssemblyTitle("$projectname$")>]
11+
[<assembly: AssemblyDescription("")>]
12+
[<assembly: AssemblyConfiguration("")>]
13+
[<assembly: AssemblyCompany("$registeredorganization$")>]
14+
[<assembly: AssemblyProduct("$projectname$")>]
15+
[<assembly: AssemblyCopyright("Copyright © $registeredorganization$ $year$")>]
16+
[<assembly: AssemblyTrademark("")>]
17+
[<assembly: AssemblyCulture("")>]
18+
19+
(* Setting ComVisible to false makes the types in this assembly not visible
20+
to COM components. If you need to access a type in this assembly from
21+
COM, set the ComVisible attribute to true on that type. *)
22+
[<assembly: ComVisible(false)>]
23+
24+
// The following GUID is for the ID of the typelib if this project is exposed to COM
25+
[<assembly: Guid("$guid1$")>]
26+
27+
(* Version information for an assembly consists of the following four values:
28+
29+
Major Version
30+
Minor Version
31+
Build Number
32+
Revision
33+
34+
You can specify all the values or you can default the Build and Revision Numbers
35+
by using the '*' as shown below:
36+
[<assembly: AssemblyVersion("1.0.*")>] *)
37+
[<assembly: AssemblyVersion("1.0.0.0")>]
38+
[<assembly: AssemblyFileVersion("1.0.0.0")>]
39+
40+
do
41+
()

vsintegration/src/Templates/LibraryProjectTemplates/ProjectTemplates/Library/Library.fsproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
$endif$
5050
</ItemGroup>
5151
<ItemGroup>
52+
<Compile Include="AssemblyInfo.fs" />
5253
<Compile Include="Library1.fs" />
5354
<None Include="Script.fsx" />
5455
</ItemGroup>

vsintegration/src/Templates/LibraryProjectTemplates/ProjectTemplates/Library/fsLibrary.vstemplate

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
</TemplateData>
1616
<TemplateContent>
1717
<Project File="Library.fsproj" ReplaceParameters="true">
18+
<ProjectItem ReplaceParameters="true">AssemblyInfo.fs</ProjectItem>
1819
<ProjectItem ReplaceParameters="true" OpenInEditor="true">Library1.fs</ProjectItem>
1920
<ProjectItem ReplaceParameters="true">Script.fsx</ProjectItem>
2021
</Project>

vsintegration/src/Templates/NetCore259ProjectTemplates/NetCore259ProjectTemplates.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@
7777
</ItemGroup>
7878
<ItemGroup>
7979
<None Include="ProjectTemplates\NETCorePortableLibrary\PortableLibrary.fsproj" />
80+
<None Include="ProjectTemplates\NETCorePortableLibrary\AssemblyInfo.fs" />
8081
<None Include="ProjectTemplates\NETCorePortableLibrary\PortableLibrary1.fs" />
8182
<None Include="ProjectTemplates\NETCorePortableLibrary\Script.fsx" />
8283
</ItemGroup>
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
namespace $safeprojectname$.AssemblyInfo
2+
3+
open System.Resources
4+
open System.Reflection
5+
open System.Runtime.CompilerServices
6+
open System.Runtime.InteropServices
7+
8+
(* General Information about an assembly is controlled through the following
9+
set of attributes. Change these attribute values to modify the information
10+
associated with an assembly. *)
11+
[<assembly: AssemblyTitle("$projectname$")>]
12+
[<assembly: AssemblyDescription("")>]
13+
[<assembly: AssemblyConfiguration("")>]
14+
[<assembly: AssemblyCompany("$registeredorganization$")>]
15+
[<assembly: AssemblyProduct("$projectname$")>]
16+
[<assembly: AssemblyCopyright("Copyright © $registeredorganization$ $year$")>]
17+
[<assembly: AssemblyTrademark("")>]
18+
[<assembly: AssemblyCulture("")>]
19+
[<assembly: NeutralResourcesLanguage("en")>]
20+
21+
(* Version information for an assembly consists of the following four values:
22+
23+
Major Version
24+
Minor Version
25+
Build Number
26+
Revision
27+
28+
You can specify all the values or you can default the Build and Revision Numbers
29+
by using the '*' as shown below:
30+
[<assembly: AssemblyVersion("1.0.*")>] *)
31+
[<assembly: AssemblyVersion("1.0.0.0")>]
32+
[<assembly: AssemblyFileVersion("1.0.0.0")>]
33+
34+
do
35+
()

0 commit comments

Comments
 (0)