0

I am trying to build the OPC foundation provided SDK by visual studio. I face lots of builds error. I tried VS2013, VS2017 community version, and VS2019 professional version. Does anybody have experience building this SDK?

The source code can be downloaded from Github. https://github.com/OPCFoundation/UA-.NETStandard

Following images show the dot net version and the errors

enter image description here

enter image description here enter image description here

RotatingWheel
  • 1,023
  • 14
  • 27
  • I assume those errors contains sensitive information like directories on your drive, this is why you didn't post even single one as an example, correct? – astrowalker Apr 01 '20 at 06:08

1 Answers1

0

Which solution are you trying to build? As astrowalker indicated can you share the error messages?

This worked for me:

  1. cloned the repository
  2. opened solution "UA Core Library" within VS2019
  3. restore nuget packages
  4. rebuild solution
  5. run all test of project "Opc.Ua.Core.Tests"
koepalex
  • 176
  • 6
  • Thanks, I am using VS2017 community version, I see huge amount of errors, have you done anything with NuGet package manager, I tried to install missing stuff but no luck – RotatingWheel Apr 04 '20 at 15:30
  • Can you Post the error messages? (As best the first ones that appear). – koepalex Apr 04 '20 at 15:36
  • I added screenshot into the original question – RotatingWheel Apr 05 '20 at 08:23
  • The Nuget package "Portable.BouncyCastle" isn't installed, try again right click on the solution "UA Core Library" and than click on "Restore Nuget packages". Before doing it, I would open the "Package Manager Console" and check i there are any errors while installing. – koepalex Apr 05 '20 at 09:56
  • No luck, actually I tried these installing/reinstalling/cleaning Nuget but did not help. I see in these projects there are some yellow warning which did not disappear also. Do you know why I don't see any References folder in those projects? – RotatingWheel Apr 05 '20 at 16:10
  • You have installed .Net Core 2.1-202 which Looks like a preview Version (See [.Net Core 2.1](https://dotnet.microsoft.com/download/dotnet-core/2.1)). Try to install the latest version [.Net Core 2.1-805](https://dotnet.microsoft.com/download/dotnet-core/thank-you/sdk-2.1.805-windows-x64-installer). – koepalex Apr 05 '20 at 17:11
  • Could you show the content of NuGet.Config or could you send it to mrahman252003@gmail.com – RotatingWheel Apr 06 '20 at 17:00
  • Finally, I found a solution! It was here: https://stackoverflow.com/questions/52376567/how-to-resolve-unable-to-find-package-nuget-error The package source was offline !! After adding these to the Nuget package all became fine. Name: nuget.org ( or as you wish) Source: https://api.nuget.org/v3/index.json – RotatingWheel Apr 07 '20 at 17:34