whyyy
This commit is contained in:
parent
07fa774303
commit
43f633458a
2 changed files with 27 additions and 3 deletions
|
@ -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>
|
||||||
|
|
||||||
|
|
24
src/Nyanbyte.Dotconf/PropertyModifier.cs
Normal file
24
src/Nyanbyte.Dotconf/PropertyModifier.cs
Normal 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;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue