deploy-11 - implement DeployVersionAttribute

This commit is contained in:
Stephan
2016-11-30 18:18:41 +01:00
parent b8ff4a5906
commit f51a086137
3 changed files with 23 additions and 3 deletions

View File

@@ -0,0 +1,16 @@
using System;
using Semver;
namespace Umbraco.Core.Deploy
{
[AttributeUsage(AttributeTargets.Assembly)]
public class DeploySupportAttribute : Attribute
{
public DeploySupportAttribute(string version)
{
Version = version;
}
public SemVersion Version { get; private set; }
}
}

View File

@@ -3,8 +3,9 @@ using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Security;
using System.Security.Permissions;
using Umbraco.Core.Deploy;
// General Information about an assembly is controlled through the following
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Umbraco.Core")]
@@ -12,14 +13,16 @@ using System.Security.Permissions;
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyProduct("Umbraco CMS")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("130a6b5c-50e7-4df3-a0dd-e9e7eb0b7c5c")]
[assembly: DeploySupport("1.0.0-alpha000")]
[assembly: InternalsVisibleTo("umbraco")]
[assembly: InternalsVisibleTo("Umbraco.Tests")]
[assembly: InternalsVisibleTo("Umbraco.Extensions")]

View File

@@ -313,6 +313,7 @@
<Compile Include="DateTimeExtensions.cs" />
<Compile Include="DecimalExtensions.cs" />
<Compile Include="DelegateExtensions.cs" />
<Compile Include="Deploy\DeploySupportAttribute.cs" />
<Compile Include="DictionaryExtensions.cs" />
<Compile Include="Dictionary\CultureDictionaryFactoryResolver.cs" />
<Compile Include="Dictionary\ICultureDictionaryFactory.cs" />