From 8eecff011262bf878e3881cbc1c95f5ad16d7b01 Mon Sep 17 00:00:00 2001 From: Piotr Puszkiewicz Date: Sat, 27 Aug 2016 15:57:14 -0700 Subject: [PATCH] Address build issues --- build/Microsoft.DotNet.Cli.Package.targets | 16 ++-- .../Microsoft.DotNet.Cli.Installer.DEB.proj | 85 +++++++++++-------- .../Microsoft.DotNet.Cli.Installer.DEB.props | 25 ++++-- src/dotnet/Program.cs | 1 + src/dotnet/commands/dotnet-nuget/Program.cs | 2 +- .../GivenANuGetCommand.cs | 1 + test/dotnet-nuget.UnitTests/project.json | 6 +- 7 files changed, 82 insertions(+), 54 deletions(-) diff --git a/build/Microsoft.DotNet.Cli.Package.targets b/build/Microsoft.DotNet.Cli.Package.targets index 8af7c7d03..802498174 100644 --- a/build/Microsoft.DotNet.Cli.Package.targets +++ b/build/Microsoft.DotNet.Cli.Package.targets @@ -15,20 +15,24 @@ - + SdkBrandName=$(SdkBrandName); + ToolPath=$(Stage2Directory);"/> + + $([MSBuild]::Unescape($(CLIBuildDll))) + + + + + + + @@ -24,35 +33,49 @@ - - - - + + + + + + + + + + + + + @@ -89,13 +112,6 @@ - - $(SdkDebianLayoutOutputDirectory)/$(DebLayoutPackageRootDirName) - $(SdkDebianLayoutOutputDirectory)/$(DebLayoutAbsolutePlacementDirName) - $(SdkDebianLayoutOutputDirectory)/$(DebLayoutSamplesDirName) - $(SdkDebianLayoutOutputDirectory)/$(DebLayoutDocsDirName) - $(SdkDebianLayoutOutputDirectory)/$(DebLayoutDebianFilesDirName) - @@ -114,8 +130,8 @@ $(DebLayoutDebianFilesDir)" /> - - + + @@ -124,26 +140,21 @@ DependsOnTargets="WriteDotnetDebToolProjectJson;"> + - + - - - - - + diff --git a/build/package/Microsoft.DotNet.Cli.Installer.DEB.props b/build/package/Microsoft.DotNet.Cli.Installer.DEB.props index cfd4da179..5a5e0728a 100644 --- a/build/package/Microsoft.DotNet.Cli.Installer.DEB.props +++ b/build/package/Microsoft.DotNet.Cli.Installer.DEB.props @@ -49,7 +49,7 @@ - + @@ -59,9 +59,20 @@ $(InstallerOutputDirectory)/$(ArtifactNameWithVersionSdk)$(InstallerExtension) $(IntermediateDirectory)/debian/sdk + $(SdkDebianIntermediateDirectory)/deb-tool-output $(SdkDebianIntermediateDirectory)/debian-testResults.xml + + + $(SdkDebianIntermediateDirectory)/debianLayoutDirectory + $(SdkDebianLayoutOutputDirectory)/$(DebLayoutPackageRootDirName) + $(SdkDebianLayoutOutputDirectory)/$(DebLayoutAbsolutePlacementDirName) + $(SdkDebianLayoutOutputDirectory)/$(DebLayoutSamplesDirName) + $(SdkDebianLayoutOutputDirectory)/$(DebLayoutDocsDirName) + $(SdkDebianLayoutOutputDirectory)/$(DebLayoutDebianFilesDirName) + + dotnet-debian_config.json @@ -71,22 +82,22 @@ - + $(SharedFrameworkDebianPackageName) - + $(SharedFrameworkName) - + $(SharedFrameworkVersion) - + $(SharedFrameworkBrandName) - + $(SdkVersion) - + $(SdkBrandName) diff --git a/src/dotnet/Program.cs b/src/dotnet/Program.cs index 15077eba5..30a93c923 100644 --- a/src/dotnet/Program.cs +++ b/src/dotnet/Program.cs @@ -15,6 +15,7 @@ using Microsoft.DotNet.Tools.Compiler; using Microsoft.DotNet.Tools.Compiler.Csc; using Microsoft.DotNet.Tools.Help; using Microsoft.DotNet.Tools.New; +using Microsoft.DotNet.Tools.NuGet; using Microsoft.DotNet.Tools.Pack3; using Microsoft.DotNet.Tools.Publish; using Microsoft.DotNet.Tools.Restore; diff --git a/src/dotnet/commands/dotnet-nuget/Program.cs b/src/dotnet/commands/dotnet-nuget/Program.cs index 6bac61b7a..b22588c0d 100644 --- a/src/dotnet/commands/dotnet-nuget/Program.cs +++ b/src/dotnet/commands/dotnet-nuget/Program.cs @@ -9,7 +9,7 @@ using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.InternalAbstractions; using Microsoft.DotNet.Tools; -namespace Microsoft.DotNet.Tools.Restore +namespace Microsoft.DotNet.Tools.NuGet { public class NuGetCommand { diff --git a/test/dotnet-nuget.UnitTests/GivenANuGetCommand.cs b/test/dotnet-nuget.UnitTests/GivenANuGetCommand.cs index 38f629e3f..8a903ec38 100644 --- a/test/dotnet-nuget.UnitTests/GivenANuGetCommand.cs +++ b/test/dotnet-nuget.UnitTests/GivenANuGetCommand.cs @@ -3,6 +3,7 @@ using System.Collections.Generic; using FluentAssertions; +using Microsoft.DotNet.Cli; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.TestFramework; using Microsoft.DotNet.Tools.Test.Utilities; diff --git a/test/dotnet-nuget.UnitTests/project.json b/test/dotnet-nuget.UnitTests/project.json index ec9ab9148..e9d507a3d 100644 --- a/test/dotnet-nuget.UnitTests/project.json +++ b/test/dotnet-nuget.UnitTests/project.json @@ -12,9 +12,9 @@ "Microsoft.DotNet.Tools.Tests.Utilities": { "target": "project" }, - "xunit": "2.1.0", - "moq.netcore": "4.4.0-beta8", - "dotnet-test-xunit": "1.0.0-rc2-192208-24" + "xunit": "2.2.0-beta3-build3330", + "dotnet-test-xunit": "1.0.0-rc2-330423-54", + "moq.netcore": "4.4.0-beta8" }, "frameworks": { "netcoreapp1.0": {