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

Commitc0bf278

Browse files
authored
Add templates (#3402)
1 parent7878f6d commitc0bf278

File tree

13 files changed

+205
-2
lines changed

13 files changed

+205
-2
lines changed

‎vsintegration/ItemTemplates/AppConfig/Template/AppConfig.vstemplate‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
<IconPackage="{91A04A73-4F2C-4E7C-AD38-C1A68E7DA05C}"ID="4010" />
77
<TemplateID>Microsoft.FSharp.AppConfig</TemplateID>
88
<ProjectType>FSharp</ProjectType>
9+
<SortOrder>60</SortOrder>
910
<NumberOfParentCategoriesToRollUp>1</NumberOfParentCategoriesToRollUp>
1011
<DefaultName>App.config</DefaultName>
1112
</TemplateData>
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!-- Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.-->
3+
<ProjectToolsVersion="15.0"DefaultTargets="Build"xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
4+
<PropertyGroup>
5+
<FSharpSourcesRoot>$(MSBuildProjectDirectory)\..\..\..\src</FSharpSourcesRoot>
6+
<AssemblyName>ResourceFile</AssemblyName>
7+
<TemplateCategory>ItemTemplates</TemplateCategory>
8+
<IsPackage>true</IsPackage>
9+
<GenerateLocalizedTemplates>true</GenerateLocalizedTemplates>
10+
<VSToolsPathCondition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
11+
<GeneratePkgDefFile>false</GeneratePkgDefFile>
12+
<IncludeAssemblyInVSIXContainer>false</IncludeAssemblyInVSIXContainer>
13+
<IncludeDebugSymbolsInVSIXContainer>false</IncludeDebugSymbolsInVSIXContainer>
14+
<IncludeDebugSymbolsInLocalVSIXDeployment>false</IncludeDebugSymbolsInLocalVSIXDeployment>
15+
<CreateVsixContainer>false</CreateVsixContainer>
16+
<DeployExtension>false</DeployExtension>
17+
<DeployVSTemplates>false</DeployVSTemplates>
18+
<CopyVsixManifestToOutput>false</CopyVsixManifestToOutput>
19+
<CopyBuildOutputToOutputDirectory>false</CopyBuildOutputToOutputDirectory>
20+
<CopyOutputSymbolsToOutputDirectory>false</CopyOutputSymbolsToOutputDirectory>
21+
<ProjectGuid>{0385564F-07B4-4264-AB8A-17C393E9140C}</ProjectGuid>
22+
</PropertyGroup>
23+
24+
<PropertyGroup>
25+
<ConfigurationCondition="'$(Configuration)' == ''">Debug</Configuration>
26+
<TargetDotnetProfileCondition="'$(TargetDotnetProfile)' == ''">net40</TargetDotnetProfile>
27+
<OutputPath>$(FSharpSourcesRoot)\..\$(Configuration)\$(TargetDotnetProfile)\bin\$(TemplateCategory)\$(AssemblyName)</OutputPath>
28+
</PropertyGroup>
29+
30+
<ImportProject="$(FSharpSourcesRoot)\..\vsintegration\src\FSharp.Common.props" />
31+
32+
<ItemGroup>
33+
<VSTemplateInclude="Template\Resource.vstemplate" />
34+
</ItemGroup>
35+
36+
<ItemGroup>
37+
<TemplateFilesInclude="Template\Resource.resx" />
38+
<TemplateFilesInclude="Template\Resource.vstemplate" />
39+
</ItemGroup>
40+
41+
<ImportProject="$(FSharpSourcesRoot)\..\vsintegration\src\FSharp.tools.targets" />
42+
<ImportProject="$(FSharpSourcesRoot)\Microbuild.Settings.targets" />
43+
44+
<TargetName="CoreCompile" />
45+
46+
<TargetName="CopyFilesToOutputDirectory"AfterTargets="CoreCompile">
47+
<CopySourceFiles="@(TemplateFiles)"DestinationFiles="@(TemplateFiles->'$(OutDir)$(TemplateCategory)\$(AssemblyName)\%(Filename)%(Extension)')" />
48+
</Target>
49+
</Project>
Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<root>
3+
<!--
4+
Microsoft ResX Schema
5+
6+
Version 1.3
7+
8+
The primary goals of this format is to allow a simple XML format
9+
that is mostly human readable. The generation and parsing of the
10+
various data types are done through the TypeConverter classes
11+
associated with the data types.
12+
13+
Example:
14+
... ado.net/XML headers & schema ...
15+
16+
<resheader name="resmimetype">text/microsoft-resx</resheader>
17+
<resheader name="version">1.3</resheader>
18+
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
19+
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
20+
<data name="Name1">this is my long string</data>
21+
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
22+
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
23+
[base64 mime encoded serialized .NET Framework object]
24+
</data>
25+
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
26+
[base64 mime encoded string representing a byte array form of the .NET Framework object]
27+
</data>
28+
29+
There are any number of "resheader" rows that contain simple
30+
name/value pairs.
31+
32+
Each data row contains a name, and value. The row also contains a
33+
type or mimetype. Type corresponds to a .NET class that support
34+
text/value conversion through the TypeConverter architecture.
35+
Classes that don't support this are serialized and stored with the
36+
mimetype set.
37+
38+
The mimetype is used for serialized objects, and tells the
39+
ResXResourceReader how to depersist the object. This is currently not
40+
extensible. For a given mimetype the value must be set accordingly:
41+
42+
Note - application/x-microsoft.net.object.binary.base64 is the format
43+
that the ResXResourceWriter will generate, however the reader can
44+
read any of the formats listed below.
45+
46+
mimetype: application/x-microsoft.net.object.binary.base64
47+
value : The object must be serialized with
48+
: System.Serialization.Formatters.Binary.BinaryFormatter
49+
: and then encoded with base64 encoding.
50+
51+
mimetype: application/x-microsoft.net.object.soap.base64
52+
value : The object must be serialized with
53+
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
54+
: and then encoded with base64 encoding.
55+
56+
mimetype: application/x-microsoft.net.object.bytearray.base64
57+
value : The object must be serialized into a byte array
58+
: using a System.ComponentModel.TypeConverter
59+
: and then encoded with base64 encoding.
60+
-->
61+
62+
<xsd:schemaid="root"xmlns=""xmlns:xsd="http://www.w3.org/2001/XMLSchema"xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
63+
<xsd:elementname="root"msdata:IsDataSet="true">
64+
<xsd:complexType>
65+
<xsd:choicemaxOccurs="unbounded">
66+
<xsd:elementname="data">
67+
<xsd:complexType>
68+
<xsd:sequence>
69+
<xsd:elementname="value"type="xsd:string"minOccurs="0"msdata:Ordinal="1" />
70+
<xsd:elementname="comment"type="xsd:string"minOccurs="0"msdata:Ordinal="2" />
71+
</xsd:sequence>
72+
<xsd:attributename="name"type="xsd:string"msdata:Ordinal="1" />
73+
<xsd:attributename="type"type="xsd:string"msdata:Ordinal="3" />
74+
<xsd:attributename="mimetype"type="xsd:string"msdata:Ordinal="4" />
75+
</xsd:complexType>
76+
</xsd:element>
77+
<xsd:elementname="resheader">
78+
<xsd:complexType>
79+
<xsd:sequence>
80+
<xsd:elementname="value"type="xsd:string"minOccurs="0"msdata:Ordinal="1" />
81+
</xsd:sequence>
82+
<xsd:attributename="name"type="xsd:string"use="required" />
83+
</xsd:complexType>
84+
</xsd:element>
85+
</xsd:choice>
86+
</xsd:complexType>
87+
</xsd:element>
88+
</xsd:schema>
89+
<resheadername="resmimetype">
90+
<value>text/microsoft-resx</value>
91+
</resheader>
92+
<resheadername="version">
93+
<value>1.3</value>
94+
</resheader>
95+
<resheadername="reader">
96+
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.3500.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
97+
</resheader>
98+
<resheadername="writer">
99+
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.3500.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
100+
</resheader>
101+
</root>
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<VSTemplateVersion="3.0.0"Type="Item"xmlns="http://schemas.microsoft.com/developer/vstemplate/2005">
3+
<TemplateData>
4+
<NamePackage="{91A04A73-4F2C-4E7C-AD38-C1A68E7DA05C}"ID="5053" />
5+
<DescriptionPackage="{91A04A73-4F2C-4E7C-AD38-C1A68E7DA05C}"ID="5054" />
6+
<IconPackage="{91A04A73-4F2C-4E7C-AD38-C1A68E7DA05C}"ID="4017" />
7+
<TemplateID>Microsoft.FSharp.Resource</TemplateID>
8+
<ProjectType>FSharp</ProjectType>
9+
<SortOrder>40</SortOrder>
10+
<NumberOfParentCategoriesToRollUp>1</NumberOfParentCategoriesToRollUp>
11+
<DefaultName>Resource.resx</DefaultName>
12+
</TemplateData>
13+
<TemplateContent>
14+
<ProjectItemOpenInEditor="false">Resource.resx</ProjectItem>
15+
<CustomParameters>
16+
<CustomParameterName="$itemproperties$"Value="CustomTool" />
17+
<CustomParameterName="$CustomTool$"Value="ResXFileCodeGenerator" />
18+
</CustomParameters>
19+
</TemplateContent>
20+
<WizardExtension>
21+
<Assembly>Microsoft.VisualStudio.Editors, Version=15.0.0.0, Culture=Neutral, PublicKeyToken=b03f5f7f11d50a3a</Assembly>
22+
<FullClassName>Microsoft.VisualStudio.Editors.ResourceEditor.ResxItemWizard</FullClassName>
23+
</WizardExtension>
24+
</VSTemplate>

‎vsintegration/ItemTemplates/ScriptFile/Template/ScriptFile.vstemplate‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<IconPackage="{91A04A73-4F2C-4E7C-AD38-C1A68E7DA05C}"ID="4006" />
77
<TemplateID>Microsoft.FSharp.ScriptFile</TemplateID>
88
<ProjectType>FSharp</ProjectType>
9-
<SortOrder>30</SortOrder>
9+
<SortOrder>20</SortOrder>
1010
<NumberOfParentCategoriesToRollUp>1</NumberOfParentCategoriesToRollUp>
1111
<DefaultName>Script.fsx</DefaultName>
1212
</TemplateData>

‎vsintegration/ItemTemplates/SignatureFile/Template/SignatureFile.vstemplate‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<IconPackage="{91A04A73-4F2C-4E7C-AD38-C1A68E7DA05C}"ID="4007" />
77
<TemplateID>Microsoft.FSharp.SignatureFile</TemplateID>
88
<ProjectType>FSharp</ProjectType>
9-
<SortOrder>50</SortOrder>
9+
<SortOrder>30</SortOrder>
1010
<NumberOfParentCategoriesToRollUp>1</NumberOfParentCategoriesToRollUp>
1111
<DefaultName>File.fsi</DefaultName>
1212
</TemplateData>

‎vsintegration/ItemTemplates/TextFile/Template/TextFile.vstemplate‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
<IconPackage="{91A04A73-4F2C-4E7C-AD38-C1A68E7DA05C}"ID="4009" />
77
<TemplateID>Microsoft.FSharp.TextFile</TemplateID>
88
<ProjectType>FSharp</ProjectType>
9+
<SortOrder>50</SortOrder>
910
<NumberOfParentCategoriesToRollUp>1</NumberOfParentCategoriesToRollUp>
1011
<DefaultName>TextFile.txt</DefaultName>
1112
</TemplateData>

‎vsintegration/ItemTemplates/XMLFile/Template/XMLFile.vstemplate‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
<IconPackage="{91A04A73-4F2C-4E7C-AD38-C1A68E7DA05C}"ID="4011" />
77
<TemplateID>Microsoft.FSharp.XMLFile</TemplateID>
88
<ProjectType>FSharp</ProjectType>
9+
<SortOrder>70</SortOrder>
910
<NumberOfParentCategoriesToRollUp>1</NumberOfParentCategoriesToRollUp>
1011
<DefaultName>XMLFile.xml</DefaultName>
1112
</TemplateData>

‎vsintegration/Vsix/VisualFSharpFull/VisualFSharpFull.csproj‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,14 @@
223223
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
224224
<Private>True</Private>
225225
</ProjectReference>
226+
<ProjectReferenceInclude="$(FSharpSourcesRoot)\..\vsintegration\ItemTemplates\ResourceFile\ResourceFile.csproj">
227+
<Project>{0385564F-07B4-4264-AB8A-17C393E9140C}</Project>
228+
<Name>ResourceFile</Name>
229+
<VSIXSubPath>ItemTemplates</VSIXSubPath>
230+
<IncludeOutputGroupsInVSIX>TemplateProjectOutputGroup%3b</IncludeOutputGroupsInVSIX>
231+
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
232+
<Private>True</Private>
233+
</ProjectReference>
226234
<ProjectReferenceInclude="$(FSharpSourcesRoot)\..\vsintegration\ItemTemplates\ScriptFile\ScriptFile.csproj">
227235
<Project>{a333b85a-dc23-49b6-9797-b89a7951e92d}</Project>
228236
<Name>ScriptFile</Name>

‎vsintegration/Vsix/VisualFSharpOpenSource/VisualFSharpOpenSource.csproj‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,14 @@
222222
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
223223
<Private>True</Private>
224224
</ProjectReference>
225+
<ProjectReferenceInclude="$(FSharpSourcesRoot)\..\vsintegration\ItemTemplates\ResourceFile\ResourceFile.csproj">
226+
<Project>{0385564F-07B4-4264-AB8A-17C393E9140C}</Project>
227+
<Name>ResourceFile</Name>
228+
<VSIXSubPath>ItemTemplates</VSIXSubPath>
229+
<IncludeOutputGroupsInVSIX>TemplateProjectOutputGroup%3b</IncludeOutputGroupsInVSIX>
230+
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
231+
<Private>True</Private>
232+
</ProjectReference>
225233
<ProjectReferenceInclude="$(FSharpSourcesRoot)\..\vsintegration\ItemTemplates\ScriptFile\ScriptFile.csproj">
226234
<Project>{a333b85a-dc23-49b6-9797-b89a7951e92d}</Project>
227235
<Name>ScriptFile</Name>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp