Merge remote-tracking branch 'refs/remotes/upstream/rel/1.0.0'
Conflicts: README.md build/Microsoft.DotNet.Cli.Monikers.props test/dotnet-build.Tests/GivenDotnetBuildBuildsCsproj.cs
This commit is contained in:
commit
ace9526681
29 changed files with 250 additions and 162 deletions
|
@ -9,5 +9,6 @@
|
|||
<add key="roslyn" value="https://dotnet.myget.org/f/roslyn/api/v3/index.json" />
|
||||
<add key="xunit" value="https://www.myget.org/F/xunit/api/v3/index.json" />
|
||||
<add key="api.nuget.org" value="https://api.nuget.org/v3/index.json" />
|
||||
<add key="AspNetCurrent" value="https://dotnet.myget.org/F/aspnet-feb2017-patch/api/v3/index.json" />
|
||||
</packageSources>
|
||||
</configuration>
|
||||
|
|
|
@ -23,8 +23,7 @@ There are a couple of things to keep in mind:
|
|||
|
||||
Found an issue?
|
||||
---------------
|
||||
You can consult the [known issues page](https://github.com/dotnet/core/blob/master/cli/known-issues.md) to find out the current issues and
|
||||
to see the workarounds.
|
||||
You can consult the [known issues page](https://github.com/dotnet/core/blob/master/cli/known-issues.md) to find out the current issues and to see the workarounds.
|
||||
|
||||
If you don't find your issue, please file one! However, given that this is a very high-frequency repo, we've setup some [basic guidelines](Documentation/issue-filing-guide.md) to help you. Please consult those first.
|
||||
|
||||
|
|
|
@ -3,8 +3,8 @@
|
|||
|
||||
<ItemGroup>
|
||||
<BundledTemplate Include="Microsoft.DotNet.Common.ItemTemplates" Version="$(TemplateEngineTemplateVersion)" />
|
||||
<BundledTemplate Include="Microsoft.DotNet.Common.ProjectTemplates" Version="$(TemplateEngineTemplateVersion)" />
|
||||
<BundledTemplate Include="Microsoft.DotNet.Test.ProjectTemplates" Version="$(TemplateEngineTemplateVersion)" />
|
||||
<BundledTemplate Include="Microsoft.DotNet.Web.ProjectTemplates" Version="$(TemplateEngineTemplateVersion)" />
|
||||
<BundledTemplate Include="Microsoft.DotNet.Common.ProjectTemplates.1.x" Version="$(TemplateEngineTemplateVersion)" />
|
||||
<BundledTemplate Include="Microsoft.DotNet.Test.ProjectTemplates.1.x" Version="$(TemplateEngineTemplateVersion)" />
|
||||
<BundledTemplate Include="Microsoft.DotNet.Web.ProjectTemplates.1.x" Version="$(TemplateEngineTemplateVersion)" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
|
|
|
@ -7,9 +7,9 @@
|
|||
<CLI_NETSDK_Version>1.0.0-alpha-20170217-2</CLI_NETSDK_Version>
|
||||
<CLI_NuGet_Version>4.0.0-rtm-2283</CLI_NuGet_Version>
|
||||
<CLI_WEBSDK_Version>1.0.0-alpha-20170130-3-281</CLI_WEBSDK_Version>
|
||||
<CLI_TestPlatform_Version>15.0.0-preview-20170217-05</CLI_TestPlatform_Version>
|
||||
<CLI_TestPlatform_Version>15.0.0-preview-20170222-09</CLI_TestPlatform_Version>
|
||||
<TemplateEngineVersion>1.0.0-beta1-20170202-111</TemplateEngineVersion>
|
||||
<TemplateEngineTemplateVersion>1.0.0-beta1-20170206-112</TemplateEngineTemplateVersion>
|
||||
<TemplateEngineTemplateVersion>1.0.0-beta1-20170222-125</TemplateEngineTemplateVersion>
|
||||
<PlatformAbstractionsVersion>1.1.1</PlatformAbstractionsVersion>
|
||||
<DependencyModelVersion>1.0.2</DependencyModelVersion>
|
||||
</PropertyGroup>
|
||||
|
|
|
@ -88,7 +88,7 @@
|
|||
|
||||
<DotNetNew ToolPath="$(Stage2Directory)"
|
||||
TemplateType="Mvc"
|
||||
TemplateArgs="-au Individual --debug:ephemeral-hive"
|
||||
TemplateArgs="-au Individual -f netcoreapp1.0 --debug:ephemeral-hive --no-tools"
|
||||
WorkingDirectory="$(NuGetPackagesArchiveProject)/Web" />
|
||||
|
||||
<DotNetRestore ToolPath="$(Stage2Directory)"
|
||||
|
@ -98,7 +98,7 @@
|
|||
|
||||
<DotNetNew ToolPath="$(Stage2Directory)"
|
||||
TemplateType="Mvc"
|
||||
TemplateArgs="-au Individual -f netcoreapp1.1 --debug:ephemeral-hive"
|
||||
TemplateArgs="-au Individual -f netcoreapp1.1 --debug:ephemeral-hive --no-tools"
|
||||
WorkingDirectory="$(NuGetPackagesArchiveProject)/Web1.1" />
|
||||
|
||||
<DotNetRestore ToolPath="$(Stage2Directory)"
|
||||
|
|
|
@ -26,8 +26,8 @@ namespace Microsoft.DotNet.Cli.Build
|
|||
|
||||
private static string[][] _templatesAndArgs = new string[][]
|
||||
{
|
||||
new string[] { "mvc", "-au Individual -f netcoreapp1.0" },
|
||||
new string[] { "mvc", "-au Individual -f netcoreapp1.1" }
|
||||
new string[] { "mvc", "-au Individual -f netcoreapp1.0 --no-tools" },
|
||||
new string[] { "mvc", "-au Individual -f netcoreapp1.1 --no-tools" }
|
||||
};
|
||||
|
||||
public override bool Execute()
|
||||
|
|
|
@ -12,8 +12,8 @@ namespace Microsoft.DotNet.Configurer
|
|||
{
|
||||
private static IReadOnlyList<IReadOnlyList<string>> _templatesUsedToPrimeCache = new List<IReadOnlyList<string>>()
|
||||
{
|
||||
new List<string>() { "mvc", "-f", "netcoreapp1.0", "-au", "Individual", "--debug:ephemeral-hive" },
|
||||
new List<string>() { "mvc", "-f", "netcoreapp1.1", "-au", "Individual", "--debug:ephemeral-hive" }
|
||||
new List<string>() { "mvc", "-f", "netcoreapp1.0", "-au", "Individual", "--debug:ephemeral-hive", "--no-tools" },
|
||||
new List<string>() { "mvc", "-f", "netcoreapp1.1", "-au", "Individual", "--debug:ephemeral-hive", "--no-tools" }
|
||||
};
|
||||
|
||||
private readonly ICommandFactory _commandFactory;
|
||||
|
|
|
@ -7,8 +7,8 @@ namespace Microsoft.DotNet.ProjectJsonMigration
|
|||
{
|
||||
public const string AspNetToolsVersion = "1.0.0";
|
||||
public const string AspNet110ToolsVersion = "1.1.0";
|
||||
public const string AspNetLTSPackagesVersion = "1.0.2";
|
||||
public const string EntityFrameworkLTSPackagesVersion = "1.0.2";
|
||||
public const string AspNetLTSPackagesVersion = "1.0.3";
|
||||
public const string EntityFrameworkLTSPackagesVersion = "1.0.3";
|
||||
public const string TestSdkPackageVersion = "15.0.0-preview-20170106-08";
|
||||
public const string XUnitPackageVersion = "2.2.0-beta5-build3474";
|
||||
public const string XUnitRunnerPackageVersion = "2.2.0-beta5-build1225";
|
||||
|
|
|
@ -23,6 +23,7 @@ namespace Microsoft.DotNet.ProjectJsonMigration
|
|||
var values = line.Split(',');
|
||||
var packageName = values[0];
|
||||
var ltsVersion = values[1];
|
||||
var ftsVersion = values[2];
|
||||
|
||||
if (HasVersion(ltsVersion))
|
||||
{
|
||||
|
@ -38,6 +39,22 @@ namespace Microsoft.DotNet.ProjectJsonMigration
|
|||
Version = ltsVersion
|
||||
});
|
||||
}
|
||||
|
||||
if(HasVersion(ftsVersion))
|
||||
{
|
||||
var version = HasVersion(ltsVersion) ? $"({ltsVersion},{ftsVersion})" : $"[,{ftsVersion})";
|
||||
projectDependenciesPackages.Add(
|
||||
new PackageDependencyInfo
|
||||
{
|
||||
Name = packageName,
|
||||
Version = version
|
||||
},
|
||||
new PackageDependencyInfo
|
||||
{
|
||||
Name = packageName,
|
||||
Version = ftsVersion
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -188,6 +188,30 @@ namespace Microsoft.DotNet.ProjectJsonMigration
|
|||
Version = ConstantPackageVersions.AspNetToolsVersion
|
||||
}
|
||||
},
|
||||
{
|
||||
new PackageDependencyInfo
|
||||
{
|
||||
Name = "Microsoft.VisualStudio.Web.BrowserLink.Loader",
|
||||
Version = "[14.1.0-*,)"
|
||||
},
|
||||
new PackageDependencyInfo
|
||||
{
|
||||
Name = "Microsoft.VisualStudio.Web.BrowserLink",
|
||||
Version = "1.1.0"
|
||||
}
|
||||
},
|
||||
{
|
||||
new PackageDependencyInfo
|
||||
{
|
||||
Name = "Microsoft.VisualStudio.Web.BrowserLink.Loader",
|
||||
Version = "[14.0.0-*,14.1.0)"
|
||||
},
|
||||
new PackageDependencyInfo
|
||||
{
|
||||
Name = "Microsoft.VisualStudio.Web.BrowserLink",
|
||||
Version = "1.0.1"
|
||||
}
|
||||
},
|
||||
{
|
||||
new PackageDependencyInfo
|
||||
{
|
||||
|
|
|
@ -1,123 +1,131 @@
|
|||
Id,LtsVersion,CurrentVersion
|
||||
Microsoft.NETCore.App,1.0.3,1.1.0
|
||||
Microsoft.AspNetCore,1.0.3,1.1.0
|
||||
Microsoft.AspNetCore.Authentication,1.0.1,1.1.0
|
||||
Microsoft.AspNetCore.Authentication.Cookies,1.0.1,1.1.0
|
||||
Microsoft.AspNetCore.Authentication.Facebook,1.0.1,1.1.0
|
||||
Microsoft.AspNetCore.Authentication.Google,1.0.1,1.1.0
|
||||
Microsoft.AspNetCore.Authentication.JwtBearer,1.0.1,1.1.0
|
||||
Microsoft.AspNetCore.Authentication.MicrosoftAccount,1.0.1,1.1.0
|
||||
Microsoft.AspNetCore.Authentication.OAuth,1.0.1,1.1.0
|
||||
Microsoft.AspNetCore.Authentication.OpenIdConnect,1.0.1,1.1.0
|
||||
Microsoft.AspNetCore.Authentication.Twitter,1.0.1,1.1.0
|
||||
Microsoft.AspNetCore.CookiePolicy,1.0.1,1.1.0
|
||||
Microsoft.AspNetCore.Cors,1.0.1,1.1.0
|
||||
Microsoft.AspNetCore.DataProtection,1.0.1,1.1.0
|
||||
Microsoft.AspNetCore.DataProtection.Extensions,1.0.1,1.1.0
|
||||
Microsoft.AspNetCore.DataProtection.SystemWeb,1.0.1,1.1.0
|
||||
Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore,1.0.1,1.1.0
|
||||
Microsoft.AspNetCore.Hosting.WindowsServices,1.0.1,1.1.0
|
||||
Microsoft.AspNetCore.Html.Abstractions,1.0.1,1.1.0
|
||||
Microsoft.AspNetCore.Identity.EntityFrameworkCore,1.0.1,1.1.0
|
||||
Microsoft.AspNetCore.MiddlewareAnalysis,1.0.1,1.1.0
|
||||
Microsoft.AspNetCore.Mvc,1.0.2,1.1.0
|
||||
Microsoft.AspNetCore.Mvc.Abstractions,1.0.2,1.1.0
|
||||
Microsoft.AspNetCore.Mvc.ApiExplorer,1.0.2,1.1.0
|
||||
Microsoft.AspNetCore.Mvc.Formatters.Xml,1.0.2,1.1.0
|
||||
Microsoft.AspNetCore.Mvc.WebApiCompatShim,1.0.2,1.1.0
|
||||
Microsoft.AspNetCore.Owin,1.0.1,1.1.0
|
||||
Microsoft.AspNetCore.Routing,1.0.2,1.1.0
|
||||
Microsoft.AspNetCore.Routing.Abstractions,1.0.2,1.1.0
|
||||
Microsoft.AspNetCore.Server.Kestrel.Https,1.0.2,1.1.0
|
||||
Microsoft.AspNetCore.Session,1.0.1,1.1.0
|
||||
Microsoft.AspNetCore.StaticFiles,1.0.1,1.1.0
|
||||
Microsoft.AspNetCore.TestHost,1.0.1,1.1.0
|
||||
Microsoft.NETCore.App,1.0.4,1.1.1
|
||||
Microsoft.AspNetCore,1.0.4,1.1.1
|
||||
Microsoft.AspNetCore.Authentication,1.0.2,1.1.1
|
||||
Microsoft.AspNetCore.Authentication.Cookies,1.0.2,1.1.1
|
||||
Microsoft.AspNetCore.Authentication.Facebook,1.0.2,1.1.1
|
||||
Microsoft.AspNetCore.Authentication.Google,1.0.2,1.1.1
|
||||
Microsoft.AspNetCore.Authentication.JwtBearer,1.0.2,1.1.1
|
||||
Microsoft.AspNetCore.Authentication.MicrosoftAccount,1.0.2,1.1.1
|
||||
Microsoft.AspNetCore.Authentication.OAuth,1.0.2,1.1.1
|
||||
Microsoft.AspNetCore.Authentication.OpenIdConnect,1.0.2,1.1.1
|
||||
Microsoft.AspNetCore.Authentication.Twitter,1.0.2,1.1.1
|
||||
Microsoft.AspNetCore.Buffering,0.1.2,0.2.1
|
||||
Microsoft.AspNetCore.CookiePolicy,1.0.2,1.1.1
|
||||
Microsoft.AspNetCore.Cors,1.0.2,1.1.1
|
||||
Microsoft.AspNetCore.DataProtection,1.0.2,1.1.1
|
||||
Microsoft.AspNetCore.DataProtection.Extensions,1.0.2,1.1.1
|
||||
Microsoft.AspNetCore.DataProtection.Redis,,0.1.1
|
||||
Microsoft.AspNetCore.DataProtection.SystemWeb,1.0.2,1.1.1
|
||||
Microsoft.AspNetCore.DataProtection.Sources,1.0.2,1.1.1
|
||||
Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore,1.0.2,1.1.1
|
||||
Microsoft.AspNetCore.Diagnostics.Elm,0.1.2,0.2.1
|
||||
Microsoft.AspNetCore.Hosting.WindowsServices,1.0.2,1.1.1
|
||||
Microsoft.AspNetCore.Html.Abstractions,1.0.2,1.1.1
|
||||
Microsoft.AspNetCore.Identity.EntityFrameworkCore,1.0.2,1.1.1
|
||||
Microsoft.AspNetCore.MiddlewareAnalysis,1.0.2,1.1.1
|
||||
Microsoft.AspNetCore.Mvc,1.0.3,1.1.2
|
||||
Microsoft.AspNetCore.Mvc.Abstractions,1.0.3,1.1.2
|
||||
Microsoft.AspNetCore.Mvc.ApiExplorer,1.0.3,1.1.2
|
||||
Microsoft.AspNetCore.Mvc.Formatters.Xml,1.0.3,1.1.2
|
||||
Microsoft.AspNetCore.Mvc.WebApiCompatShim,1.0.3,1.1.2
|
||||
Microsoft.AspNetCore.Owin,1.0.2,1.1.1
|
||||
Microsoft.AspNetCore.Routing,1.0.3,1.1.1
|
||||
Microsoft.AspNetCore.Routing.Abstractions,1.0.3,1.1.1
|
||||
Microsoft.AspNetCore.Routing.DecisionTree.Sources,1.0.3,1.1.1
|
||||
Microsoft.AspNetCore.Server.Kestrel.Https,1.0.3,1.1.1
|
||||
Microsoft.AspNetCore.Server.WebListener,1.0.2,1.1.1
|
||||
Microsoft.AspNetCore.Session,1.0.2,1.1.1
|
||||
Microsoft.AspNetCore.StaticFiles,1.0.2,1.1.1
|
||||
Microsoft.AspNetCore.TestHost,1.0.2,1.1.1
|
||||
Microsoft.AspNetCore.Testing,1.0.1,1.1.0-rtm-22752
|
||||
Microsoft.AspNetCore.DiagnosticsViewPage.Sources,1.0.2,1.1.1
|
||||
Microsoft.Data.Sqlite,1.0.1,1.1.0
|
||||
Microsoft.EntityFrameworkCore,1.0.2,1.1.0
|
||||
Microsoft.EntityFrameworkCore.Design,1.0.2,1.1.0
|
||||
Microsoft.EntityFrameworkCore.InMemory,1.0.2,1.1.0
|
||||
Microsoft.EntityFrameworkCore.Relational,1.0.2,1.1.0
|
||||
Microsoft.EntityFrameworkCore.Relational.Design,1.0.2,1.1.0
|
||||
Microsoft.EntityFrameworkCore.Sqlite,1.0.2,1.1.0
|
||||
Microsoft.EntityFrameworkCore.Sqlite.Design,1.0.2,1.1.0
|
||||
Microsoft.EntityFrameworkCore.SqlServer,1.0.2,1.1.0
|
||||
Microsoft.EntityFrameworkCore.SqlServer.Design,1.0.2,1.1.0
|
||||
Microsoft.Extensions.Caching.Memory,1.0.1,1.1.0
|
||||
Microsoft.Extensions.Caching.Redis,1.0.1,1.1.0
|
||||
Microsoft.Extensions.Caching.SqlServer,1.0.1,1.1.0
|
||||
Microsoft.EntityFrameworkCore,1.0.3,1.1.1
|
||||
Microsoft.EntityFrameworkCore.Design,1.0.3,1.1.1
|
||||
Microsoft.EntityFrameworkCore.InMemory,1.0.3,1.1.1
|
||||
Microsoft.EntityFrameworkCore.Relational,1.0.3,1.1.1
|
||||
Microsoft.EntityFrameworkCore.Relational.Design,1.0.3,1.1.1
|
||||
Microsoft.EntityFrameworkCore.Sqlite,1.0.3,1.1.1
|
||||
Microsoft.EntityFrameworkCore.Sqlite.Design,1.0.3,1.1.1
|
||||
Microsoft.EntityFrameworkCore.SqlServer,1.0.3,1.1.1
|
||||
Microsoft.EntityFrameworkCore.SqlServer.Design,1.0.3,1.1.1
|
||||
Microsoft.Extensions.Caching.Memory,1.0.2,1.1.1
|
||||
Microsoft.Extensions.Caching.Redis,1.0.2,1.1.1
|
||||
Microsoft.Extensions.Caching.SqlServer,1.0.2,1.1.1
|
||||
Microsoft.Extensions.CommandLineUtils,1.0.1,1.1.0
|
||||
Microsoft.Extensions.Configuration,1.0.1,1.1.0
|
||||
Microsoft.Extensions.Configuration.Binder,1.0.1,1.1.0
|
||||
Microsoft.Extensions.Configuration.CommandLine,1.0.1,1.1.0
|
||||
Microsoft.Extensions.Configuration.EnvironmentVariables,1.0.1,1.1.0
|
||||
Microsoft.Extensions.Configuration.FileExtensions,1.0.1,1.1.0
|
||||
Microsoft.Extensions.Configuration.Ini,1.0.1,1.1.0
|
||||
Microsoft.Extensions.Configuration.Json,1.0.1,1.1.0
|
||||
Microsoft.Extensions.Configuration.UserSecrets,1.0.1,1.1.0
|
||||
Microsoft.Extensions.Configuration.Xml,1.0.1,1.1.0
|
||||
Microsoft.Extensions.DependencyInjection,1.0.1,1.1.0
|
||||
Microsoft.Extensions.DiagnosticAdapter,1.0.1,1.1.0
|
||||
Microsoft.Extensions.Configuration,1.0.2,1.1.1
|
||||
Microsoft.Extensions.Configuration.Binder,1.0.2,1.1.1
|
||||
Microsoft.Extensions.Configuration.CommandLine,1.0.2,1.1.1
|
||||
Microsoft.Extensions.Configuration.EnvironmentVariables,1.0.2,1.1.1
|
||||
Microsoft.Extensions.Configuration.FileExtensions,1.0.2,1.1.1
|
||||
Microsoft.Extensions.Configuration.Ini,1.0.2,1.1.1
|
||||
Microsoft.Extensions.Configuration.Json,1.0.2,1.1.1
|
||||
Microsoft.Extensions.Configuration.UserSecrets,1.0.2,1.1.1
|
||||
Microsoft.Extensions.Configuration.Xml,1.0.2,1.1.1
|
||||
Microsoft.Extensions.DependencyInjection,1.0.2,1.1.0
|
||||
Microsoft.Extensions.DiagnosticAdapter,1.0.2,1.1.0
|
||||
Microsoft.Extensions.FileProviders.Composite,1.0.1,1.1.0
|
||||
Microsoft.Extensions.FileProviders.Embedded,1.0.1,1.1.0
|
||||
Microsoft.Extensions.FileProviders.Physical,1.0.1,1.1.0
|
||||
Microsoft.Extensions.FileSystemGlobbing,1.0.1,1.1.0
|
||||
Microsoft.Extensions.Globalization.CultureInfoCache,1.0.1,1.1.0
|
||||
Microsoft.Extensions.Localization,1.0.1,1.1.0
|
||||
Microsoft.Extensions.Logging,1.0.1,1.1.0
|
||||
Microsoft.Extensions.Logging.Console,1.0.1,1.1.0
|
||||
Microsoft.Extensions.Logging.Debug,1.0.1,1.1.0
|
||||
Microsoft.Extensions.Logging.Filter,1.0.1,1.1.0
|
||||
Microsoft.Extensions.Logging.TraceSource,1.0.1,1.1.0
|
||||
Microsoft.VisualStudio.Web.BrowserLink,1.0.0,1.0.0
|
||||
Microsoft.VisualStudio.Web.BrowserLink.Loader,14.0.1,14.1.0
|
||||
Microsoft.AspNetCore.AzureAppServicesIntegration,,1.0.0
|
||||
Microsoft.AspNetCore.DataProtection.AzureStorage,,1.0.0
|
||||
Microsoft.AspNetCore.Localization.Routing,,1.1.0
|
||||
Microsoft.AspNetCore.Rewrite,,1.0.0
|
||||
Microsoft.AspNetCore.ResponseCaching,,1.1.0
|
||||
Microsoft.AspNetCore.ResponseCompression,,1.0.0
|
||||
Microsoft.AspNetCore.WebSockets,,1.0.0
|
||||
Microsoft.Extensions.Logging.AzureAppServices,,1.0.0
|
||||
Microsoft.Extensions.Configuration.AzureKeyVault,,1.0.0
|
||||
Microsoft.Extensions.Logging.EventSource,,1.1.0
|
||||
Microsoft.Extensions.Globalization.CultureInfoCache,1.0.2,1.1.1
|
||||
Microsoft.Extensions.Localization,1.0.2,1.1.1
|
||||
Microsoft.Extensions.Logging,1.0.2,1.1.1
|
||||
Microsoft.Extensions.Logging.Console,1.0.2,1.1.1
|
||||
Microsoft.Extensions.Logging.Debug,1.0.2,1.1.1
|
||||
Microsoft.Extensions.Logging.Filter,1.0.2,1.1.1
|
||||
Microsoft.Extensions.Logging.TraceSource,1.0.2,1.1.1
|
||||
Microsoft.Extensions.Logging.EventLog,1.0.2,1.1.1
|
||||
Microsoft.VisualStudio.Web.BrowserLink,1.0.1,1.1.0
|
||||
Microsoft.AspNetCore.AzureAppServicesIntegration,,1.0.1
|
||||
Microsoft.AspNetCore.DataProtection.AzureStorage,,1.0.1
|
||||
Microsoft.AspNetCore.Localization.Routing,,1.1.1
|
||||
Microsoft.AspNetCore.Rewrite,,1.0.1
|
||||
Microsoft.AspNetCore.ResponseCaching,1.0.1,1.1.1
|
||||
Microsoft.AspNetCore.ResponseCompression,,1.0.1
|
||||
Microsoft.AspNetCore.WebSockets,,1.0.1
|
||||
Microsoft.Extensions.Logging.AzureAppServices,,1.0.1
|
||||
Microsoft.Extensions.Configuration.AzureKeyVault,,1.0.1
|
||||
Microsoft.Extensions.Logging.EventSource,,1.1.1
|
||||
System.ServiceModel.Duplex,4.0.1,4.3.0
|
||||
System.ServiceModel.Http,4.1.0,4.3.0
|
||||
System.ServiceModel.NetTcp,4.1.0,4.3.0
|
||||
System.ServiceModel.Security,4.0.1,4.3.0
|
||||
Libuv,1.9.1,1.9.1
|
||||
Microsoft.AspNet.WebApi.Client,5.2.2,5.2.2
|
||||
Microsoft.AspNetCore.Antiforgery,1.0.2,1.1.0
|
||||
Microsoft.AspNetCore.Authorization,1.0.1,1.1.0
|
||||
Microsoft.AspNetCore.Cryptography.Internal,1.0.1,1.1.0
|
||||
Microsoft.AspNetCore.Cryptography.KeyDerivation,1.0.1,1.1.0
|
||||
Microsoft.AspNetCore.DataProtection.Abstractions,1.0.1,1.1.0
|
||||
Microsoft.AspNetCore.Diagnostics,1.0.1,1.1.0
|
||||
Microsoft.AspNetCore.Diagnostics.Abstractions,1.0.1,1.1.0
|
||||
Microsoft.AspNetCore.Hosting,1.0.1,1.1.0
|
||||
Microsoft.AspNetCore.Hosting.Abstractions,1.0.1,1.1.0
|
||||
Microsoft.AspNetCore.Hosting.Server.Abstractions,1.0.1,1.1.0
|
||||
Microsoft.AspNetCore.Http,1.0.1,1.1.0
|
||||
Microsoft.AspNetCore.Http.Abstractions,1.0.1,1.1.0
|
||||
Microsoft.AspNetCore.Http.Extensions,1.0.1,1.1.0
|
||||
Microsoft.AspNetCore.Http.Features,1.0.1,1.1.0
|
||||
Microsoft.AspNetCore.HttpOverrides,1.0.1,1.1.0
|
||||
Microsoft.AspNetCore.Identity,1.0.1,1.1.0
|
||||
Microsoft.AspNetCore.JsonPatch,1.0.0,1.1.0
|
||||
Microsoft.AspNetCore.Localization,1.0.1,1.1.0
|
||||
Microsoft.AspNetCore.Mvc.Core,1.0.2,1.1.0
|
||||
Microsoft.AspNetCore.Mvc.Cors,1.0.2,1.1.0
|
||||
Microsoft.AspNetCore.Mvc.DataAnnotations,1.0.2,1.1.0
|
||||
Microsoft.AspNetCore.Mvc.Formatters.Json,1.0.2,1.1.0
|
||||
Microsoft.AspNetCore.Mvc.Localization,1.0.2,1.1.0
|
||||
Microsoft.AspNetCore.Mvc.Razor,1.0.2,1.1.0
|
||||
Microsoft.AspNetCore.Mvc.Razor.Host,1.0.2,1.1.0
|
||||
Microsoft.AspNetCore.Mvc.TagHelpers,1.0.2,1.1.0
|
||||
Microsoft.AspNetCore.Mvc.ViewFeatures,1.0.2,1.1.0
|
||||
Microsoft.AspNetCore.Razor,1.0.1,1.1.0
|
||||
Microsoft.AspNetCore.Razor.Runtime,1.0.1,1.1.0
|
||||
Microsoft.AspNetCore.Server.IISIntegration,1.0.1,1.1.0
|
||||
Microsoft.AspNetCore.Server.Kestrel,1.0.2,1.1.0
|
||||
Microsoft.AspNetCore.WebUtilities,1.0.1,1.1.0
|
||||
Microsoft.AspNetCore.Antiforgery,1.0.3,1.1.1
|
||||
Microsoft.AspNetCore.Authorization,1.0.2,1.1.1
|
||||
Microsoft.AspNetCore.Cryptography.Internal,1.0.2,1.1.1
|
||||
Microsoft.AspNetCore.Cryptography.KeyDerivation,1.0.2,1.1.1
|
||||
Microsoft.AspNetCore.DataProtection.Abstractions,1.0.2,1.1.1
|
||||
Microsoft.AspNetCore.Diagnostics,1.0.2,1.1.1
|
||||
Microsoft.AspNetCore.Diagnostics.Abstractions,1.0.2,1.1.1
|
||||
Microsoft.AspNetCore.Hosting,1.0.2,1.1.1
|
||||
Microsoft.AspNetCore.Hosting.Abstractions,1.0.2,1.1.1
|
||||
Microsoft.AspNetCore.Hosting.Server.Abstractions,1.0.2,1.1.1
|
||||
Microsoft.AspNetCore.Http,1.0.2,1.1.1
|
||||
Microsoft.AspNetCore.Http.Abstractions,1.0.2,1.1.1
|
||||
Microsoft.AspNetCore.Http.Extensions,1.0.2,1.1.1
|
||||
Microsoft.AspNetCore.Http.Features,1.0.2,1.1.1
|
||||
Microsoft.AspNetCore.HttpOverrides,1.0.2,1.1.1
|
||||
Microsoft.AspNetCore.Identity,1.0.2,1.1.1
|
||||
Microsoft.AspNetCore.JsonPatch,1.0.0,1.1.1
|
||||
Microsoft.AspNetCore.Localization,1.0.2,1.1.1
|
||||
Microsoft.AspNetCore.Mvc.Core,1.0.3,1.1.2
|
||||
Microsoft.AspNetCore.Mvc.Cors,1.0.3,1.1.2
|
||||
Microsoft.AspNetCore.Mvc.DataAnnotations,1.0.3,1.1.2
|
||||
Microsoft.AspNetCore.Mvc.Formatters.Json,1.0.3,1.1.2
|
||||
Microsoft.AspNetCore.Mvc.Localization,1.0.3,1.1.2
|
||||
Microsoft.AspNetCore.Mvc.Razor,1.0.3,1.1.2
|
||||
Microsoft.AspNetCore.Mvc.Razor.Host,1.0.3,1.1.2
|
||||
Microsoft.AspNetCore.Mvc.TagHelpers,1.0.3,1.1.2
|
||||
Microsoft.AspNetCore.Mvc.ViewFeatures,1.0.3,1.1.2
|
||||
Microsoft.AspNetCore.Razor,1.0.2,1.1.1
|
||||
Microsoft.AspNetCore.Razor.Runtime,1.0.2,1.1.1
|
||||
Microsoft.AspNetCore.Server.IISIntegration,1.0.2,1.1.1
|
||||
Microsoft.AspNetCore.Server.Kestrel,1.0.3,1.1.1
|
||||
Microsoft.AspNetCore.WebUtilities,1.0.2,1.1.1
|
||||
Microsoft.Bcl,1.1.9,1.1.9
|
||||
Microsoft.Bcl.Build,1.0.14,1.0.14
|
||||
Microsoft.CodeAnalysis.Analyzers,1.1.0,1.1.0
|
||||
|
@ -126,25 +134,26 @@ Microsoft.CodeAnalysis.CSharp,1.3.0,1.3.0
|
|||
Microsoft.CodeAnalysis.VisualBasic,1.3.0,1.3.0
|
||||
Microsoft.CSharp,4.0.1,4.3.0
|
||||
Microsoft.DotNet.InternalAbstractions,1.0.0,
|
||||
Microsoft.Extensions.Caching.Abstractions,1.0.1,1.1.0
|
||||
Microsoft.Extensions.Configuration.Abstractions,1.0.1,1.1.0
|
||||
Microsoft.Extensions.DependencyInjection.Abstractions,1.0.1,1.1.0
|
||||
Microsoft.Extensions.Caching.Abstractions,1.0.2,1.1.1
|
||||
Microsoft.Extensions.Configuration.Abstractions,1.0.2,1.1.1
|
||||
Microsoft.Extensions.DependencyInjection.Abstractions,1.0.2,1.1.0
|
||||
Microsoft.Extensions.DependencyModel,1.0.0,1.1.0
|
||||
Microsoft.Extensions.FileProviders.Abstractions,1.0.1,1.1.0
|
||||
Microsoft.Extensions.Localization.Abstractions,1.0.1,1.1.0
|
||||
Microsoft.Extensions.Logging.Abstractions,1.0.1,1.1.0
|
||||
Microsoft.Extensions.Localization.Abstractions,1.0.2,1.1.1
|
||||
Microsoft.Extensions.Logging.Abstractions,1.0.2,1.1.1
|
||||
Microsoft.Extensions.ObjectPool,1.0.1,1.1.0
|
||||
Microsoft.Extensions.Options,1.0.1,1.1.0
|
||||
Microsoft.Extensions.Options.ConfigurationExtensions,1.0.1,1.1.0
|
||||
Microsoft.Extensions.Options,1.0.2,1.1.1
|
||||
Microsoft.Extensions.Options.ConfigurationExtensions,1.0.2,1.1.1
|
||||
Microsoft.Extensions.PlatformAbstractions,1.0.0,1.1.0
|
||||
Microsoft.Extensions.Primitives,1.0.1,1.1.0
|
||||
Microsoft.Extensions.WebEncoders,1.0.1,1.1.0
|
||||
Microsoft.Extensions.WebEncoders,1.0.2,1.1.1
|
||||
Microsoft.IdentityModel.Logging,1.0.0,1.1.0
|
||||
Microsoft.IdentityModel.Protocols,2.0.0,2.1.0
|
||||
Microsoft.IdentityModel.Protocols.OpenIdConnect,2.0.0,2.1.0
|
||||
Microsoft.IdentityModel.Tokens,5.0.0,5.1.0
|
||||
Microsoft.Net.Http,2.2.22,2.2.22
|
||||
Microsoft.Net.Http.Headers,1.0.1,1.1.0
|
||||
Microsoft.Net.Http.Headers,1.0.2,1.1.1
|
||||
Microsoft.Net.Http.Server,1.0.2,1.1.1
|
||||
Microsoft.NETCore.DotNetHost,1.0.1,1.1.0
|
||||
Microsoft.NETCore.DotNetHostPolicy,1.0.3,1.1.0
|
||||
Microsoft.NETCore.DotNetHostResolver,1.0.1,1.1.0
|
||||
|
@ -275,7 +284,7 @@ System.Xml.XmlDocument,4.0.1,4.3.0
|
|||
System.Xml.XmlSerializer,4.0.11,4.3.0
|
||||
System.Xml.XPath,4.0.1,4.0.1
|
||||
System.Xml.XPath.XDocument,4.0.1,4.0.1
|
||||
Microsoft.AspNetCore.ResponseCaching.Abstractions,,1.1.0
|
||||
Microsoft.AspNetCore.ResponseCaching.Abstractions,1.0.1,1.1.1
|
||||
Microsoft.Azure.KeyVault,,2.0.2-preview
|
||||
Microsoft.Azure.KeyVault.WebKey,,2.0.0-preview
|
||||
Microsoft.Data.Edm,,5.6.4
|
||||
|
|
|
|
@ -63,10 +63,10 @@ namespace Microsoft.DotNet.Configurer.UnitTests
|
|||
SetupCommandMock(_dotnetNewCommandMock);
|
||||
|
||||
commandFactoryMock
|
||||
.Setup(c => c.Create("new", new[] { "mvc", "-f", "netcoreapp1.0", "-au", "Individual", "--debug:ephemeral-hive" }, null, Constants.DefaultConfiguration))
|
||||
.Setup(c => c.Create("new", new[] { "mvc", "-f", "netcoreapp1.0", "-au", "Individual", "--debug:ephemeral-hive", "--no-tools" }, null, Constants.DefaultConfiguration))
|
||||
.Returns(_dotnetNewCommandMock.Object);
|
||||
commandFactoryMock
|
||||
.Setup(c => c.Create("new", new[] { "mvc", "-f", "netcoreapp1.1", "-au", "Individual", "--debug:ephemeral-hive" }, null, Constants.DefaultConfiguration))
|
||||
.Setup(c => c.Create("new", new[] { "mvc", "-f", "netcoreapp1.1", "-au", "Individual", "--debug:ephemeral-hive", "--no-tools" }, null, Constants.DefaultConfiguration))
|
||||
.Returns(_dotnetNewCommandMock.Object);
|
||||
|
||||
_dotnetRestoreCommandMock = new Mock<ICommand>();
|
||||
|
|
|
@ -414,7 +414,7 @@ namespace Microsoft.DotNet.ProjectJsonMigration.Tests
|
|||
|
||||
mockProj.Items.Should().NotContain(
|
||||
i => i.Include == "Microsoft.NETCore.App" && i.ItemType == "PackageReference");
|
||||
mockProj.Properties.Should().ContainSingle(p => p.Name == "RuntimeFrameworkVersion").Which.Value.Should().Be("1.1.0");
|
||||
mockProj.Properties.Should().ContainSingle(p => p.Name == "RuntimeFrameworkVersion").Which.Value.Should().Be("1.1.1");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
@ -436,7 +436,7 @@ namespace Microsoft.DotNet.ProjectJsonMigration.Tests
|
|||
mockProj.Items.Should().NotContain(
|
||||
i => i.Include == "Microsoft.NETCore.App" && i.ItemType == "PackageReference");
|
||||
var runtimeFrameworkVersion = mockProj.Properties.Should().ContainSingle(p => p.Name == "RuntimeFrameworkVersion").Which;
|
||||
runtimeFrameworkVersion.Value.Should().Be("1.1.0");
|
||||
runtimeFrameworkVersion.Value.Should().Be("1.1.1");
|
||||
runtimeFrameworkVersion.Condition.Should().Contain("netcoreapp1.0");
|
||||
}
|
||||
|
||||
|
@ -457,7 +457,7 @@ namespace Microsoft.DotNet.ProjectJsonMigration.Tests
|
|||
mockProj.Items.Should().NotContain(
|
||||
i => i.Include == "Microsoft.NETCore.App" && i.ItemType == "PackageReference");
|
||||
var runtimeFrameworkVersion = mockProj.Properties.Should().ContainSingle(p => p.Name == "RuntimeFrameworkVersion").Which;
|
||||
runtimeFrameworkVersion.Value.Should().Be("1.1.0");
|
||||
runtimeFrameworkVersion.Value.Should().Be("1.1.1");
|
||||
runtimeFrameworkVersion.Condition.Should().BeEmpty();
|
||||
}
|
||||
|
||||
|
|
|
@ -9,11 +9,13 @@ using System;
|
|||
|
||||
namespace Microsoft.DotNet.ProjectJsonMigration.Tests
|
||||
{
|
||||
public class GivenThatIWantToMigratePackagesToTheirLTSVersions : PackageDependenciesTestBase
|
||||
public class GivenThatIWantToMigratePackagesToTheirLTSAndFTSVersions : PackageDependenciesTestBase
|
||||
{
|
||||
[Theory]
|
||||
[InlineData("1.0.0", "1.0.3")]
|
||||
[InlineData("1.0.3-preview2", "1.0.3")]
|
||||
[InlineData("1.0.0", "1.0.4")]
|
||||
[InlineData("1.0.3-preview2", "1.0.4")]
|
||||
[InlineData("1.1.0", "1.1.1")]
|
||||
[InlineData("1.1.1-preview2", "1.1.1")]
|
||||
public void ItUpliftsMicrosoftNETCoreAppMetaPackages(
|
||||
string sourceVersion,
|
||||
string targetVersion)
|
||||
|
@ -74,6 +76,25 @@ namespace Microsoft.DotNet.ProjectJsonMigration.Tests
|
|||
[InlineData("Microsoft.AspNetCore.Routing.Abstractions", "1.0.0", "Microsoft.AspNetCore.Routing.Abstractions", ConstantPackageVersions.AspNetLTSPackagesVersion)]
|
||||
[InlineData("Microsoft.AspNetCore.Server.Kestrel", "1.0.0", "Microsoft.AspNetCore.Server.Kestrel", ConstantPackageVersions.AspNetLTSPackagesVersion)]
|
||||
[InlineData("Microsoft.AspNetCore.Server.Kestrel.Https", "1.0.0", "Microsoft.AspNetCore.Server.Kestrel.Https", ConstantPackageVersions.AspNetLTSPackagesVersion)]
|
||||
[InlineData("Microsoft.AspNetCore.Antiforgery", "1.1.0", "Microsoft.AspNetCore.Antiforgery", "1.1.1")]
|
||||
[InlineData("Microsoft.AspNetCore.Mvc", "1.1.0", "Microsoft.AspNetCore.Mvc", "1.1.2")]
|
||||
[InlineData("Microsoft.AspNetCore.Mvc.Abstractions", "1.1.0", "Microsoft.AspNetCore.Mvc.Abstractions", "1.1.2")]
|
||||
[InlineData("Microsoft.AspNetCore.Mvc.ApiExplorer", "1.1.0", "Microsoft.AspNetCore.Mvc.ApiExplorer", "1.1.2")]
|
||||
[InlineData("Microsoft.AspNetCore.Mvc.Core", "1.1.0", "Microsoft.AspNetCore.Mvc.Core", "1.1.2")]
|
||||
[InlineData("Microsoft.AspNetCore.Mvc.Cors", "1.1.0", "Microsoft.AspNetCore.Mvc.Cors", "1.1.2")]
|
||||
[InlineData("Microsoft.AspNetCore.Mvc.DataAnnotations", "1.1.0", "Microsoft.AspNetCore.Mvc.DataAnnotations", "1.1.2")]
|
||||
[InlineData("Microsoft.AspNetCore.Mvc.Formatters.Json", "1.1.0", "Microsoft.AspNetCore.Mvc.Formatters.Json", "1.1.2")]
|
||||
[InlineData("Microsoft.AspNetCore.Mvc.Formatters.Xml", "1.1.0", "Microsoft.AspNetCore.Mvc.Formatters.Xml", "1.1.2")]
|
||||
[InlineData("Microsoft.AspNetCore.Mvc.Localization", "1.1.0", "Microsoft.AspNetCore.Mvc.Localization", "1.1.2")]
|
||||
[InlineData("Microsoft.AspNetCore.Mvc.Razor", "1.1.0", "Microsoft.AspNetCore.Mvc.Razor", "1.1.2")]
|
||||
[InlineData("Microsoft.AspNetCore.Mvc.Razor.Host", "1.1.0", "Microsoft.AspNetCore.Mvc.Razor.Host", "1.1.2")]
|
||||
[InlineData("Microsoft.AspNetCore.Mvc.TagHelpers", "1.1.0", "Microsoft.AspNetCore.Mvc.TagHelpers", "1.1.2")]
|
||||
[InlineData("Microsoft.AspNetCore.Mvc.ViewFeatures", "1.1.0", "Microsoft.AspNetCore.Mvc.ViewFeatures", "1.1.2")]
|
||||
[InlineData("Microsoft.AspNetCore.Mvc.WebApiCompatShim", "1.1.0", "Microsoft.AspNetCore.Mvc.WebApiCompatShim", "1.1.2")]
|
||||
[InlineData("Microsoft.AspNetCore.Routing", "1.1.0", "Microsoft.AspNetCore.Routing", "1.1.1")]
|
||||
[InlineData("Microsoft.AspNetCore.Routing.Abstractions", "1.1.0", "Microsoft.AspNetCore.Routing.Abstractions", "1.1.1")]
|
||||
[InlineData("Microsoft.AspNetCore.Server.Kestrel", "1.1.0", "Microsoft.AspNetCore.Server.Kestrel", "1.1.1")]
|
||||
[InlineData("Microsoft.AspNetCore.Server.Kestrel.Https", "1.1.0", "Microsoft.AspNetCore.Server.Kestrel.Https", "1.1.1")]
|
||||
public void ItUpliftsAspNetCorePackages(
|
||||
string sourcePackageName,
|
||||
string sourceVersion,
|
||||
|
@ -92,6 +113,14 @@ namespace Microsoft.DotNet.ProjectJsonMigration.Tests
|
|||
[InlineData("Microsoft.EntityFrameworkCore.Sqlite.Design", "1.0.0", "Microsoft.EntityFrameworkCore.Sqlite.Design", ConstantPackageVersions.EntityFrameworkLTSPackagesVersion)]
|
||||
[InlineData("Microsoft.EntityFrameworkCore.SqlServer", "1.0.0", "Microsoft.EntityFrameworkCore.SqlServer", ConstantPackageVersions.EntityFrameworkLTSPackagesVersion)]
|
||||
[InlineData("Microsoft.EntityFrameworkCore.SqlServer.Design", "1.0.0", "Microsoft.EntityFrameworkCore.SqlServer.Design", ConstantPackageVersions.EntityFrameworkLTSPackagesVersion)]
|
||||
[InlineData("Microsoft.EntityFrameworkCore", "1.1.0", "Microsoft.EntityFrameworkCore", "1.1.1")]
|
||||
[InlineData("Microsoft.EntityFrameworkCore.InMemory", "1.1.0", "Microsoft.EntityFrameworkCore.InMemory", "1.1.1")]
|
||||
[InlineData("Microsoft.EntityFrameworkCore.Relational", "1.1.0", "Microsoft.EntityFrameworkCore.Relational", "1.1.1")]
|
||||
[InlineData("Microsoft.EntityFrameworkCore.Relational.Design", "1.1.0", "Microsoft.EntityFrameworkCore.Relational.Design", "1.1.1")]
|
||||
[InlineData("Microsoft.EntityFrameworkCore.Sqlite", "1.1.0", "Microsoft.EntityFrameworkCore.Sqlite", "1.1.1")]
|
||||
[InlineData("Microsoft.EntityFrameworkCore.Sqlite.Design", "1.1.0", "Microsoft.EntityFrameworkCore.Sqlite.Design", "1.1.1")]
|
||||
[InlineData("Microsoft.EntityFrameworkCore.SqlServer", "1.1.0", "Microsoft.EntityFrameworkCore.SqlServer", "1.1.1")]
|
||||
[InlineData("Microsoft.EntityFrameworkCore.SqlServer.Design", "1.1.0", "Microsoft.EntityFrameworkCore.SqlServer.Design", "1.1.1")]
|
||||
public void ItUpliftsEntityFrameworkCorePackages(
|
||||
string sourcePackageName,
|
||||
string sourceVersion,
|
||||
|
@ -228,11 +257,17 @@ namespace Microsoft.DotNet.ProjectJsonMigration.Tests
|
|||
}
|
||||
|
||||
[Theory]
|
||||
[InlineData("Microsoft.Extensions.Logging", "1.0.0", "Microsoft.Extensions.Logging", "1.0.1")]
|
||||
[InlineData("Microsoft.Extensions.Logging.Console", "1.0.0", "Microsoft.Extensions.Logging.Console", "1.0.1")]
|
||||
[InlineData("Microsoft.Extensions.Logging.Debug", "1.0.0", "Microsoft.Extensions.Logging.Debug", "1.0.1")]
|
||||
[InlineData("Microsoft.Extensions.Configuration.Json", "1.0.0", "Microsoft.Extensions.Configuration.Json", "1.0.1")]
|
||||
[InlineData("Microsoft.Extensions.Configuration.UserSecrets", "1.0.0", "Microsoft.Extensions.Configuration.UserSecrets", "1.0.1")]
|
||||
[InlineData("Microsoft.Extensions.Logging", "1.0.0", "Microsoft.Extensions.Logging", "1.0.2")]
|
||||
[InlineData("Microsoft.Extensions.Logging.Console", "1.0.0", "Microsoft.Extensions.Logging.Console", "1.0.2")]
|
||||
[InlineData("Microsoft.Extensions.Logging.Debug", "1.0.0", "Microsoft.Extensions.Logging.Debug", "1.0.2")]
|
||||
[InlineData("Microsoft.Extensions.Configuration.Json", "1.0.0", "Microsoft.Extensions.Configuration.Json", "1.0.2")]
|
||||
[InlineData("Microsoft.Extensions.Configuration.UserSecrets", "1.0.0", "Microsoft.Extensions.Configuration.UserSecrets", "1.0.2")]
|
||||
[InlineData("Microsoft.Extensions.Logging", "1.1.0", "Microsoft.Extensions.Logging", "1.1.1")]
|
||||
[InlineData("Microsoft.Extensions.Logging.Console", "1.1.0", "Microsoft.Extensions.Logging.Console", "1.1.1")]
|
||||
[InlineData("Microsoft.Extensions.Logging.Debug", "1.1.0", "Microsoft.Extensions.Logging.Debug", "1.1.1")]
|
||||
[InlineData("Microsoft.Extensions.Configuration.Json", "1.1.0", "Microsoft.Extensions.Configuration.Json", "1.1.1")]
|
||||
[InlineData("Microsoft.Extensions.Configuration.UserSecrets", "1.1.0", "Microsoft.Extensions.Configuration.UserSecrets", "1.1.1")]
|
||||
[InlineData("Microsoft.Extensions.Logging.AzureAppServices", "1.0.0-preview2", "Microsoft.Extensions.Logging.AzureAppServices", "1.0.1")]
|
||||
public void ItUpliftsMicrosoftExtensionsPackages(
|
||||
string sourcePackageName,
|
||||
string sourceVersion,
|
|
@ -19,6 +19,10 @@ namespace Microsoft.DotNet.ProjectJsonMigration.Tests
|
|||
[InlineData("Microsoft.VisualStudio.Web.CodeGenerators.Mvc", "1.0.0-preview3-final", "Microsoft.VisualStudio.Web.CodeGeneration.Design", ConstantPackageVersions.AspNetToolsVersion)]
|
||||
[InlineData("Microsoft.VisualStudio.Web.CodeGenerators.Mvc", "1.1.0-preview4-final", "Microsoft.VisualStudio.Web.CodeGeneration.Design", ConstantPackageVersions.AspNet110ToolsVersion)]
|
||||
[InlineData("Microsoft.AspNetCore.Mvc.Razor.ViewCompilation.Design", "1.1.0-preview4-final", "Microsoft.AspNetCore.Mvc.Razor.ViewCompilation", ConstantPackageVersions.AspNet110ToolsVersion)]
|
||||
[InlineData("Microsoft.VisualStudio.Web.BrowserLink.Loader", "14.0.0-preview2-final", "Microsoft.VisualStudio.Web.BrowserLink", "1.0.1")]
|
||||
[InlineData("Microsoft.VisualStudio.Web.BrowserLink.Loader", "14.0.0-*", "Microsoft.VisualStudio.Web.BrowserLink", "1.0.1")]
|
||||
[InlineData("Microsoft.VisualStudio.Web.BrowserLink.Loader", "14.0.1", "Microsoft.VisualStudio.Web.BrowserLink", "1.0.1")]
|
||||
[InlineData("Microsoft.VisualStudio.Web.BrowserLink.Loader", "14.1.0-preview4-final", "Microsoft.VisualStudio.Web.BrowserLink", "1.1.0")]
|
||||
public void ItMigratesProjectDependenciesToANewNameAndVersion(
|
||||
string sourceToolName,
|
||||
string sourceVersion,
|
||||
|
|
|
@ -95,7 +95,7 @@ namespace Microsoft.DotNet.Migration.Tests
|
|||
{
|
||||
MigrateAndBuild(
|
||||
"NonRestoredTestProjects",
|
||||
"PJAppWithSlnAndXprojRefThatRefsCsprojWhereSlnDoesNotRefCsproj");
|
||||
"PJAppWithSlnThatDoesNotRefCsproj");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
@ -229,11 +229,10 @@ namespace Microsoft.DotNet.Migration.Tests
|
|||
.Execute($"restore \"{solutionRelPath}\"")
|
||||
.Should().Pass();
|
||||
|
||||
//ISSUE: https://github.com/dotnet/cli/issues/5205
|
||||
//new DotnetCommand()
|
||||
// .WithWorkingDirectory(projectDirectory)
|
||||
// .Execute($"build \"{solutionRelPath}\"")
|
||||
// .Should().Pass();
|
||||
new DotnetCommand()
|
||||
.WithWorkingDirectory(projectDirectory)
|
||||
.Execute($"build \"{solutionRelPath}\"")
|
||||
.Should().Pass();
|
||||
}
|
||||
|
||||
private void MigrateAndBuild(string groupName, string projectName, [CallerMemberName] string callingMethod = "", string identifier = "")
|
||||
|
@ -257,11 +256,10 @@ namespace Microsoft.DotNet.Migration.Tests
|
|||
.Execute($"restore \"{solutionRelPath}\"")
|
||||
.Should().Pass();
|
||||
|
||||
//ISSUE: https://github.com/dotnet/cli/issues/5205
|
||||
//new DotnetCommand()
|
||||
// .WithWorkingDirectory(projectDirectory)
|
||||
// .Execute($"build \"{solutionRelPath}\"")
|
||||
// .Should().Pass();
|
||||
new DotnetCommand()
|
||||
.WithWorkingDirectory(projectDirectory)
|
||||
.Execute($"build \"{solutionRelPath}\"")
|
||||
.Should().Pass();
|
||||
|
||||
SlnFile slnFile = SlnFile.Read(Path.Combine(projectDirectory.FullName, solutionRelPath));
|
||||
|
||||
|
|
|
@ -8,5 +8,6 @@
|
|||
<add key="aspnet101" value="https://www.myget.org/F/aspnet101/api/v3/index.json" />
|
||||
<add key="dotnet-web" value="https://dotnet.myget.org/F/dotnet-web/api/v3/index.json" />
|
||||
<add key="api.nuget.org" value="https://api.nuget.org/v3/index.json" />
|
||||
<add key="AspNetCurrent" value="https://dotnet.myget.org/F/aspnet-feb2017-patch/api/v3/index.json" />
|
||||
</packageSources>
|
||||
</configuration>
|
|
@ -7,5 +7,6 @@
|
|||
<add key="aspnet101" value="https://www.myget.org/F/aspnet101/api/v3/index.json" />
|
||||
<add key="dotnet-web" value="https://dotnet.myget.org/F/dotnet-web/api/v3/index.json" />
|
||||
<add key="api.nuget.org" value="https://api.nuget.org/v3/index.json" />
|
||||
<add key="AspNetCurrent" value="https://dotnet.myget.org/F/aspnet-feb2017-patch/api/v3/index.json" />
|
||||
</packageSources>
|
||||
</configuration>
|
|
@ -452,11 +452,10 @@ EndGlobal
|
|||
cmd.StdErr.Should().BeEmpty();
|
||||
}
|
||||
|
||||
//ISSUE: https://github.com/dotnet/cli/issues/5205
|
||||
//[Theory]
|
||||
//[InlineData("TestAppWithSlnAndCsprojFiles")]
|
||||
//[InlineData("TestAppWithSlnAndCsprojProjectGuidFiles")]
|
||||
//[InlineData("TestAppWithEmptySln")]
|
||||
[Theory]
|
||||
[InlineData("TestAppWithSlnAndCsprojFiles")]
|
||||
[InlineData("TestAppWithSlnAndCsprojProjectGuidFiles")]
|
||||
[InlineData("TestAppWithEmptySln")]
|
||||
public void WhenValidProjectIsPassedTheSlnBuilds(string testAsset)
|
||||
{
|
||||
var projectDirectory = TestAssets
|
||||
|
|
|
@ -118,7 +118,7 @@ A command is running to initially populate your local package cache, to improve
|
|||
|
||||
_nugetCacheFolder
|
||||
.GetDirectory("microsoft.aspnetcore.mvc")
|
||||
.Should().HaveDirectories(new string[] { "1.0.2", "1.1.1" });
|
||||
.Should().HaveDirectories(new string[] { "1.0.3", "1.1.2" });
|
||||
}
|
||||
|
||||
private string GetDotnetVersion()
|
||||
|
|
Loading…
Reference in a new issue