Skip to content

Commit 6a0a623

Browse files
committed
Updated build project to .net 9. Updated dependencies.
1 parent 94f2d46 commit 6a0a623

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

build/build.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ internal class Build
1616
private const string Pack = "pack";
1717
private const string Publish = "publish";
1818

19-
private static void Main(string[] args)
19+
private static async Task Main(string[] args)
2020
{
2121
const string solutionName = "Tailwindcss.DotnetTool.sln";
2222

@@ -30,7 +30,7 @@ private static void Main(string[] args)
3030
string? version = null;
3131
Target(Minver, DependsOn(InstallMinver), async () =>
3232
{
33-
version = await ReadAsync("minver", "-t v");
33+
(version, _) = await ReadAsync("minver", "-t v");
3434
Console.WriteLine("Version: {0}", version);
3535
});
3636

@@ -60,7 +60,7 @@ private static void Main(string[] args)
6060
Target(Pack, DependsOn(Compile, Minver), ForEach(nugetProjects), project =>
6161
Run("dotnet", $"pack {project} -o ./artifacts --configuration Release -p:PackageVersion={version}"));
6262

63-
RunTargetsAndExit(args);
63+
await RunTargetsAndExitAsync(args);
6464
}
6565

6666
private static void EnsureDirectoriesDeleted(params string[] paths)

build/build.csproj

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net8.0</TargetFramework>
5+
<TargetFramework>net9.0</TargetFramework>
66
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
77
</PropertyGroup>
88

@@ -11,7 +11,8 @@
1111
</ItemGroup>
1212

1313
<ItemGroup>
14-
<PackageReference Include="Bullseye" Version="3.8.0" />
15-
<PackageReference Include="SimpleExec" Version="8.0.0" />
14+
<PackageReference Include="Bullseye" Version="5.0.0" />
15+
<PackageReference Include="SimpleExec" Version="12.0.0" />
16+
<PackageReference Update="Microsoft.SourceLink.GitHub" Version="8.0.0" />
1617
</ItemGroup>
1718
</Project>

0 commit comments

Comments
 (0)