This commit is contained in:
femsci 2024-05-06 12:58:01 +02:00
parent 07fa774303
commit 43f633458a
Signed by: femsci
GPG key ID: 08F7911F0E650C67
2 changed files with 27 additions and 3 deletions

View file

@ -8,9 +8,9 @@
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="Microsoft.Build" Version="17.7.2" ExcludeAssets="runtime" /> <PackageReference Include="Microsoft.Build" Version="17.9.5" ExcludeAssets="runtime" />
<PackageReference Include="Microsoft.Build.Locator" Version="1.6.10" /> <PackageReference Include="Microsoft.Build.Locator" Version="1.7.8" />
<PackageReference Include="Microsoft.Build.Utilities.Core" Version="17.7.2" ExcludeAssets="runtime" /> <PackageReference Include="Microsoft.Build.Utilities.Core" Version="17.9.5" ExcludeAssets="runtime" />
<PackageReference Include="System.CommandLine" Version="2.0.0-beta4.22272.1" /> <PackageReference Include="System.CommandLine" Version="2.0.0-beta4.22272.1" />
</ItemGroup> </ItemGroup>

View file

@ -0,0 +1,24 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Versioning;
using System.Threading.Tasks;
using Microsoft.Build.Evaluation;
namespace Nyanbyte.Dotconf;
public class PropertyModifier
{
public PropertyModifier(Project project)
{
_proj = project;
}
private readonly Project _proj;
public PropertyModifier TargetFramework(FrameworkName ver)
{
_proj.SetProperty("TargetFramework", ver.Identifier);
return this;
}
}