locked
Compilation : using Systen.Net.Socket, system.net.primitives not found RRS feed

  • Question

  • Hi,

    I use the prerelease protable library, create by microsoft,"System.Net.Socket" from nuget. (https://www.nuget.org/packages/System.Net.Sockets/).

    When i try to use it, i go a compilation error on the TcpClient.ConnectAsync method.

    I pass string argument to this one but one of the definition use an IPAddress structure and it seem that MSBUILD didn't succeed to found the System.Net.Primitives dll where the IPAddress seem to be locate.

    error CS7069: Reference to type 'IPAddress' claims it is defined in 'System.Net.Primitives', but it could not be found.

    The nuget package is correctly installed and configured.

    When i change the CSPROJ to add the reference manually MSBUILD raised an error about the dll "System.Net.Primitives" that exist twice during the compilation process.

    Someone had a solution ?

    Someone know if there is a way to report this bug or to contact people that could solve the situation ?

    Thanks

    Monday, June 15, 2015 3:26 PM

Answers

  • Hello Thumerel mickael,

    >> Which nuget command to you talk about ?

    It is also a nuget command similar with the one in the link you provided:

    https://www.nuget.org/packages/System.Net.Primitives/

    Regards.


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    • Proposed as answer by Fred Bao Tuesday, June 23, 2015 5:26 AM
    • Marked as answer by Fred Bao Wednesday, June 24, 2015 8:01 AM
    Wednesday, June 17, 2015 7:00 AM

All replies

  • Hello Thumerel mickael,

    >>When i change the CSPROJ to add the reference manually MSBUILD raised an error about the dll "System.Net.Primitives" that exist twice during the compilation process.

    As I see that System.Net.Primitives also comes from nuget, I suggest you could also reference it by using the nuget command.

    >>Someone had a solution ? Someone know if there is a way to report this bug or to contact people that could solve the situation ?

    Since both of these dlls are prerelease, I suggest to use it when they are released officially. Or you could go to the contact page I provided in your another thread to submit this scenario to the owners of these libraries.

    Regards.


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Tuesday, June 16, 2015 3:09 AM
  • I sent a message 2 weeks ago and i post there because i don't have any answer.

    I had hoped that there is another solution than waiting that Microsoft release the library.

    Which nuget command to you talk about ?

    Tuesday, June 16, 2015 8:39 AM
  • Hello Thumerel mickael,

    >> Which nuget command to you talk about ?

    It is also a nuget command similar with the one in the link you provided:

    https://www.nuget.org/packages/System.Net.Primitives/

    Regards.


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    • Proposed as answer by Fred Bao Tuesday, June 23, 2015 5:26 AM
    • Marked as answer by Fred Bao Wednesday, June 24, 2015 8:01 AM
    Wednesday, June 17, 2015 7:00 AM