Skip to content

Commit 9b92b88

Browse files
committed
Updated readme and projects to support nuget
1 parent 51710d1 commit 9b92b88

File tree

5 files changed

+48
-2
lines changed

5 files changed

+48
-2
lines changed

Fs.Units.CSharp.Tests.Benchmark/Fs.Units.CSharp.Tests.Benchmark.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
<ImplicitUsings>enable</ImplicitUsings>
77
<Nullable>enable</Nullable>
88
<LangVersion>default</LangVersion>
9+
<IsPackable>false</IsPackable>
910
</PropertyGroup>
1011

1112
<ItemGroup>

Fs.Units.CSharp/Fs.Units.CSharp.csproj

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,26 @@
55
<Nullable>enable</Nullable>
66
<LangVersion>latest</LangVersion>
77
<ImplicitUsings>true</ImplicitUsings>
8+
<Title>Fs.Units</Title>
9+
<Authors>1eyewonder</Authors>
10+
<Description>A simple library for working with units of measure in .NET</Description>
11+
<RepositoryUrl>https://github.com/1eyewonder/Fs.Units</RepositoryUrl>
12+
<PackageTags>csharp, dotnet, units-of-measure, units-converter</PackageTags>
13+
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
14+
<PackageLicenseExpression>MIT</PackageLicenseExpression>
15+
<PackageReadmeFile>README.md</PackageReadmeFile>
16+
<IncludeSymbols>False</IncludeSymbols>
17+
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
18+
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
819
</PropertyGroup>
920

21+
<ItemGroup>
22+
<None Include="..\README.md">
23+
<Pack>True</Pack>
24+
<PackagePath>\</PackagePath>
25+
</None>
26+
</ItemGroup>
27+
1028
<ItemGroup>
1129
<ProjectReference Include="..\Fs.Units\Fs.Units.fsproj" />
1230
</ItemGroup>

Fs.Units.Tests.Benchmark/Fs.Units.Tests.Benchmark.fsproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
55
<TargetFramework>net6.0</TargetFramework>
6+
<IsPackable>false</IsPackable>
67
</PropertyGroup>
78
<ItemGroup>
89
<Compile Include="Program.fs" />

Fs.Units/Fs.Units.fsproj

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,17 @@
44
<TargetFramework>netstandard2.1</TargetFramework>
55
<GenerateDocumentationFile>true</GenerateDocumentationFile>
66
<LangVersion>latest</LangVersion>
7+
<Title>Fs.Units</Title>
8+
<Authors>1eyewonder</Authors>
9+
<Description>A simple library for working with units of measure in .NET</Description>
10+
<RepositoryUrl>https://github.com/1eyewonder/Fs.Units</RepositoryUrl>
11+
<PackageTags>fsharp, dotnet, units-of-measure, units-converter</PackageTags>
12+
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
13+
<PackageReadmeFile>README.md</PackageReadmeFile>
14+
<PackageLicenseExpression>MIT</PackageLicenseExpression>
15+
<IncludeSymbols>False</IncludeSymbols>
16+
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
17+
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
718
</PropertyGroup>
819
<ItemGroup>
920
<Compile Include="Simple\Length.fs" />
@@ -31,5 +42,15 @@
3142
<Compile Include="Compound\Capacitance.fs" />
3243
<Compile Include="Compound\Inductance.fs" />
3344
</ItemGroup>
45+
<ItemGroup>
46+
<None Include="..\LICENSE.md">
47+
<Pack>True</Pack>
48+
<PackagePath>\</PackagePath>
49+
</None>
50+
<None Include="..\README.md">
51+
<Pack>True</Pack>
52+
<PackagePath>\</PackagePath>
53+
</None>
54+
</ItemGroup>
3455
<Import Project="..\.paket\Paket.Restore.targets" />
3556
</Project>

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11
# FS.Units
22

3+
[![NuGet version (Fs.Units)](https://img.shields.io/nuget/v/Fs.Units.svg?style=flat-square)](https://www.nuget.org/packages/Fs.Units/)
4+
[![NuGet version (Fs.Units.CSharp)](https://img.shields.io/nuget/v/Fs.Units.CSharp.svg?style=flat-square)](https://www.nuget.org/packages/Fs.Units.CSharp/)
5+
[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/1eyewonder/Fs.Units/blob/main/LICENSE.md)
6+
[![GitHub Releases](https://img.shields.io/github/release/1eyewonder/Fs.Units.svg)](https://github.com/1eyewonder/Fs.Units/releases)
7+
[![GitHub Issues](https://img.shields.io/github/issues/1eyewonder/Fs.Units.svg)](https://github.com/1eyewonder/Fs.Units/issues)
8+
39
A simple library for working with units of measure in .NET.
410

5-
The goal of this library was to assist developers with quick proof of concepts as well as full functioning projects which involve common units of measure.
11+
The goal of this library is to assist developers with quick proof of concepts as well as full functioning projects which involve common units of measure.
612

713
Feedback and assistance are welcome!
814

9-
1015
## Unit Types
1116

1217
- **Simple Units:** A basic unit of measure

0 commit comments

Comments
 (0)