Ensure we pass meta-package version to StoreProject
authorEric St. John <ericstj@microsoft.com>
Tue, 15 Aug 2017 18:43:12 +0000 (11:43 -0700)
committerEric St. John <ericstj@microsoft.com>
Tue, 15 Aug 2017 18:43:12 +0000 (11:43 -0700)
It looks like Store wasn't doing the right thing for test projects.  Rather than storing the just
built NCA package it was using the one the targets injected (EG: the one in the Tools CLI).

Commit migrated from https://github.com/dotnet/core-setup/commit/f242fcbf3c88d74debe561289e91f7c5f464572b

src/installer/test/TestUtils/TestProjectFixture.cs

index 64651ca..8a56934 100644 (file)
@@ -289,6 +289,8 @@ namespace Microsoft.DotNet.CoreSetup.Test
             storeArgs.Add("--working-dir");
             storeArgs.Add("store_workin_dir");
 
+            storeArgs.Add($"/p:MNAVersion={_repoDirectoriesProvider.MicrosoftNETCoreAppVersion}");
+
             dotnet.Store(storeArgs.ToArray())
                 .WorkingDirectory(_testProject.ProjectDirectory)
                 .Environment("NUGET_PACKAGES", _repoDirectoriesProvider.NugetPackages)