First try at refactor of Prepare.targets (#5647)

* First try at refactor of Prepare.targets

* Enable restore of CLI build tasks

* Fix up build

* Feedback

* Newlines

* Add new props to sln

* CommitCount

* NuGet.config

* WorkingDir

* packages dir path

* Add missing nuget.configs

* Workaround for https://github.com/NuGet/Home/issues/4583

* Match NuGet.Config casing

* Put back Version Badge Properties

* Remove duplicate
This commit is contained in:
Piotr Puszkiewicz 2017-02-13 13:06:30 -08:00 committed by GitHub
parent 3806eeb151
commit a101c703a1
21 changed files with 162 additions and 118 deletions

View file

@ -65,19 +65,19 @@ namespace Microsoft.DotNet.Tests
var testInstance = TestAssets.Get(appName)
.CreateInstance()
.WithSourceFiles()
.WithRestoreFiles();
.WithNuGetConfig(new RepoDirectoriesProvider().TestPackages);
if (useCurrentFrameworkRuntimeVersion)
{
testInstance = testInstance.UseCurrentRuntimeFrameworkVersion();
// restore again now that the project has changed
new RestoreCommand()
.WithWorkingDirectory(testInstance.Root)
.Execute()
.Should().Pass();
}
// restore again now that the project has changed
new RestoreCommand()
.WithWorkingDirectory(testInstance.Root)
.Execute()
.Should().Pass();
new BuildCommand()
.WithProjectDirectory(testInstance.Root)
.Execute()
@ -273,8 +273,8 @@ namespace Microsoft.DotNet.Tests
var testInstance = TestAssets.Get("AppWithDirectDep")
.CreateInstance()
.WithSourceFiles()
.WithRestoreFiles()
.UseCurrentRuntimeFrameworkVersion();
.UseCurrentRuntimeFrameworkVersion()
.WithNuGetConfig(new RepoDirectoriesProvider().TestPackages);
// restore again now that the project has changed
new RestoreCommand()