Nuget: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
No edit summary
Line 15: Line 15:
nuget setapikey 4003d786-cc37-4004-bfdf-c4f3e8ef9b3a
nuget setapikey 4003d786-cc37-4004-bfdf-c4f3e8ef9b3a
nuget setapikey 4003d786-cc37-4004-bfdf-c4f3e8ef9b3a -source https://cdn.chorke.org/feed
nuget setapikey 4003d786-cc37-4004-bfdf-c4f3e8ef9b3a -source https://cdn.chorke.org/feed
</source>
==Utility Project==
<source lang="bash">
mkdir Utility
cd Utility
dotnet new classlib -n Chorke.Academia.Core.Utility
dotnet new xunit -n Chorke.Academia.Core.Utility.Tests
dotnet new sln -n Utility
dotnet sln add Chorke.Academia.Core.Utility
cd ../Chorke.Academia.Core.Utility.Tests/
dotnet add reference ../Chorke.Academia.Core.Utility
dotnet sln add Chorke.Academia.Core.Utility.Tests
</source>
</source>



Revision as of 10:01, 12 July 2019

Mono Nuget

brew install mono
sudo curl -o /usr/local/bin/nuget.exe https://dist.nuget.org/win-x86-commandline/latest/nuget.exe
'alias nuget="mono /usr/local/bin/nuget.exe"' >> ~/.bash_profile
brew uninstall mono
sudo rm -rf /usr/local/bin/nuget.exe
# vim  ~/.bash_profile and delete 'alias nuget="mono /usr/local/bin/nuget.exe"'
nuget setapikey 4003d786-cc37-4004-bfdf-c4f3e8ef9b3a
nuget setapikey 4003d786-cc37-4004-bfdf-c4f3e8ef9b3a -source https://cdn.chorke.org/feed

Utility Project

mkdir Utility
cd Utility

dotnet new classlib -n Chorke.Academia.Core.Utility
dotnet new xunit -n Chorke.Academia.Core.Utility.Tests

dotnet new sln -n Utility
dotnet sln add Chorke.Academia.Core.Utility

cd ../Chorke.Academia.Core.Utility.Tests/
dotnet add reference ../Chorke.Academia.Core.Utility
dotnet sln add Chorke.Academia.Core.Utility.Tests

References