diff --git a/Microsoft.DotNet.Cli.sln b/Microsoft.DotNet.Cli.sln
index 36fe2a898..23ddd8a51 100644
--- a/Microsoft.DotNet.Cli.sln
+++ b/Microsoft.DotNet.Cli.sln
@@ -24,24 +24,31 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "TestPackages", "TestPackage
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "build", "build", "{89905EC4-BC0F-443B-8ADF-691321F10108}"
ProjectSection(SolutionItems) = preProject
+ build\Microsoft.DotNet.Cli.Branding.props = build\Microsoft.DotNet.Cli.Branding.props
+ build\Microsoft.DotNet.Cli.BranchInfo.props = build\Microsoft.DotNet.Cli.BranchInfo.props
build\Microsoft.DotNet.Cli.BundledSdks.proj = build\Microsoft.DotNet.Cli.BundledSdks.proj
build\Microsoft.DotNet.Cli.BundledSdks.props = build\Microsoft.DotNet.Cli.BundledSdks.props
build\Microsoft.DotNet.Cli.BundledTemplates.proj = build\Microsoft.DotNet.Cli.BundledTemplates.proj
build\Microsoft.DotNet.Cli.BundledTemplates.props = build\Microsoft.DotNet.Cli.BundledTemplates.props
build\Microsoft.DotNet.Cli.Compile.targets = build\Microsoft.DotNet.Cli.Compile.targets
build\Microsoft.DotNet.Cli.DependencyVersions.props = build\Microsoft.DotNet.Cli.DependencyVersions.props
+ build\Microsoft.DotNet.Cli.FileExtensions.props = build\Microsoft.DotNet.Cli.FileExtensions.props
build\Microsoft.DotNet.Cli.GitCommitInfo.targets = build\Microsoft.DotNet.Cli.GitCommitInfo.targets
build\Microsoft.DotNet.Cli.HostInfo.targets = build\Microsoft.DotNet.Cli.HostInfo.targets
build\Microsoft.DotNet.Cli.InitRepo.props = build\Microsoft.DotNet.Cli.InitRepo.props
build\Microsoft.DotNet.Cli.InitRepo.targets = build\Microsoft.DotNet.Cli.InitRepo.targets
build\Microsoft.DotNet.Cli.Monikers.props = build\Microsoft.DotNet.Cli.Monikers.props
+ build\Microsoft.DotNet.Cli.OutputDirectories.props = build\Microsoft.DotNet.Cli.OutputDirectories.props
build\Microsoft.DotNet.Cli.Package.targets = build\Microsoft.DotNet.Cli.Package.targets
build\Microsoft.DotNet.Cli.Prepare.targets = build\Microsoft.DotNet.Cli.Prepare.targets
build\Microsoft.DotNet.Cli.Publish.targets = build\Microsoft.DotNet.Cli.Publish.targets
build\Microsoft.DotNet.Cli.Run.targets = build\Microsoft.DotNet.Cli.Run.targets
build\Microsoft.DotNet.Cli.Signing.proj = build\Microsoft.DotNet.Cli.Signing.proj
+ build\Microsoft.DotNet.Cli.Stage0.props = build\Microsoft.DotNet.Cli.Stage0.props
build\Microsoft.DotNet.Cli.tasks = build\Microsoft.DotNet.Cli.tasks
build\Microsoft.DotNet.Cli.Test.targets = build\Microsoft.DotNet.Cli.Test.targets
+ build\Microsoft.DotNet.Cli.Version.props = build\Microsoft.DotNet.Cli.Version.props
+ build\Microsoft.DotNet.Cli.VersionBadge.props = build\Microsoft.DotNet.Cli.VersionBadge.props
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "package", "package", "{FD7D515A-D10F-4F49-B8AE-21CF7ED071AE}"
diff --git a/TestAssets/TestPackages/dotnet-hello/v1/dotnet-hello/dotnet-hello.csproj b/TestAssets/TestPackages/dotnet-hello/v1/dotnet-hello/dotnet-hello.csproj
index d82622599..02db5109d 100644
--- a/TestAssets/TestPackages/dotnet-hello/v1/dotnet-hello/dotnet-hello.csproj
+++ b/TestAssets/TestPackages/dotnet-hello/v1/dotnet-hello/dotnet-hello.csproj
@@ -2,6 +2,9 @@
+ 1.0.0
+
+
$(CliTargetFramework)
$(CLI_SharedFrameworkVersion)
dotnet-hello
diff --git a/TestAssets/TestPackages/dotnet-hello/v2/dotnet-hello/dotnet-hello.csproj b/TestAssets/TestPackages/dotnet-hello/v2/dotnet-hello/dotnet-hello.csproj
index 8c11115c9..f71ccbede 100644
--- a/TestAssets/TestPackages/dotnet-hello/v2/dotnet-hello/dotnet-hello.csproj
+++ b/TestAssets/TestPackages/dotnet-hello/v2/dotnet-hello/dotnet-hello.csproj
@@ -2,7 +2,9 @@
- 2.0.0
+ 2.0.0
+
+
$(CliTargetFramework)
$(CLI_SharedFrameworkVersion)
dotnet-hello
diff --git a/TestAssets/TestProjects/AppWithDirectAndToolDep/NuGet.Config b/TestAssets/TestProjects/AppWithDirectAndToolDep/NuGet.Config
index b8e876fcb..dd7ccd7af 100644
--- a/TestAssets/TestProjects/AppWithDirectAndToolDep/NuGet.Config
+++ b/TestAssets/TestProjects/AppWithDirectAndToolDep/NuGet.Config
@@ -1,6 +1,6 @@
-
+
diff --git a/TestAssets/TestProjects/AppWithDirectDep/NuGet.Config b/TestAssets/TestProjects/AppWithDirectDep/NuGet.Config
index b8e876fcb..dd7ccd7af 100644
--- a/TestAssets/TestProjects/AppWithDirectDep/NuGet.Config
+++ b/TestAssets/TestProjects/AppWithDirectDep/NuGet.Config
@@ -1,6 +1,6 @@
-
+
diff --git a/build.proj b/build.proj
index 5d0235bb7..53157564a 100644
--- a/build.proj
+++ b/build.proj
@@ -1,10 +1,6 @@
-
-
-
-
-
- False
- True
- $(Stage0Directory)
- $(RepoRoot)/artifacts/$(Rid)
- $(BaseOutputDirectory)/tools
- $(BaseOutputDirectory)/stage1
- $(BaseOutputDirectory)/stage1symbols
- $(Stage1Directory)/dotnet$(ExeExtension)
- $(BaseOutputDirectory)/stage2
- $(BaseOutputDirectory)/stage2symbols
- $(Stage2Directory)/dotnet$(ExeExtension)
- $(Stage2Directory)/
- $(BaseOutputDirectory)/stage2compilation
- $(BaseOutputDirectory)/intermediate
- $(BaseOutputDirectory)/packages
- $(IntermediateDirectory)/sharedFrameworkPublish
- $(Rid)
- win7-$(Architecture)
- osx.10.10-x64
- rhel.7-x64
-
+
- $(DefaultCommitCount)
-
- $(VersionMajor).$(VersionMinor).$(VersionPatch).$(CommitCount)
- $(ReleaseSuffix)-$(CommitCount)
- $(VersionMajor).$(VersionMinor).$(VersionPatch)-$(VersionSuffix)
-
- $(OSName)_$(Architecture)
- Ubuntu_16_04_x64
- Fedora_23_x64
- openSUSE_13_2_x64
-
- $(BaseOutputDirectory)/$(VersionBadgeMoniker)_$(Configuration)_version_badge.svg
- $(NugetVersion)
-
- $(SdkVersion)
-
- .zip
- .tar.gz
-
- .msi
- .pkg
- .deb
-
- .exe
- $(InstallerExtension)
- $(InstallerExtension)
-
- $(Rid)
- $(OSName)-$(Architecture)
-
- lib
-
- .so
- .dll
- .dylib
-
- dotnet-sdk
- dotnet-sdk-debug
- dotnet-dev
- dotnet-sharedframework-sdk
-
- $(ArtifactNameSdk)-$(ProductMonikerRid).$(SdkVersion)
- $(ArtifactNameSdkDebug)-$(ProductMonikerRid).$(SdkVersion)
- $(ArtifactNameCombinedHostHostFxrFrameworkSdk)-$(ProductMonikerRid).$(SdkVersion)
- $(ArtifactNameCombinedFrameworkSdk)-$(ProductMonikerRid).$(SdkVersion)
dotnet-host-$(ProductMonikerRid).$(SharedHostVersion)$(InstallerExtension)
diff --git a/build/Microsoft.DotNet.Cli.Stage0.props b/build/Microsoft.DotNet.Cli.Stage0.props
new file mode 100644
index 000000000..12b82cefb
--- /dev/null
+++ b/build/Microsoft.DotNet.Cli.Stage0.props
@@ -0,0 +1,14 @@
+
+
+ $(RepoRoot)/.dotnet_stage0/$(Architecture)
+ $(RepoRoot)/.dotnet_stage0PJ/$(Architecture)
+ $(Stage0Directory)/dotnet$(ExeExtension)
+ False
+ True
+ $(Stage0Directory)
+ $(Rid)
+ win7-$(Architecture)
+ osx.10.10-x64
+ rhel.7-x64
+
+
diff --git a/build/Microsoft.DotNet.Cli.Test.targets b/build/Microsoft.DotNet.Cli.Test.targets
index f337d00d9..5baf180e7 100644
--- a/build/Microsoft.DotNet.Cli.Test.targets
+++ b/build/Microsoft.DotNet.Cli.Test.targets
@@ -88,7 +88,7 @@
Outputs="%(TestPackageProject.Identity)">
diff --git a/build/Microsoft.DotNet.Cli.Version.props b/build/Microsoft.DotNet.Cli.Version.props
new file mode 100644
index 000000000..11e41049f
--- /dev/null
+++ b/build/Microsoft.DotNet.Cli.Version.props
@@ -0,0 +1,16 @@
+
+
+ 2
+ 0
+ 0
+ alpha
+
+ $(VersionMajor).$(VersionMinor).$(VersionPatch)-$(ReleaseSuffix)
+ $(VersionMajor).$(VersionMinor).$(VersionPatch).$(CommitCount)
+ $(ReleaseSuffix)-$(CommitCount)
+ $(VersionMajor).$(VersionMinor).$(VersionPatch)-$(VersionSuffix)
+
+ $(NugetVersion)
+ $(SdkVersion)
+
+
diff --git a/build/Microsoft.DotNet.Cli.VersionBadge.props b/build/Microsoft.DotNet.Cli.VersionBadge.props
new file mode 100644
index 000000000..7ed806034
--- /dev/null
+++ b/build/Microsoft.DotNet.Cli.VersionBadge.props
@@ -0,0 +1,10 @@
+
+
+ $(OSName)_$(Architecture)
+ Ubuntu_16_04_x64
+ Fedora_23_x64
+ openSUSE_13_2_x64
+
+ $(BaseOutputDirectory)/$(VersionBadgeMoniker)_$(Configuration)_version_badge.svg
+
+
diff --git a/dir.props b/dir.props
index 29599cd15..62ad5659f 100644
--- a/dir.props
+++ b/dir.props
@@ -1,10 +1,24 @@
-
-
$(MSBuildThisFileDirectory)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
$(NUGET_PACKAGES)
$(RepoRoot)/.nuget/packages
@@ -12,14 +26,6 @@
true
- 2
- 0
- 0
- alpha
- master
- master
- $(VersionMajor).$(VersionMinor).$(VersionPatch)-$(ReleaseSuffix)
-
netcoreapp2.0
diff --git a/src/Microsoft.DotNet.TestFramework/TestAssetInstance.cs b/src/Microsoft.DotNet.TestFramework/TestAssetInstance.cs
index 1c3385297..bb3ad0899 100644
--- a/src/Microsoft.DotNet.TestFramework/TestAssetInstance.cs
+++ b/src/Microsoft.DotNet.TestFramework/TestAssetInstance.cs
@@ -103,7 +103,7 @@ namespace Microsoft.DotNet.TestFramework
public TestAssetInstance WithNuGetConfig(string nugetCache)
{
var thisAssembly = typeof(TestAssetInstance).GetTypeInfo().Assembly;
- var newNuGetConfig = Root.GetFile("Nuget.config");
+ var newNuGetConfig = Root.GetFile("NuGet.Config");
var content = @"
diff --git a/test/dotnet.Tests/PackagedCommandTests.cs b/test/dotnet.Tests/PackagedCommandTests.cs
index 8f425466d..62c08e744 100644
--- a/test/dotnet.Tests/PackagedCommandTests.cs
+++ b/test/dotnet.Tests/PackagedCommandTests.cs
@@ -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()