Removing the nuspec schema change used for adding the serviceable tag.
This commit is contained in:
parent
ef4a8e85ef
commit
013fa1b8c0
2 changed files with 1 additions and 14 deletions
|
@ -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)
|
||||||
|
|
|
@ -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)
|
||||||
{
|
{
|
||||||
|
@ -27,10 +24,6 @@ namespace NuGet
|
||||||
private static int GetMaxVersionFromMetadata(ManifestMetadata metadata)
|
private static int GetMaxVersionFromMetadata(ManifestMetadata metadata)
|
||||||
{
|
{
|
||||||
// Important: always add newer version checks at the top
|
// Important: always add newer version checks at the top
|
||||||
if (metadata.Serviceable)
|
|
||||||
{
|
|
||||||
return ServiceableVersion;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool referencesHasTargetFramework =
|
bool referencesHasTargetFramework =
|
||||||
metadata.PackageAssemblyReferences != null &&
|
metadata.PackageAssemblyReferences != null &&
|
||||||
|
|
Loading…
Add table
Reference in a new issue