Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ jobs:
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
dotnet-version: 10.0.x
- name: Run Build and Test using Nuke
run: ./build.ps1 -Target Test -Configuration Release
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ jobs:
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
dotnet-version: 10.0.x
- name: Run Publish using Nuke
run: ./build.ps1 -Target Publish -Configuration Release --nuget_api_key ${{ secrets.NUGET_API_KEY }}
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
[![GitHub forks](https://img.shields.io/github/forks/OptiSchmopti/CsvProc9000?style=social)](https://github.com/OptiSchmopti/CsvProc9000/network/members)
[![GitHub watchers](https://img.shields.io/github/watchers/OptiSchmopti/CsvProc9000?style=social)](https://github.com/OptiSchmopti/CsvProc9000/watchers)

πŸ› οΈ .NET: Easy (to use) Parser for your .NET Solution (.sln) Files. This project targets `netstandard2.0` so it can basically be used anywhere you want. I've not yet run any performance tests.
πŸ› οΈ .NET: Easy (to use) Parser for your .NET Solution (s, .slnx) Files. This project targets `netstandard2.0` so it can basically be used anywhere you want. I've not yet run any performance tests.

## πŸ’» Usage

Expand All @@ -18,7 +18,7 @@
```cs

var parser = new SolutionParser();
var parsedSolution = parser.Parse("path/to/your/solution.sln");
var parsedSolution = parser.Parse("path/to/your/solution.sln"); // or ".slnx"

```

Expand Down
17 changes: 9 additions & 8 deletions build/Build.cs
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
using System.IO;
using System.Linq;
using Nuke.Common;
using Nuke.Common.CI;
using Nuke.Common.Execution;
using Nuke.Common.IO;
using Nuke.Common.ProjectModel;
using Nuke.Common.Tools.DotNet;
using Nuke.Common.Tools.GitVersion;
using Nuke.Common.Utilities.Collections;
using static Nuke.Common.IO.FileSystemTasks;
using Serilog;
using static Nuke.Common.Tools.DotNet.DotNetTasks;

[CheckBuildProjectConfigurations]
[ShutdownDotNetAfterServerBuild]
public class Build : NukeBuild
{
Expand All @@ -31,8 +30,8 @@ public class Build : NukeBuild
.Before(Restore)
.Executes(() =>
{
SourceDirectory.GlobDirectories("**/bin", "**/obj").ForEach(DeleteDirectory);
BuildDirectory.GlobDirectories("**/.output").ForEach(DeleteDirectory);
SourceDirectory.GlobDirectories("**/bin", "**/obj").ForEach(dir => Directory.Delete(dir, true));
BuildDirectory.GlobDirectories("**/.output").ForEach(dir => Directory.Delete(dir, true));
});

Target Restore => _ => _
Expand All @@ -48,8 +47,10 @@ public class Build : NukeBuild
.Executes(() =>
{
if (GitVersion == null)
Logger.Warn(
{
Log.Warning(
"GitVersion appears to be null. Have a look at it! Versions are defaulting to 0.1.0 for now...");
}

DotNetBuild(s => s
.SetProjectFile(Solution)
Expand Down Expand Up @@ -83,7 +84,7 @@ public class Build : NukeBuild

foreach (var packProject in packProjects)
{
using var block = Logger.Block($"Packing {packProject.Name}");
Log.Information("Packing {ProjectName}...", packProject.Name);
DotNetPack(s => s
.SetProject(packProject.Path)
.SetVersion(GitVersion?.NuGetVersionV2 ?? "0.1.0")
Expand All @@ -107,7 +108,7 @@ public class Build : NukeBuild

foreach (var package in packages)
{
Logger.Info($"Publishing {package}");
Log.Information("Publishing {PackageName}...", package);
DotNetNuGetPush(s => s
.SetApiKey(NuGetApiKey)
.SetSymbolApiKey(NuGetApiKey)
Expand Down
4 changes: 2 additions & 2 deletions build/SlnParser.Build.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net10.0</TargetFramework>
<RootNamespace></RootNamespace>
<NoWarn>CS0649;CS0169</NoWarn>
<NukeRootDirectory>..</NukeRootDirectory>
Expand All @@ -11,7 +11,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Nuke.Common" Version="5.3.0" />
<PackageReference Include="Nuke.Common" Version="10.1.0" />
<PackageDownload Include="GitVersion.CommandLine" Version="[5.5.1]" />
</ItemGroup>

Expand Down
Loading
Loading