Merge pull request #798 from piotrpMSFT/piotrpMSFT/issue797/emptyNuget
Fix empty NuGets
This commit is contained in:
commit
1e423d4f1b
6 changed files with 13 additions and 15 deletions
|
@ -23,21 +23,16 @@ New-Item -ItemType Directory -Force -Path $IntermediatePackagesDir
|
|||
$Projects = @(
|
||||
"Microsoft.DotNet.Cli.Utils",
|
||||
"Microsoft.DotNet.ProjectModel",
|
||||
"Microsoft.DotNet.ProjectModel.Workspaces",
|
||||
"Microsoft.DotNet.Runtime",
|
||||
"Microsoft.Extensions.Testing.Abstractions",
|
||||
"Microsoft.DotNet.ProjectModel.Loader",
|
||||
"Microsoft.Extensions.DependencyModel"
|
||||
"Microsoft.DotNet.ProjectModel.Workspaces",
|
||||
"Microsoft.Extensions.DependencyModel",
|
||||
"Microsoft.Extensions.Testing.Abstractions"
|
||||
)
|
||||
|
||||
foreach ($ProjectName in $Projects) {
|
||||
$ProjectFile = "$RepoRoot\src\$ProjectName\project.json"
|
||||
& $toolsDir\dotnet restore "$ProjectFile"
|
||||
if (!$?) {
|
||||
Write-Host "$toolsDir\dotnet restore failed for: $ProjectFile"
|
||||
Exit 1
|
||||
}
|
||||
& $toolsDir\dotnet pack "$ProjectFile" --basepath "Stage2Dir\bin" --output "$IntermediatePackagesDir" $versionArg
|
||||
|
||||
& $toolsDir\dotnet pack "$ProjectFile" --basepath "$Stage2Dir\bin" --output "$IntermediatePackagesDir" $versionArg
|
||||
if (!$?) {
|
||||
Write-Host "$toolsDir\dotnet pack failed for: $ProjectFile"
|
||||
Exit 1
|
||||
|
|
|
@ -13,6 +13,8 @@ param(
|
|||
|
||||
$Projects = @(
|
||||
"Microsoft.DotNet.Cli",
|
||||
"Microsoft.DotNet.Cli.Utils",
|
||||
"Microsoft.DotNet.ProjectModel.Loader",
|
||||
"Microsoft.DotNet.ProjectModel.Server",
|
||||
"Microsoft.DotNet.Tools.Builder",
|
||||
"Microsoft.DotNet.Tools.Compiler",
|
||||
|
@ -27,7 +29,9 @@ $Projects = @(
|
|||
"Microsoft.DotNet.Tools.Repl.Csi",
|
||||
"Microsoft.DotNet.Tools.Resgen",
|
||||
"Microsoft.DotNet.Tools.Run",
|
||||
"Microsoft.DotNet.Tools.Test"
|
||||
"Microsoft.DotNet.Tools.Test",
|
||||
"Microsoft.Extensions.DependencyModel",
|
||||
"Microsoft.Extensions.Testing.Abstractions"
|
||||
)
|
||||
|
||||
$BinariesForCoreHost = @(
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
"Microsoft.DotNet.ProjectModel": "1.0.0-*",
|
||||
"Microsoft.DotNet.Compiler.Common": "1.0.0-*",
|
||||
"Microsoft.DotNet.Cli.Utils": "1.0.0-*",
|
||||
"Microsoft.Extensions.PlatformAbstractions": "1.0.0-*",
|
||||
"Microsoft.Extensions.PlatformAbstractions": "1.0.0-rc2-16530",
|
||||
|
||||
"Microsoft.Extensions.CommandLineUtils.Sources": {
|
||||
"type": "build",
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
},
|
||||
"frameworks": {
|
||||
"net451": { },
|
||||
"dotnet5.4": {
|
||||
"dnxcore50": {
|
||||
"dependencies": {
|
||||
"System.IO.FileSystem": "4.0.1-rc2-23616",
|
||||
"System.Linq": "4.0.1-rc2-23616",
|
||||
|
|
|
@ -12,7 +12,6 @@
|
|||
"dependencies": {
|
||||
"Newtonsoft.Json": "7.0.1",
|
||||
"Microsoft.DotNet.ProjectModel": "1.0.0-*",
|
||||
"Microsoft.Extensions.Compilation.Abstractions": "1.0.0-*",
|
||||
"Microsoft.Extensions.Logging.Abstractions": "1.0.0-*",
|
||||
"System.Runtime.Serialization.Primitives": "4.0.11-rc2-23616"
|
||||
},
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
"System.Linq": "4.0.1-beta-23516",
|
||||
"System.Threading": "4.0.11-beta-23516",
|
||||
|
||||
"Microsoft.Extensions.PlatformAbstractions": "1.0.0-*",
|
||||
"Microsoft.Extensions.PlatformAbstractions": "1.0.0-rc2-16530",
|
||||
|
||||
"Microsoft.DotNet.ProjectModel.Loader": { "target": "project" }
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue