update nuget to 4.0.0-rc3 and sdk to 1.0.0-alpha-20170105-5 (#5214)
* update nuget to 4.0.0-rc3 and sdk to 1.0.0-alpha-20170105-5 * Modifying restore project.json to use the project.json stage0 CLI instead of restore-projectjson command. * add a nuget dependency so migrated project has packageref and generates an assets file on restore
This commit is contained in:
parent
5044c76be4
commit
5bbfbfeeed
11 changed files with 30 additions and 25 deletions
|
@ -4,7 +4,9 @@
|
|||
"debugType": "portable",
|
||||
"emitEntryPoint": true
|
||||
},
|
||||
"dependencies": {},
|
||||
"dependencies": {
|
||||
"Newtonsoft.Json": "9.0.1"
|
||||
},
|
||||
"frameworks": {
|
||||
"net451": {}
|
||||
},
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
<Version>1.0.3</Version>
|
||||
</PackageReference>
|
||||
<PackageReference Include="NuGet.Frameworks">
|
||||
<Version>4.0.0-rc2</Version>
|
||||
<Version>4.0.0-rc3</Version>
|
||||
</PackageReference>
|
||||
<PackageReference Include="Microsoft.DotNet.Cli.Utils">
|
||||
<Version>$(SdkNugetVersion)</Version>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
|
||||
|
||||
<ItemGroup>
|
||||
<BundledSdk Include="NuGet.Build.Tasks.Pack" Version="4.0.0-rc2" />
|
||||
<BundledSdk Include="NuGet.Build.Tasks.Pack" Version="4.0.0-rc3" />
|
||||
<BundledSdk Include="Microsoft.NET.Sdk" Version="$(CLI_NETSDK_Version)" />
|
||||
<BundledSdk Include="Microsoft.NET.Sdk.Web" Version="$(CLI_WEBSDK_Version)" />
|
||||
<BundledSdk Include="Microsoft.NET.Sdk.Publish" Version="$(CLI_WEBSDK_Version)" />
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<PropertyGroup>
|
||||
<CLI_MSBuild_Version>15.1.0-preview-000503-01</CLI_MSBuild_Version>
|
||||
<CLI_Roslyn_Version>2.0.0-rc3-61212-03</CLI_Roslyn_Version>
|
||||
<CLI_NETSDK_Version>1.0.0-alpha-20170105-1</CLI_NETSDK_Version>
|
||||
<CLI_NETSDK_Version>1.0.0-alpha-20170105-5</CLI_NETSDK_Version>
|
||||
<CLI_WEBSDK_Version>1.0.0-alpha-20170106-1-203</CLI_WEBSDK_Version>
|
||||
<CLI_TestPlatform_Version>15.0.0-preview-20161227-02</CLI_TestPlatform_Version>
|
||||
<TemplateEngineVersion>1.0.0-beta1-20170106-79</TemplateEngineVersion>
|
||||
|
|
|
@ -1,13 +1,12 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Project Sdk="Microsoft.NET.Sdk" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
|
||||
|
||||
<PropertyGroup>
|
||||
<Description>Build scripts for dotnet-cli</Description>
|
||||
<VersionPrefix>1.0.0</VersionPrefix>
|
||||
<TargetFrameworks>netcoreapp1.0</TargetFrameworks>
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
<OutputPath>bin\$(Configuration)</OutputPath>
|
||||
<PackageTargetFallback Condition=" '$(TargetFramework)' == 'netcoreapp1.0' ">$(PackageTargetFallback);portable-net45+win8+wp8+wpa81</PackageTargetFallback>
|
||||
<PackageTargetFallback Condition=" '$(TargetFramework)' == 'netcoreapp1.0' ">$(PackageTargetFallback);portable-net45+win8+wp8+wpa81</PackageTargetFallback>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\shared-build-targets-utils\shared-build-targets-utils.csproj" />
|
||||
|
@ -42,11 +41,16 @@
|
|||
<Version>7.2.1</Version>
|
||||
</PackageReference>
|
||||
<PackageReference Include="NuGet.CommandLine.XPlat">
|
||||
<Version>4.0.0-rc2</Version>
|
||||
<Version>4.0.0-rc3</Version>
|
||||
</PackageReference>
|
||||
<PackageReference Include="Microsoft.Build.Utilities.Core">
|
||||
<Version>$(CLI_MSBuild_Version)</Version>
|
||||
</PackageReference>
|
||||
<!-- This dependency was added due to an issue in restore where a lower version of this package coming from nuget.commandline.xplat
|
||||
led to an error. This is tracked as NuGet issue : https://github.com/NuGet/Home/issues/4213 -->
|
||||
<PackageReference Include="Microsoft.Build.Framework">
|
||||
<Version>$(CLI_MSBuild_Version)</Version>
|
||||
</PackageReference>
|
||||
<PackageReference Include="Microsoft.DotNet.PlatformAbstractions">
|
||||
<Version>1.0.1-beta-000933</Version>
|
||||
</PackageReference>
|
||||
|
|
|
@ -18,16 +18,16 @@
|
|||
<Version>1.0.1-beta-000933</Version>
|
||||
</PackageReference>
|
||||
<PackageReference Include="NuGet.Versioning">
|
||||
<Version>4.0.0-rc2</Version>
|
||||
<Version>4.0.0-rc3</Version>
|
||||
</PackageReference>
|
||||
<PackageReference Include="NuGet.Packaging">
|
||||
<Version>4.0.0-rc2</Version>
|
||||
<Version>4.0.0-rc3</Version>
|
||||
</PackageReference>
|
||||
<PackageReference Include="NuGet.Frameworks">
|
||||
<Version>4.0.0-rc2</Version>
|
||||
<Version>4.0.0-rc3</Version>
|
||||
</PackageReference>
|
||||
<PackageReference Include="NuGet.ProjectModel">
|
||||
<Version>4.0.0-rc2</Version>
|
||||
<Version>4.0.0-rc3</Version>
|
||||
</PackageReference>
|
||||
<PackageReference Include="Microsoft.Build">
|
||||
<Version>$(CLI_MSBuild_Version)</Version>
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
<Version>$(CLI_MSBuild_Version)</Version>
|
||||
</PackageReference>
|
||||
<PackageReference Include="NuGet.Build.Tasks">
|
||||
<Version>4.0.0-rc2</Version>
|
||||
<Version>4.0.0-rc3</Version>
|
||||
</PackageReference>
|
||||
<PackageReference Include="Microsoft.TestPlatform.CLI">
|
||||
<Version>$(CLI_TestPlatform_Version)</Version>
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
<Version>1.0.3</Version>
|
||||
</PackageReference>
|
||||
<PackageReference Include="NuGet.CommandLine.XPlat">
|
||||
<Version>4.0.0-rc2</Version>
|
||||
<Version>4.0.0-rc3</Version>
|
||||
</PackageReference>
|
||||
</ItemGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
|
||||
|
|
|
@ -57,16 +57,16 @@
|
|||
<Version>4.1.1</Version>
|
||||
</PackageReference>
|
||||
<PackageReference Include="NuGet.Versioning">
|
||||
<Version>4.0.0-rc2</Version>
|
||||
<Version>4.0.0-rc3</Version>
|
||||
</PackageReference>
|
||||
<PackageReference Include="NuGet.Packaging">
|
||||
<Version>4.0.0-rc2</Version>
|
||||
<Version>4.0.0-rc3</Version>
|
||||
</PackageReference>
|
||||
<PackageReference Include="NuGet.Frameworks">
|
||||
<Version>4.0.0-rc2</Version>
|
||||
<Version>4.0.0-rc3</Version>
|
||||
</PackageReference>
|
||||
<PackageReference Include="NuGet.ProjectModel">
|
||||
<Version>4.0.0-rc2</Version>
|
||||
<Version>4.0.0-rc3</Version>
|
||||
</PackageReference>
|
||||
<PackageReference Include="moq.netcore">
|
||||
<Version>4.4.0-beta8</Version>
|
||||
|
|
|
@ -8,21 +8,20 @@ namespace Microsoft.DotNet.Tools.Test.Utilities
|
|||
public sealed class RestoreProjectJsonCommand : TestCommand
|
||||
{
|
||||
public RestoreProjectJsonCommand()
|
||||
: base("dotnet")
|
||||
: base(new RepoDirectoriesProvider().PjDotnet)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override CommandResult Execute(string args="")
|
||||
{
|
||||
args = $"restore-projectjson {args}";
|
||||
args = $"restore {args}";
|
||||
|
||||
return base.Execute(args);
|
||||
}
|
||||
|
||||
public override CommandResult ExecuteWithCapturedOutput(string args = "")
|
||||
{
|
||||
args = $"restore-projectjson {args}";
|
||||
args = $"restore {args}";
|
||||
return base.ExecuteWithCapturedOutput(args);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -681,9 +681,9 @@ namespace Microsoft.DotNet.Migration.Tests
|
|||
|
||||
private void RestoreProjectJson(string projectDirectory)
|
||||
{
|
||||
new TestCommand("dotnet")
|
||||
.WithWorkingDirectory(projectDirectory)
|
||||
.Execute("restore-projectjson")
|
||||
var projectFile = "\"" + Path.Combine(projectDirectory, "project.json") + "\"";
|
||||
new RestoreProjectJsonCommand()
|
||||
.Execute(projectFile)
|
||||
.Should().Pass();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue