These are chat archives for Nethereum/Nethereum

28th
Jul 2017
Daniel Figueiredo
@danielduartefig_twitter
Jul 28 2017 10:26
Hi everyone
I am trying to create an example project in .NET Core
just for a proof of concept
I am trying to restore the Nethereum packages from nuget
Juan Blanco
@juanfranblanco
Jul 28 2017 10:27
yep
Daniel Figueiredo
@danielduartefig_twitter
Jul 28 2017 10:28
I was able to install almost all of them, but when I try to install Nethereum.JsonRpc.IpcClient I get "Package restore failed. Rolling back package changes for 'DotNetPoc'"
Class library project, target framework .NETCoreApp 1.1
image.png
this is how the dependencies for my project look like
VS Community 2017 version 15.2
I was trying to get started following the steps in this post: https://koukia.ca/deploy-ethereum-smart-contracts-using-c-and-visualstudio-5be188ae928c
but without JsonRpc.IpcClient I can't continue
Juan Blanco
@juanfranblanco
Jul 28 2017 10:33
you just RPC
why are you adding everything?
just add a package reference to Web3 or Geth
Daniel Figueiredo
@danielduartefig_twitter
Jul 28 2017 10:34
I just wanted to explore everything hehe
Juan Blanco
@juanfranblanco
Jul 28 2017 10:34
that will take care of the rest
Daniel Figueiredo
@danielduartefig_twitter
Jul 28 2017 10:34
thanks, I will try
Juan Blanco
@juanfranblanco
Jul 28 2017 10:34
.net core / standard
resolves everything for you
so for example Geth depends on Web3
so it gets pull down to and add it as a reference
Web3 just wraps everthing for simplicity
so you get the KeyStore, Contracts, well everything
IPC is windows specific
so you need to use net451
Daniel Figueiredo
@danielduartefig_twitter
Jul 28 2017 10:36
oh, I see
thanks a lot Juan
I will start again and add just Web3
nice work by the way
Juan Blanco
@juanfranblanco
Jul 28 2017 10:37
from the same tutorial
instead of using IPC
just pass the rpc url
Daniel Figueiredo
@danielduartefig_twitter
Jul 28 2017 10:38
yeah
got it
Juan Blanco
@juanfranblanco
Jul 28 2017 10:39
also check the accounts as it takes care of your ManagedAccount (ie connecting to your local geth / parity) or Account using private keys connecting to anything
Daniel Figueiredo
@danielduartefig_twitter
Jul 28 2017 10:44
thanks again
kai
@kaista82_twitter
Jul 28 2017 12:51
anyone else having trouble updating to rc6.1 via nuget? it seems to think it's still on rc5 except the ABI project
Juan Blanco
@juanfranblanco
Jul 28 2017 14:12
just put rc6.1 on your project file and do a restore
i might need to do an rc6-2
kai
@kaista82_twitter
Jul 28 2017 14:14
do you mean packages file or actual project file
Juan Blanco
@juanfranblanco
Jul 28 2017 14:15
project file
are you using the new project file ?
obviously that helps
kai
@kaista82_twitter
Jul 28 2017 14:16
i just have a csproj file
Juan Blanco
@juanfranblanco
Jul 28 2017 14:16
ok open it
edit
right click
kai
@kaista82_twitter
Jul 28 2017 14:16
yeah done
just trying that now
Juan Blanco
@juanfranblanco
Jul 28 2017 14:16
cool
then save rebuilt
i normally as i have installed the .net cli
i do a restore and build on the cli
as i target so many frameworks visual studio goes a bit funny
kai
@kaista82_twitter
Jul 28 2017 14:18
nuget restore?
I changed it in the project, but it references the packages file I think
Juan Blanco
@juanfranblanco
Jul 28 2017 14:18
no dotnet restore
if it is the new file format it won't
kai
@kaista82_twitter
Jul 28 2017 14:18
running...
Juan Blanco
@juanfranblanco
Jul 28 2017 14:19
your packages are in the project file
kai
@kaista82_twitter
Jul 28 2017 14:19
they are in packages.config + csproj file
Juan Blanco
@juanfranblanco
Jul 28 2017 14:19
ah then you are using a different combination
are targetting portable?
kai
@kaista82_twitter
Jul 28 2017 14:19
if i do it in pakages
no just wpf on this one
Juan Blanco
@juanfranblanco
Jul 28 2017 14:19
ah then yeah
kai
@kaista82_twitter
Jul 28 2017 14:20
if i change to rc6-2
in packages it auto tries to restore and complains of RLP
Juan Blanco
@juanfranblanco
Jul 28 2017 14:20
oh.. don't try that
kai
@kaista82_twitter
Jul 28 2017 14:20
yeah i reverted
Juan Blanco
@juanfranblanco
Jul 28 2017 14:20
i need to create and relase it first
kai
@kaista82_twitter
Jul 28 2017 14:20
now i have changed csproj to rc6-2 then dotnet restore is processing now
Juan Blanco
@juanfranblanco
Jul 28 2017 14:21
well that does not exists
kai
@kaista82_twitter
Jul 28 2017 14:21
oh
Juan Blanco
@juanfranblanco
Jul 28 2017 14:21
so it might fail and then later you can do the rc6.1
i think the issue is the .1
kai
@kaista82_twitter
Jul 28 2017 14:21
so change rc6-2 to rc6.1
Juan Blanco
@juanfranblanco
Jul 28 2017 14:21
yep
i think is the new indexing mechanism
kai
@kaista82_twitter
Jul 28 2017 14:22
oh dotnet restore is core only
Juan Blanco
@juanfranblanco
Jul 28 2017 14:22
This package is only available for download with Visual Studio 2017 (version 15.3) and above or with NuGet client 4.3.0 and above. Reach out to support if you have more questions.
kai
@kaista82_twitter
Jul 28 2017 14:23
ill check versions and come back to you it may well be due to old nuget
Juan Blanco
@juanfranblanco
Jul 28 2017 14:24
ok i have the same issue on my laptop running 15.1 ill upgrade it now
kai
@kaista82_twitter
Jul 28 2017 14:24
im on 15.1 too
may have been my first bug find for nethereum!
Juan Blanco
@juanfranblanco
Jul 28 2017 14:26
well the release is for 15.3
kai
@kaista82_twitter
Jul 28 2017 14:26
yeah true lol
Juan Blanco
@juanfranblanco
Jul 28 2017 14:26
as i built with cli using the command line
but 15.3 is the preview version
Juan Blanco
@juanfranblanco
Jul 28 2017 14:40
and the cli built is necessary due to a bug in nuget
ill try to figure out a solution
kai
@kaista82_twitter
Jul 28 2017 14:40
ok i think i have the right version upgrading now
Juan Blanco
@juanfranblanco
Jul 28 2017 14:41
ok but it is the "preview"
kai
@kaista82_twitter
Jul 28 2017 14:41
yes I went to the preview download page but it mentioned 15.2 im hoping I got it right after with 15.3
Juan Blanco
@juanfranblanco
Jul 28 2017 14:42
yes it is only the 15.3
other options is using nuget 4.3
and the console for now
kai
@kaista82_twitter
Jul 28 2017 14:42
oh
i didnt realise I would have done that
if this fails and is 15.2 I will do the nuget version
or method
Juan Blanco
@juanfranblanco
Jul 28 2017 14:43
k