Skip to content

Commit 015b4af

Browse files
committed
Add AssemblyMetadataAttribute for NET35 and NET40
1 parent 0e59a88 commit 015b4af

2 files changed

Lines changed: 21 additions & 1 deletion

File tree

src/Oxide.Common.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<PackageIconUrl>icon.png</PackageIconUrl>
1212
<PackageLicenseExpression>MIT</PackageLicenseExpression>
1313
<PackageProjectUrl>$(RepositoryUrl)</PackageProjectUrl>
14-
<TargetFrameworks>net35;net48;netstandard2.0;netstandard2.1</TargetFrameworks>
14+
<TargetFrameworks>net35;net40;net45;net46;net48;netstandard2.0;netstandard2.1</TargetFrameworks>
1515
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
1616
<NoWarn>NU1701</NoWarn>
1717
<RootNamespace>$(MSBuildProjectName.Replace(" ", "_").Replace(".Common", ""))</RootNamespace>
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#if NET35 || NET40
2+
3+
namespace System.Reflection
4+
{
5+
[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)]
6+
public class AssemblyMetadataAttribute : Attribute
7+
{
8+
public string Key { get; protected set; }
9+
10+
public string Value { get; protected set; }
11+
12+
public AssemblyMetadataAttribute(string key, string value)
13+
{
14+
Key = key;
15+
Value = value;
16+
}
17+
}
18+
}
19+
20+
#endif

0 commit comments

Comments
 (0)