This commit is contained in:
Bryan Thornbury 2016-06-15 10:23:16 -07:00
parent d717b84ec8
commit f0380cfd9c
5 changed files with 6 additions and 12 deletions

View file

@ -6,3 +6,4 @@ MINOR_VERSION=0
PATCH_VERSION=0 PATCH_VERSION=0
RELEASE_SUFFIX=preview3 RELEASE_SUFFIX=preview3
CHANNEL=rel-1.0.0 CHANNEL=rel-1.0.0
BRANCH_NAME=rel/1.0.0

View file

@ -1,6 +1,6 @@
{ {
"description": "Abstractions for making code that uses file system and environment testable.", "description": "Abstractions for making code that uses file system and environment testable.",
"version": "1.1.0-beta-*", "version": "1.0.1-beta-*",
"buildOptions": { "buildOptions": {
"warningsAsErrors": true, "warningsAsErrors": true,
"keyFile": "../../tools/Key.snk", "keyFile": "../../tools/Key.snk",

View file

@ -1,6 +1,6 @@
{ {
"description": "Abstractions for reading `.deps` files.", "description": "Abstractions for reading `.deps` files.",
"version": "1.1.0-beta-*", "version": "1.0.1-beta-*",
"buildOptions": { "buildOptions": {
"warningsAsErrors": true, "warningsAsErrors": true,
"keyFile": "../../tools/Key.snk" "keyFile": "../../tools/Key.snk"

View file

@ -41,19 +41,13 @@ namespace NuGet
/// </summary> /// </summary>
internal const string SchemaVersionV6 = "http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd"; internal const string SchemaVersionV6 = "http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd";
/// <summary>
/// Added serviceble element under metadata.
/// </summary>
internal const string SchemaVersionV8 = "http://schemas.microsoft.com/packaging/2016/06/nuspec.xsd";
private static readonly string[] VersionToSchemaMappings = new[] { private static readonly string[] VersionToSchemaMappings = new[] {
SchemaVersionV1, SchemaVersionV1,
SchemaVersionV2, SchemaVersionV2,
SchemaVersionV3, SchemaVersionV3,
SchemaVersionV4, SchemaVersionV4,
SchemaVersionV5, SchemaVersionV5,
SchemaVersionV6, SchemaVersionV6
SchemaVersionV8
}; };
public static int GetVersionFromNamespace(string @namespace) public static int GetVersionFromNamespace(string @namespace)

View file

@ -15,9 +15,6 @@ namespace NuGet
public const int TargetFrameworkSupportForDependencyContentsAndToolsVersion = 4; public const int TargetFrameworkSupportForDependencyContentsAndToolsVersion = 4;
public const int TargetFrameworkSupportForReferencesVersion = 5; public const int TargetFrameworkSupportForReferencesVersion = 5;
public const int XdtTransformationVersion = 6; public const int XdtTransformationVersion = 6;
// Note that this version should change from 7 to 8 when the PackageType
// schema is merged into here
public const int ServiceableVersion = 7;
public static int GetManifestVersion(ManifestMetadata metadata) public static int GetManifestVersion(ManifestMetadata metadata)
{ {
@ -26,6 +23,8 @@ namespace NuGet
private static int GetMaxVersionFromMetadata(ManifestMetadata metadata) private static int GetMaxVersionFromMetadata(ManifestMetadata metadata)
{ {
// Important: always add newer version checks at the top
bool referencesHasTargetFramework = bool referencesHasTargetFramework =
metadata.PackageAssemblyReferences != null && metadata.PackageAssemblyReferences != null &&
metadata.PackageAssemblyReferences.Any(r => r.TargetFramework != null); metadata.PackageAssemblyReferences.Any(r => r.TargetFramework != null);