Closed danmoser closed 2 years ago
Hi @danmoser , this is now a .NET 5.0 project. Try to build it using dotnet tools with .NET 5 SDK installed.
e.g. dotnet build "ModelCompiler Solution.sln"
Hi @mregen , thanks for the reply. With .NET 5 SDK installed, I got the following errors
Copyright (C) Microsoft Corporation. All rights reserved.
Determining projects to restore...
Restored /home/root/UA-ModelCompiler/Tests/DemoModel/DemoModel.csproj (in 11.4 sec).
Restored /home/root/UA-ModelCompiler/Opc.Ua.ModelCompiler/Opc.Ua.ModelCompiler.csproj (in 11.4 sec).
/home/root/UA-ModelCompiler/Opc.Ua.ModelCompiler/NodeDocumentationReader.cs(5,7): error CS0246: The type or namespace name 'CsvHelper' could not be found (are you missing a using directive or an assembly reference?) [/home/root/UA-ModelCompiler/Opc.Ua.ModelCompiler/Opc.Ua.ModelCompiler.csproj]
/home/root/UA-ModelCompiler/Opc.Ua.ModelCompiler/NodeDocumentationReader.cs(7,7): error CS0246: The type or namespace name 'CsvHelper' could not be found (are you missing a using directive or an assembly reference?) [/home/root/UA-ModelCompiler/Opc.Ua.ModelCompiler/Opc.Ua.ModelCompiler.csproj]
/home/root/UA-ModelCompiler/Opc.Ua.ModelCompiler/NodeDocumentationReader.cs(8,7): error CS0246: The type or namespace name 'CsvHelper' could not be found (are you missing a using directive or an assembly reference?) [/home/root/UA-ModelCompiler/Opc.Ua.ModelCompiler/Opc.Ua.ModelCompiler.csproj]
(...)
/home/root/UA-ModelCompiler/Opc.Ua.ModelCompiler/NodeDocumentationReader.cs(76,48): error CS0246: The type or namespace name 'ClassMap<>' could not be found (are you missing a using directive or an assembly reference?) [/home/root/UA-ModelCompiler/Opc.Ua.ModelCompiler/Opc.Ua.ModelCompiler.csproj]
0 Warning(s)
18 Error(s)
You need to restore NuGet packages.
Pushed an update with the correct NuGets linked.
Thanks @opcfoundation-org . Now the command dotnet build "ModelCompiler Solution.sln"
worked successfully.
I am getting the following error when running
msbuild "ModelCompiler Solution.sln" /p:TargetFrameworkVersion="v4.5"
Any ideas?