Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidVollmers committed May 5, 2024
1 parent 9a635cd commit a757e04
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
6 changes: 4 additions & 2 deletions src/Doki.Output.Abstractions/DefaultOutputOptions.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
namespace Doki.Output;
using System.Text.Json.Serialization;

namespace Doki.Output;

/// <summary>
/// Default output options.
/// </summary>
public sealed record DefaultOutputOptions<T> : IOutputOptions<T> where T : IOutput
{
public DirectoryInfo OutputDirectory { get; init; } = null!;
[JsonPropertyName("outputPath")] public DirectoryInfo OutputDirectory { get; init; } = null!;
}
7 changes: 3 additions & 4 deletions src/Doki.Output.Abstractions/IOutputOptions.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
using System.Text.Json.Serialization;

namespace Doki.Output;
namespace Doki.Output;

// ReSharper disable once UnusedTypeParameter
public interface IOutputOptions<T> where T : IOutput
{
[JsonPropertyName("outputPath")] DirectoryInfo OutputDirectory { get; }
DirectoryInfo OutputDirectory { get; }
}
4 changes: 2 additions & 2 deletions src/Doki.Output.ClassLibrary/ClassLibraryOutputOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ public sealed record ClassLibraryOutputOptions : IOutputOptions<ClassLibraryOutp
[JsonPropertyName("targetFramework")] public string TargetFramework { get; init; } = "net8.0";

[JsonPropertyName("targetFrameworks")] public string[]? TargetFrameworks { get; init; }
public DirectoryInfo OutputDirectory { get; init; } = null!;

[JsonPropertyName("outputPath")] public DirectoryInfo OutputDirectory { get; init; } = null!;
}

0 comments on commit a757e04

Please sign in to comment.