Skip to content

Commit 44f3fb1

Browse files
committed
Update content to copyToOutput and publishOptions
These must be duplicated as we require the same files for both `build` and `publish`. This is the requirement of the new schema, as `content` was split. Note that while each key can take an object, if given just a `string[]` as we do here, it defaults to `include`. See the new schema: aspnet/Announcements#175
1 parent 1a1de1d commit 44f3fb1

2 files changed

Lines changed: 28 additions & 14 deletions

File tree

‎src/Microsoft.PowerShell.ConsoleHost/project.json‎

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,28 @@
77
"buildOptions": {
88
"warningsAsErrors": true,
99
"allowUnsafe": true,
10-
"compile": [ "../windows-build/gen/Microsoft.PowerShell.ConsoleHost/*.cs" ]
10+
"compile": [ "../windows-build/gen/Microsoft.PowerShell.ConsoleHost/*.cs" ],
11+
"copyToOutput": [
12+
"Modules",
13+
"../Modules",
14+
"powershell.exe",
15+
"../../powershell.version"
16+
]
1117
},
1218

13-
"dependencies": {
14-
"Microsoft.PowerShell.PSReadLine": "1.0.0-*",
15-
"Microsoft.PowerShell.Commands.Management": "1.0.0-*",
16-
"Microsoft.PowerShell.Commands.Utility": "1.0.0-*"
17-
},
18-
19-
"content": [
19+
"publishOptions": [
2020
"Modules",
2121
"../Modules",
2222
"powershell.exe",
2323
"../../powershell.version"
2424
],
2525

26+
"dependencies": {
27+
"Microsoft.PowerShell.PSReadLine": "1.0.0-*",
28+
"Microsoft.PowerShell.Commands.Management": "1.0.0-*",
29+
"Microsoft.PowerShell.Commands.Utility": "1.0.0-*"
30+
},
31+
2632
"frameworks": {
2733
"netstandard1.5": {
2834
"imports": [ "dnxcore50", "portable-net45+win8" ],

‎src/powershell/project.json‎

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,18 @@
77
"buildOptions": {
88
"warningsAsErrors": true,
99
"allowUnsafe": true,
10-
"emitEntryPoint": true
10+
"emitEntryPoint": true,
11+
"copyToOutput": [
12+
"Modules",
13+
"../Modules",
14+
"*_profile.ps1",
15+
"*.so",
16+
"*.dylib",
17+
"../../powershell.version"
18+
]
1119
},
1220

13-
"dependencies": {
14-
"Microsoft.PowerShell.ConsoleHost": "1.0.0-*"
15-
},
16-
17-
"content": [
21+
"publishOptions": [
1822
"Modules",
1923
"../Modules",
2024
"*_profile.ps1",
@@ -23,6 +27,10 @@
2327
"../../powershell.version"
2428
],
2529

30+
"dependencies": {
31+
"Microsoft.PowerShell.ConsoleHost": "1.0.0-*"
32+
},
33+
2634
"frameworks": {
2735
"netcoreapp1.0": {
2836
"imports": [ "dnxcore50", "portable-net45+win8" ],

0 commit comments

Comments
 (0)