Skip to content

Commit 74986b4

Browse files
author
Kapil Borle
committed
Modify project.json to allow net451 compilation
Also, changes dotnet core framework to netstandard1.6 to correspond to that of PowerShell
1 parent fe79204 commit 74986b4

2 files changed

Lines changed: 68 additions & 24 deletions

File tree

Engine/project.json

Lines changed: 30 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,42 @@
22
"name": "Microsoft.Windows.PowerShell.ScriptAnalyzer",
33
"version": "1.0.0-*",
44
"authors": ["kapilmb"],
5-
65
"dependencies": {
7-
"Microsoft.NETCore.App": {
8-
"type": "platform",
9-
"version": "1.0.0-rc2-3002702"
6+
"System.Management.Automation": "1.0.0-*"
107
},
11-
"System.Management.Automation": "1.0.0-b2682"
12-
},
13-
148
"frameworks": {
15-
"netcoreapp1.0": {
9+
"net451": {
10+
"frameworkAssemblies": {
11+
"System.ComponentModel.Composition": ""
12+
},
13+
"buildOptions": {
14+
"compile": {
15+
"exclude": [
16+
"Commands/GetScriptAnalyzerLoggerCommand.cs",
17+
"Strings.Designer.Core.cs",
18+
"Strings.Designer.cs"
19+
]
20+
}
21+
},
22+
"configurations": {
23+
"PSV3 Release": {
24+
"buildOptions": {
25+
"define": [ "PSV3" ]
26+
}
27+
},
28+
"PSV3 Debug": {
29+
"buildOptions": {
30+
"define": [ "PSV3", "DEBUG" ]
31+
}
32+
}
33+
}
34+
},
35+
"netstandard1.6": {
1636
"imports": "dnxcore50",
17-
1837
"buildOptions": {
1938
"define": [ "CORECLR" ],
2039
"compile": {
21-
"exclude": [
40+
"exclude": [
2241
"SafeDirectoryCatalog.cs",
2342
"Strings.Designer.cs",
2443
"Strings.Designer.Core.cs",
@@ -28,4 +47,4 @@
2847
}
2948
}
3049
}
31-
}
50+
}

Rules/project.json

Lines changed: 38 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,55 @@
22
"name": "Microsoft.Windows.PowerShell.ScriptAnalyzer.BuiltinRules",
33
"version": "1.0.0-*",
44
"authors": ["kapilmb"],
5-
65
"dependencies": {
7-
"Microsoft.NETCore.App": {
8-
"type": "platform",
9-
"version": "1.0.0-rc2-3002702"
10-
},
116
"System.Management.Automation": "1.0.0-b2682",
127
"Engine": "1.0.0-*"
138
},
14-
159
"frameworks": {
16-
"netcoreapp1.0": {
10+
"net451": {
11+
"frameworkAssemblies": {
12+
"System.ComponentModel.Composition": "",
13+
"System.Data.Entity.Design": ""
14+
},
15+
"buildOptions": {
16+
"compile": {
17+
"exclude": [
18+
"Strings.Designer.Core.cs",
19+
"Strings.Designer.cs"
20+
]
21+
}
22+
},
23+
"configurations": {
24+
"PSV3 Release": {
25+
"buildOptions": {
26+
"define": [ "PSV3" ]
27+
}
28+
},
29+
"PSV3 Debug": {
30+
"buildOptions": {
31+
"define": [ "PSV3", "DEBUG" ]
32+
}
33+
}
34+
}
35+
},
36+
"netstandard1.6": {
1737
"imports": "dnxcore50",
18-
1938
"buildOptions": {
2039
"define": [ "CORECLR" ],
21-
"compile": {
22-
"exclude": [
40+
"compile": {
41+
"exclude": [
2342
"Strings.Designer.cs",
2443
"Strings.Designer.Core.cs",
25-
"UseSingularNouns.cs"
26-
]
44+
"UseSingularNouns.cs"
45+
]
2746
}
47+
},
48+
"dependencies": {
49+
"Microsoft.NETCore.App": {
50+
"type": "platform",
51+
"version": "1.0.0-rc2-3002702"
52+
}
2853
}
2954
}
30-
},
55+
}
3156
}

0 commit comments

Comments
 (0)