From 6e0cfa78399a024aad0003793bba36feb3b07f08 Mon Sep 17 00:00:00 2001 From: Nick Guerrera Date: Tue, 13 Jun 2017 19:05:16 -0700 Subject: [PATCH] Make dotnet-msbuild.Tests pass on localized setup --- src/dotnet/Properties/AssemblyInfo.cs | 1 + test/dotnet-msbuild.Tests/GivenDotnetMSBuildBuildsProjects.cs | 2 +- test/dotnet-msbuild.Tests/dotnet-msbuild.Tests.csproj | 3 +++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/dotnet/Properties/AssemblyInfo.cs b/src/dotnet/Properties/AssemblyInfo.cs index 17e7262e4..1847e066c 100644 --- a/src/dotnet/Properties/AssemblyInfo.cs +++ b/src/dotnet/Properties/AssemblyInfo.cs @@ -6,3 +6,4 @@ using System.Runtime.CompilerServices; [assembly: AssemblyMetadataAttribute("Serviceable", "True")] [assembly: InternalsVisibleTo("dotnet.Tests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100f33a29044fa9d740c9b3213a93e57c84b472c84e0b8a0e1ae48e67a9f8f6de9d5f7f3d52ac23e48ac51801f1dc950abe901da34d2a9e3baadb141a17c77ef3c565dd5ee5054b91cf63bb3c6ab83f72ab3aafe93d0fc3c2348b764fafb0b1c0733de51459aeab46580384bf9d74c4e28164b7cde247f891ba07891c9d872ad2bb")] +[assembly: InternalsVisibleTo("dotnet-msbuild.Tests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100f33a29044fa9d740c9b3213a93e57c84b472c84e0b8a0e1ae48e67a9f8f6de9d5f7f3d52ac23e48ac51801f1dc950abe901da34d2a9e3baadb141a17c77ef3c565dd5ee5054b91cf63bb3c6ab83f72ab3aafe93d0fc3c2348b764fafb0b1c0733de51459aeab46580384bf9d74c4e28164b7cde247f891ba07891c9d872ad2bb")] diff --git a/test/dotnet-msbuild.Tests/GivenDotnetMSBuildBuildsProjects.cs b/test/dotnet-msbuild.Tests/GivenDotnetMSBuildBuildsProjects.cs index 4c5cf322e..d1c0f70bc 100644 --- a/test/dotnet-msbuild.Tests/GivenDotnetMSBuildBuildsProjects.cs +++ b/test/dotnet-msbuild.Tests/GivenDotnetMSBuildBuildsProjects.cs @@ -111,7 +111,7 @@ namespace Microsoft.DotNet.Cli.MSBuild.Tests [Fact] public void WhenDotnetRunHelpIsInvokedAppArgumentsTextIsIncludedInOutput() { - const string AppArgumentsText = "Arguments passed to the application that is being run."; + string AppArgumentsText = Tools.Run.LocalizableStrings.RunCommandAdditionalArgsHelpText; var projectDirectory = TestAssets.CreateTestDirectory("RunContainsAppArgumentsText"); var result = new TestCommand("dotnet") diff --git a/test/dotnet-msbuild.Tests/dotnet-msbuild.Tests.csproj b/test/dotnet-msbuild.Tests/dotnet-msbuild.Tests.csproj index 69f57b7f0..e4252cf65 100644 --- a/test/dotnet-msbuild.Tests/dotnet-msbuild.Tests.csproj +++ b/test/dotnet-msbuild.Tests/dotnet-msbuild.Tests.csproj @@ -6,6 +6,9 @@ $(CLI_SharedFrameworkVersion) true dotnet-msbuild.Tests + ../../tools/Key.snk + true + true $(PackageTargetFallback);dotnet5.4;portable-net451+win8