Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make it easier to build the source under Linux #85

Merged
merged 1 commit into from Aug 28, 2018
Merged

Conversation

moodmosaic
Copy link
Contributor

  • Make csproj files shorter
  • Make csproj files easier to maintain
  • Most important, replace paket.exe with dotnet.exe which means there's no need to install Mono.

Just run dotnet build in the root folder and that's it.


Many thanks to @stjordanis for all the work and tests he's been putting in. 馃殌

- Make csproj files shorter
- Make csproj files easier to maintain
- Most important, replace paket.exe with dotnet.exe

Just run `dotnet build` in the root folder and that's it.
@moodmosaic
Copy link
Contributor Author

Looking good on a fresh Ubuntu 18.04 with only .NET Core installed:

nikos@ubuntu:~$ dotnet --version
2.1.401
nikos@ubuntu:~$ git clone https://github.com/cryptean/bitcoinlib
Cloning into 'bitcoinlib'...
remote: Counting objects: 2052, done.
remote: Compressing objects: 100% (60/60), done.
remote: Total 2052 (delta 27), reused 57 (delta 18), pack-reused 1973
Receiving objects: 100% (2052/2052), 12.57 MiB | 1.68 MiB/s, done.
Resolving deltas: 100% (1130/1130), done.
nikos@ubuntu:~$ cd bitcoinlib/
nikos@ubuntu:~/bitcoinlib$ git checkout topic/dotnet
Branch 'topic/dotnet' set up to track remote branch 'topic/dotnet' from 'origin'.
Switched to a new branch 'topic/dotnet'
nikos@ubuntu:~/bitcoinlib$ dotnet build
Microsoft (R) Build Engine version 15.8.166+gd4e8d81a88 for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.

  Restoring packages for /home/nikos/bitcoinlib/src/BitcoinLib/BitcoinLib.csproj...
  Restoring packages for /home/nikos/bitcoinlib/demo/DemoClient.csproj...
  Generating MSBuild file /home/nikos/bitcoinlib/demo/obj/DemoClient.csproj.nuget.g.props.
  Generating MSBuild file /home/nikos/bitcoinlib/src/BitcoinLib/obj/BitcoinLib.csproj.nuget.g.props.
  Generating MSBuild file /home/nikos/bitcoinlib/src/BitcoinLib/obj/BitcoinLib.csproj.nuget.g.targets.
  Generating MSBuild file /home/nikos/bitcoinlib/demo/obj/DemoClient.csproj.nuget.g.targets.
  Restore completed in 219.09 ms for /home/nikos/bitcoinlib/src/BitcoinLib/BitcoinLib.csproj.
  Restore completed in 218.99 ms for /home/nikos/bitcoinlib/demo/DemoClient.csproj.
  BitcoinLib -> /home/nikos/bitcoinlib/src/BitcoinLib/bin/Debug/netstandard2.0/BitcoinLib.dll
  DemoClient -> /home/nikos/bitcoinlib/demo/bin/Debug/netcoreapp2.0/ConsoleClient.dll

Build succeeded.
    0 Warning(s)
    0 Error(s)

Time Elapsed 00:00:03.39

@moodmosaic
Copy link
Contributor Author

Looking good also on MINGW64:

Nikos@WIN-NJGAFM9CA3G MINGW64 ~/cryptean/bitcoinlib (topic/dotnet)
$ dotnet --version
2.1.400
Nikos@WIN-NJGAFM9CA3G MINGW64 ~/cryptean/bitcoinlib (topic/dotnet)
$ dotnet build
Microsoft (R) Build Engine version 15.8.166+gd4e8d81a88 for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.

  Restoring packages for C:\Snapshot\cryptean\bitcoinlib\demo\DemoClient.csproj...
  Restoring packages for C:\Snapshot\cryptean\bitcoinlib\src\BitcoinLib\BitcoinLib.csproj...
  Generating MSBuild file C:\Snapshot\cryptean\bitcoinlib\src\BitcoinLib\obj\BitcoinLib.csproj.nuget.g.props.
  Generating MSBuild file C:\Snapshot\cryptean\bitcoinlib\src\BitcoinLib\obj\BitcoinLib.csproj.nuget.g.targets.
  Restore completed in 186.81 ms for C:\Snapshot\cryptean\bitcoinlib\src\BitcoinLib\BitcoinLib.csproj.
  Installing Microsoft.NETCore.DotNetAppHost 2.0.0.
  Installing Microsoft.NETCore.DotNetHostResolver 2.0.0.
  Installing Microsoft.NETCore.DotNetHostPolicy 2.0.0.
  Installing NETStandard.Library 2.0.0.
  Installing Microsoft.NETCore.App 2.0.0.
  Generating MSBuild file C:\Snapshot\cryptean\bitcoinlib\demo\obj\DemoClient.csproj.nuget.g.props.
  Generating MSBuild file C:\Snapshot\cryptean\bitcoinlib\demo\obj\DemoClient.csproj.nuget.g.targets.
  Restore completed in 10.08 sec for C:\Snapshot\cryptean\bitcoinlib\demo\DemoClient.csproj.
  BitcoinLib -> C:\Snapshot\cryptean\bitcoinlib\src\BitcoinLib\bin\Debug\netstandard2.0\BitcoinLib.dll
  DemoClient -> C:\Snapshot\cryptean\bitcoinlib\demo\bin\Debug\netcoreapp2.0\ConsoleClient.dll

Build succeeded.
    0 Warning(s)
    0 Error(s)

Time Elapsed 00:00:13.11

@moodmosaic moodmosaic merged commit ccfeb54 into master Aug 28, 2018
@moodmosaic moodmosaic deleted the topic/dotnet branch August 28, 2018 18:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant