Prepared NuGet distribution

This commit is contained in:
tsommer committed 2024-05-05 13:19:54 +02:00
1 parent e07c57e640
commit 07ffe92067
7 files changed
+70

No files matched your search

@@ -7,10 +7,33 @@
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<WarningsAsErrors>CS8600;CS8602;CS8603</WarningsAsErrors>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<AssemblyVersion>1.0.0</AssemblyVersion>
<FileVersion>1.0.0</FileVersion>
<PackageVersion>1.0.0</PackageVersion>
<Authors>Thorsten Sommer</Authors>
<PackageProjectUrl>https://devops.tsommer.org/open-source/dotnet/csv-metrics-logger</PackageProjectUrl>
<RepositoryUrl>https://devops.tsommer.org/open-source/dotnet/csv-metrics-logger</RepositoryUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageReadmeFile>README.md</PackageReadmeFile>
<AssemblyName>CSVMetricsLogger</AssemblyName>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\CSV Metrics Logger Generator\CSV Metrics Logger Generator.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" />
</ItemGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
<DocumentationFile>bin\Debug\CSVMetricsLogger.xml</DocumentationFile>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
<DocumentationFile>bin\Release\CSVMetricsLogger.xml</DocumentationFile>
</PropertyGroup>
<ItemGroup>
<None Include="README.md" Pack="true" PackagePath="\"/>
</ItemGroup>
</Project>
+5
View File
@@ -1,4 +1,9 @@
namespace CSV_Metrics_Logger;
/// <summary>
/// An attribute to mark a struct as a CSV record. Every so marked struct
/// will be augmented with the necessary methods to convert it to a CSV record.
/// In order to work, the struct must be partial.
/// </summary>
[AttributeUsage(AttributeTargets.Struct)]
public sealed class CSVRecordAttribute : Attribute;
+17
View File
@@ -1,10 +1,27 @@
namespace CSV_Metrics_Logger;
/// <summary>
/// Interface for converting a struct to a CSV record. This interface is used
/// by the source generator to augment the struct with the necessary methods.
/// Hence, you DO NOT need to implement this interface yourself.
/// </summary>
public interface IConvertToCSV
{
/// <summary>
/// Returns the number of columns in the CSV record.
/// </summary>
/// <returns>The number of columns in the CSV record.</returns>
public uint GetCSVColumnCount();
/// <summary>
/// Returns the headers of the CSV record.
/// </summary>
/// <returns>The headers of the CSV record.</returns>
public IList<string> GetCSVHeaders();
/// <summary>
/// Returns the data line of the CSV record.
/// </summary>
/// <returns>The data line of the CSV record.</returns>
public IList<string> ConvertToCSVDataLine();
}
+1
View File
@@ -0,0 +1 @@
TODO