chore(Abstraktion.Attribute): Unterstützung für .net framework 4.6.2 hinzufügen

This commit is contained in:
Developer 02 2025-05-20 16:39:19 +02:00
parent 8fc23b0055
commit a54ec39df7
2 changed files with 20 additions and 4 deletions

View File

@ -1,9 +1,21 @@
<Project Sdk="Microsoft.NET.Sdk"> <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup> <PropertyGroup>
<TargetFrameworks>net7.0;net8.0;net9.0</TargetFrameworks> <TargetFrameworks>net462;net7.0;net8.0;net9.0</TargetFrameworks>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition="'$(TargetFramework)' == 'net462'">
<ImplicitUsings>disable</ImplicitUsings>
<LangVersion>7.3</LangVersion>
</PropertyGroup>
<PropertyGroup Condition="'$(TargetFramework)' != 'net462'">
<ImplicitUsings>enable</ImplicitUsings>
<LangVersion>latest</LangVersion>
</PropertyGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'net462'">
<PackageReference Include="System.ComponentModel.Annotations" Version="4.7.0" />
</ItemGroup>
</Project> </Project>

View File

@ -1,4 +1,8 @@
namespace DigitalData.EmailProfilerDispatcher.Abstraction.Attributes #if NETFRAMEWORK
using System;
#endif
namespace DigitalData.EmailProfilerDispatcher.Abstraction.Attributes
{ {
[AttributeUsage(AttributeTargets.Property)] [AttributeUsage(AttributeTargets.Property)]
public class TemplatePlaceholderAttribute : Attribute public class TemplatePlaceholderAttribute : Attribute