Skip to content

Commit 897a970

Browse files
authored
Add MS.DotNet.Common.ProjectTemplates.2.1,1.0.2-beta3 (#291)
1 parent 59599cd commit 897a970

File tree

26 files changed

+774
-0
lines changed

26 files changed

+774
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"$schema": "http://json.schemastore.org/dotnetcli.host",
3+
"symbolInfo": {
4+
"TargetFrameworkOverride": {
5+
"isHidden": "true",
6+
"longName": "target-framework-override",
7+
"shortName": ""
8+
},
9+
"Framework": {
10+
"longName": "framework"
11+
},
12+
"skipRestore": {
13+
"longName": "no-restore",
14+
"shortName": ""
15+
}
16+
},
17+
"usageExamples": [
18+
"--framework netcoreapp2.1"
19+
]
20+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
{
2+
"$schema": "http://json.schemastore.org/template",
3+
"author": "Microsoft",
4+
"classifications": ["Common", "Library"],
5+
"name": "Class library",
6+
"generatorVersions": "[1.0.0.0-*)",
7+
"description": "A project for creating a class library that targets .NET Standard or .NET Core",
8+
"groupIdentity": "Microsoft.Common.Library",
9+
"precedence": "3000",
10+
"identity": "Microsoft.Common.Library.CSharp.2.1",
11+
"shortName": "classlib",
12+
"tags": {
13+
"language": "C#",
14+
"type": "project"
15+
},
16+
"sourceName": "Company.ClassLibrary1",
17+
"preferNameDirectory": true,
18+
"baselines": {
19+
"app": {
20+
"description": "Target netcoreapp",
21+
"defaultOverrides": {
22+
"Framework": "netcoreapp2.1"
23+
}
24+
},
25+
"standard": {
26+
"description": "Target netstandard",
27+
"defaultOverrides": {
28+
"Framework": "netstandard2.0"
29+
}
30+
}
31+
},
32+
"symbols": {
33+
"TargetFrameworkOverride": {
34+
"type": "parameter",
35+
"description": "Overrides the target framework",
36+
"replaces": "TargetFrameworkOverride",
37+
"datatype": "string",
38+
"defaultValue": ""
39+
},
40+
"Framework": {
41+
"type": "parameter",
42+
"description": "The target framework for the project.",
43+
"datatype": "choice",
44+
"choices": [
45+
{
46+
"choice": "netcoreapp2.1",
47+
"description": "Target netcoreapp2.1"
48+
},
49+
{
50+
"choice": "netstandard2.0",
51+
"description": "Target netstandard2.0"
52+
}
53+
],
54+
"replaces": "netstandard2.0",
55+
"defaultValue": "netstandard2.0"
56+
},
57+
"HostIdentifier": {
58+
"type": "bind",
59+
"binding": "HostIdentifier"
60+
},
61+
"skipRestore": {
62+
"type": "parameter",
63+
"datatype": "bool",
64+
"description": "If specified, skips the automatic restore of the project on create.",
65+
"defaultValue": "false"
66+
}
67+
},
68+
"primaryOutputs": [
69+
{ "path": "Company.ClassLibrary1.csproj" },
70+
{
71+
"condition": "(HostIdentifier != \"dotnetcli\" && HostIdentifier != \"dotnetcli-preview\")",
72+
"path": "Class1.cs"
73+
}
74+
],
75+
"defaultName": "ClassLibrary1",
76+
"postActions": [
77+
{
78+
"condition": "(!skipRestore)",
79+
"description": "Restore NuGet packages required by this project.",
80+
"manualInstructions": [
81+
{ "text": "Run 'dotnet restore'" }
82+
],
83+
"actionId": "210D431B-A78B-4D2F-B762-4ED3E3EA9025",
84+
"continueOnError": true
85+
},
86+
{
87+
"condition": "(HostIdentifier != \"dotnetcli\" && HostIdentifier != \"dotnetcli-preview\")",
88+
"description": "Opens Class1.cs in the editor",
89+
"manualInstructions": [ ],
90+
"actionId": "84C0DA21-51C8-4541-9940-6CA19AF04EE6",
91+
"args": {
92+
"files": "1"
93+
},
94+
"continueOnError": true
95+
}
96+
]
97+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
using System;
2+
3+
namespace Company.ClassLibrary1
4+
{
5+
public class Class1
6+
{
7+
}
8+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<TargetFramework Condition="'$(TargetFrameworkOverride)' == ''">netstandard2.0</TargetFramework>
5+
<TargetFramework Condition="'$(TargetFrameworkOverride)' != ''">TargetFrameworkOverride</TargetFramework>
6+
<RootNamespace Condition="'$(name)' != '$(name{-VALUE-FORMS-}safe_namespace)'">Company.ClassLibrary1</RootNamespace>
7+
</PropertyGroup>
8+
9+
</Project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"$schema": "http://json.schemastore.org/dotnetcli.host",
3+
"symbolInfo": {
4+
"TargetFrameworkOverride": {
5+
"isHidden": "true",
6+
"longName": "target-framework-override",
7+
"shortName": ""
8+
},
9+
"Framework": {
10+
"longName": "framework"
11+
},
12+
"skipRestore": {
13+
"longName": "no-restore",
14+
"shortName": ""
15+
}
16+
},
17+
"usageExamples": [
18+
"--framework netcoreapp2.1"
19+
]
20+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
{
2+
"$schema": "http://json.schemastore.org/template",
3+
"author": "Microsoft",
4+
"classifications": ["Common", "Library"],
5+
"name": "Class library",
6+
"generatorVersions": "[1.0.0.0-*)",
7+
"description": "A project for creating a class library that targets .NET Standard or .NET Core",
8+
"groupIdentity": "Microsoft.Common.Library",
9+
"precedence": "3000",
10+
"identity": "Microsoft.Common.Library.FSharp.2.1",
11+
"shortName": "classlib",
12+
"tags": {
13+
"language": "F#",
14+
"type": "project"
15+
},
16+
"sourceName": "Company.ClassLibrary1",
17+
"preferNameDirectory": true,
18+
"baselines": {
19+
"app": {
20+
"description": "Target netcoreapp",
21+
"defaultOverrides": {
22+
"Framework": "netcoreapp2.1"
23+
}
24+
},
25+
"standard": {
26+
"description": "Target netstandard",
27+
"defaultOverrides": {
28+
"Framework": "netstandard2.0"
29+
}
30+
}
31+
},
32+
"symbols": {
33+
"TargetFrameworkOverride": {
34+
"type": "parameter",
35+
"description": "Overrides the target framework",
36+
"replaces": "TargetFrameworkOverride",
37+
"datatype": "string",
38+
"defaultValue": ""
39+
},
40+
"Framework": {
41+
"type": "parameter",
42+
"description": "The target framework for the project.",
43+
"datatype": "choice",
44+
"choices": [
45+
{
46+
"choice": "netcoreapp2.1",
47+
"description": "Target netcoreapp2.1"
48+
},
49+
{
50+
"choice": "netstandard2.0",
51+
"description": "Target netstandard2.0"
52+
}
53+
],
54+
"replaces": "netstandard2.0",
55+
"defaultValue": "netstandard2.0"
56+
},
57+
"HostIdentifier": {
58+
"type": "bind",
59+
"binding": "HostIdentifier"
60+
},
61+
"skipRestore": {
62+
"type": "parameter",
63+
"datatype": "bool",
64+
"description": "If specified, skips the automatic restore of the project on create.",
65+
"defaultValue": "false"
66+
}
67+
},
68+
"primaryOutputs": [
69+
{ "path": "Company.ClassLibrary1.fsproj" },
70+
{
71+
"condition": "(HostIdentifier != \"dotnetcli\" && HostIdentifier != \"dotnetcli-preview\")",
72+
"path": "Library.fs"
73+
}
74+
],
75+
"defaultName": "ClassLibrary1",
76+
"postActions": [
77+
{
78+
"condition": "(!skipRestore)",
79+
"description": "Restore NuGet packages required by this project.",
80+
"manualInstructions": [
81+
{ "text": "Run 'dotnet restore'" }
82+
],
83+
"actionId": "210D431B-A78B-4D2F-B762-4ED3E3EA9025",
84+
"continueOnError": true
85+
},
86+
{
87+
"condition": "(HostIdentifier != \"dotnetcli\" && HostIdentifier != \"dotnetcli-preview\")",
88+
"description": "Opens Library.fs in the editor",
89+
"manualInstructions": [ ],
90+
"actionId": "84C0DA21-51C8-4541-9940-6CA19AF04EE6",
91+
"args": {
92+
"files": "1"
93+
},
94+
"continueOnError": true
95+
}
96+
]
97+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<TargetFramework Condition="'$(TargetFrameworkOverride)' == ''">netstandard2.0</TargetFramework>
5+
<TargetFramework Condition="'$(TargetFrameworkOverride)' != ''">TargetFrameworkOverride</TargetFramework>
6+
<RootNamespace Condition="'$(name)' != '$(name{-VALUE-FORMS-}safe_namespace)'">Company.ClassLibrary1</RootNamespace>
7+
</PropertyGroup>
8+
9+
<ItemGroup>
10+
<Compile Include="Library.fs" />
11+
</ItemGroup>
12+
13+
</Project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
namespace Company.ClassLibrary1
2+
3+
module Say =
4+
let hello name =
5+
printfn "Hello %s" name
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"$schema": "http://json.schemastore.org/dotnetcli.host",
3+
"symbolInfo": {
4+
"TargetFrameworkOverride": {
5+
"isHidden": "true",
6+
"longName": "target-framework-override",
7+
"shortName": ""
8+
},
9+
"Framework": {
10+
"longName": "framework"
11+
},
12+
"skipRestore": {
13+
"longName": "no-restore",
14+
"shortName": ""
15+
}
16+
},
17+
"usageExamples": [
18+
"--framework netcoreapp2.1"
19+
]
20+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
{
2+
"$schema": "http://json.schemastore.org/template",
3+
"author": "Microsoft",
4+
"classifications": ["Common", "Library"],
5+
"name": "Class library",
6+
"generatorVersions": "[1.0.0.0-*)",
7+
"description": "A project for creating a class library that targets .NET Standard or .NET Core",
8+
"groupIdentity": "Microsoft.Common.Library",
9+
"precedence": "3000",
10+
"identity": "Microsoft.Common.Library.VisualBasic.2.1",
11+
"shortName": "classlib",
12+
"tags": {
13+
"language": "VB",
14+
"type": "project"
15+
},
16+
"sourceName": "Company.ClassLibrary1",
17+
"preferNameDirectory": true,
18+
"baselines": {
19+
"app": {
20+
"description": "Target netcoreapp",
21+
"defaultOverrides": {
22+
"Framework": "netcoreapp2.1"
23+
}
24+
},
25+
"standard": {
26+
"description": "Target netstandard",
27+
"defaultOverrides": {
28+
"Framework": "netstandard2.0"
29+
}
30+
}
31+
},
32+
"symbols": {
33+
"TargetFrameworkOverride": {
34+
"type": "parameter",
35+
"description": "Overrides the target framework",
36+
"replaces": "TargetFrameworkOverride",
37+
"datatype": "string",
38+
"defaultValue": ""
39+
},
40+
"Framework": {
41+
"type": "parameter",
42+
"description": "The target framework for the project.",
43+
"datatype": "choice",
44+
"choices": [
45+
{
46+
"choice": "netcoreapp2.1",
47+
"description": "Target netcoreapp2.1"
48+
},
49+
{
50+
"choice": "netstandard2.0",
51+
"description": "Target netstandard2.0"
52+
}
53+
],
54+
"replaces": "netstandard2.0",
55+
"defaultValue": "netstandard2.0"
56+
},
57+
"HostIdentifier": {
58+
"type": "bind",
59+
"binding": "HostIdentifier"
60+
},
61+
"skipRestore": {
62+
"type": "parameter",
63+
"datatype": "bool",
64+
"description": "If specified, skips the automatic restore of the project on create.",
65+
"defaultValue": "false"
66+
}
67+
},
68+
"primaryOutputs": [
69+
{ "path": "Company.ClassLibrary1.vbproj" },
70+
{
71+
"condition": "(HostIdentifier != \"dotnetcli\" && HostIdentifier != \"dotnetcli-preview\")",
72+
"path": "Class1.vb"
73+
}
74+
],
75+
"defaultName": "ClassLibrary1",
76+
"postActions": [
77+
{
78+
"condition": "(!skipRestore)",
79+
"description": "Restore NuGet packages required by this project.",
80+
"manualInstructions": [
81+
{ "text": "Run 'dotnet restore'" }
82+
],
83+
"actionId": "210D431B-A78B-4D2F-B762-4ED3E3EA9025",
84+
"continueOnError": true
85+
},
86+
{
87+
"condition": "(HostIdentifier != \"dotnetcli\" && HostIdentifier != \"dotnetcli-preview\")",
88+
"description": "Opens Class1.vb in the editor",
89+
"manualInstructions": [ ],
90+
"actionId": "84C0DA21-51C8-4541-9940-6CA19AF04EE6",
91+
"args": {
92+
"files": "1"
93+
},
94+
"continueOnError": true
95+
}
96+
]
97+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Public Class Class1
2+
3+
End Class

0 commit comments

Comments
 (0)