Skip to content

Commit

Permalink
Added support for NuGet.
Browse files Browse the repository at this point in the history
  • Loading branch information
tompazourek committed Nov 1, 2014
1 parent fdeb7c0 commit f17f00d
Show file tree
Hide file tree
Showing 6 changed files with 49 additions and 6 deletions.
45 changes: 45 additions & 0 deletions Rationals.nuspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2011/10/nuspec.xsd">
<metadata>
<id>Rationals</id>
<version>1.0.0</version>
<title>Rationals</title>
<authors>Tomáš Pažourek</authors>
<licenseUrl>https://raw.githubusercontent.com/tompazourek/Rationals/master/LICENSE</licenseUrl>
<projectUrl>https://github.com/tompazourek/Rationals</projectUrl>
<iconUrl>https://raw.githubusercontent.com/tompazourek/Rationals/master/assets/logo_64.png</iconUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>Implementation of rational number arithmetics for .NET

Supported features:

- implicit conversions - rationals integrate seamlessly with other number types
- unlimited precision - rationals use BigInteger inside
- canonical form - each rational can have its canonical form (irreducible fraction where denominator is always positive)
- comparison & equality
- multiple formatting options - ToString("C") (canonical form), ToString("W") (whole + fractional part), or normal fraction format

Example usage:

Rational left = (Rational) 1 / 2;

Rational right = (Rational) 1 / 4;

Rational sum = left + right; // equals to: 3 / 4

</description>
<summary>Implementation of rational number arithmetics for .NET</summary>
<copyright>Tomáš Pažourek, 2014</copyright>
<tags>rational numbers, biginterger, rationals, q, bigrational</tags>
<frameworkAssemblies>
<frameworkAssembly assemblyName="System" targetFramework="" />
<frameworkAssembly assemblyName="System.Core" targetFramework="" />
<frameworkAssembly assemblyName="System.Numerics" targetFramework="" />
</frameworkAssemblies>
</metadata>
<files>
<file src="Rationals\bin\Release\Rationals.dll" target="lib\net40\Rationals.dll" />
<file src="Rationals\bin\Release\Rationals.pdb" target="lib\net40\Rationals.pdb" />
<file src="Rationals\bin\Release\Rationals.xml" target="lib\net40\Rationals.xml" />
</files>
</package>
10 changes: 4 additions & 6 deletions Rationals/Rationals.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Rationals</RootNamespace>
<AssemblyName>Rationals</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\</SolutionDir>
<RestorePackages>true</RestorePackages>
<TargetFrameworkProfile>
</TargetFrameworkProfile>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
Expand All @@ -30,16 +32,12 @@
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<DocumentationFile>bin\Release\Rationals.xml</DocumentationFile>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Numerics" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Base.cs" />
Expand Down
Binary file added assets/logo_128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/logo_32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/logo_320.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/logo_64.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f17f00d

Please sign in to comment.