Skip to content

Commit

Permalink
Added instructions for local dotnet tool install.
Browse files Browse the repository at this point in the history
  • Loading branch information
saj122 committed Feb 1, 2024
1 parent f644c84 commit 19a6999
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,14 @@ $ dotnet ./bin/<Configuration>/MacOS/ARM64/net6.0/VUISIS.Formula.ARM64.dll
To run unit tests with Formula, run the following command from
Src/Tests.

### Building Nuget Package & Installing Tool Locally
To build the formula nuget package, run from the folder Src/CommandLine dotnet pack. Run dotnet tool to install the program and add the folder containing the nupkg with --add-source.

```bash
$ dotnet pack /p:Configuration=Debug|Release /p:Platform=x64|ARM64
$ dotnet tool install --add-source ../../nupkg -g formula
```

```bash
$ dotnet test Tests.csproj /p:Configuration=Debug|Release /p:Platform=x64|ARM64

Expand Down
10 changes: 10 additions & 0 deletions Src/CommandLine/CommandLine.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -40,17 +40,27 @@
</PropertyGroup>
</When>
<When Condition="$([MSBuild]::IsOSPlatform('Windows')) and '$(Platform)' == 'x64'">
<ItemGroup>
<None Include="..\..\README.md" Pack="true" PackagePath="\"/>
<None Include="..\..\LICENSE" Pack="true" PackagePath="\"/>
</ItemGroup>
<PropertyGroup>
<AssemblyName>VUISIS.Formula.x64</AssemblyName>
</PropertyGroup>
</When>
<When Condition="$([MSBuild]::IsOSPlatform('OSX')) and '$(Platform)' == 'x64'">
<ItemGroup>
<None Include="..\..\README.md" Pack="true" PackagePath="\"/>
<None Include="..\..\LICENSE" Pack="true" PackagePath="\"/>
</ItemGroup>
<PropertyGroup>
<AssemblyName>VUISIS.Formula.x64</AssemblyName>
</PropertyGroup>
</When>
<When Condition="$([MSBuild]::IsOSPlatform('OSX')) and '$(Platform)' == 'ARM64'">
<ItemGroup>
<None Include="..\..\README.md" Pack="true" PackagePath="\"/>
<None Include="..\..\LICENSE" Pack="true" PackagePath="\"/>
<None Include="bin\Release\MacOS\ARM64\net6.0\runtimes\osx-arm64\native\*" Pack="true" PackagePath="runtimes\osx-arm64\native"/>
</ItemGroup>
<PropertyGroup>
Expand Down

0 comments on commit 19a6999

Please sign in to comment.