Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit93d7b98

Browse files
ReedCopseyKevinRansom
ReedCopsey
authored andcommitted
Updated all templates (except tutorial) to include AssemblyInfo.fs setup in the same manner as default C# project templates
1 parent110449b commit93d7b98

File tree

28 files changed

+284
-0
lines changed

28 files changed

+284
-0
lines changed

‎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
<NoneInclude="ProjectTemplates\ConsoleApplication\App.config" />
7373
<NoneInclude="ProjectTemplates\ConsoleApplication\ConsoleApplication.fsproj" />
74+
<NoneInclude="ProjectTemplates\ConsoleApplication\AssemblyInfo.fs" />
7475
<NoneInclude="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+
openSystem.Reflection
4+
openSystem.Runtime.CompilerServices
5+
openSystem.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+
<CompileInclude="AssemblyInfo.fs" />
5758
<CompileInclude="Program.fs" />
5859
<NoneInclude="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
<ProjectFile="ConsoleApplication.fsproj"ReplaceParameters="true">
18+
<ProjectItemReplaceParameters="true">AssemblyInfo.fs</ProjectItem>
1819
<ProjectItemReplaceParameters="true"OpenInEditor="true">Program.fs</ProjectItem>
1920
<ProjectItemReplaceParameters="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
<NoneInclude="ProjectTemplates\Library\Library.fsproj" />
80+
<NoneInclude="ProjectTemplates\Library\AssemblyInfo.fs" />
8081
<NoneInclude="ProjectTemplates\Library\Library1.fs" />
8182
<NoneInclude="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+
openSystem.Reflection
4+
openSystem.Runtime.CompilerServices
5+
openSystem.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+
<CompileInclude="AssemblyInfo.fs" />
5253
<CompileInclude="Library1.fs" />
5354
<NoneInclude="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
<ProjectFile="Library.fsproj"ReplaceParameters="true">
18+
<ProjectItemReplaceParameters="true">AssemblyInfo.fs</ProjectItem>
1819
<ProjectItemReplaceParameters="true"OpenInEditor="true">Library1.fs</ProjectItem>
1920
<ProjectItemReplaceParameters="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
<NoneInclude="ProjectTemplates\NETCorePortableLibrary\PortableLibrary.fsproj" />
80+
<NoneInclude="ProjectTemplates\NETCorePortableLibrary\AssemblyInfo.fs" />
8081
<NoneInclude="ProjectTemplates\NETCorePortableLibrary\PortableLibrary1.fs" />
8182
<NoneInclude="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+
openSystem.Resources
4+
openSystem.Reflection
5+
openSystem.Runtime.CompilerServices
6+
openSystem.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)

[8]ページ先頭

©2009-2025 Movatter.jp