deploy-11 - implement DeployVersionAttribute
This commit is contained in:
16
src/Umbraco.Core/Deploy/DeploySupportAttribute.cs
Normal file
16
src/Umbraco.Core/Deploy/DeploySupportAttribute.cs
Normal 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; }
|
||||
}
|
||||
}
|
||||
@@ -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")]
|
||||
|
||||
@@ -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" />
|
||||
|
||||
Reference in New Issue
Block a user