PLCnext / PLCnext_CLI

The PLCnext CLI is our tool for programming in high level languages for the PLCnext Technology ecosystem. Build an up-to-date version of the PLCnext CLI that includes the very latest bug fixes, or even build your own customised version. Test the newest features or contribute your ideas.
Apache License 2.0
10 stars 3 forks source link

Missing assembly references when building #19

Open martinboers opened 1 year ago

martinboers commented 1 year ago

When attempting to build the CLI from source using .NET 7.0, the command dotnet build src -p:PlcNextToolName=plcncli results in the following error:

m@len:~/Projects/PLCnext_CLI$ dotnet build src -p:PlcNextToolName=plcncli
MSBuild version 17.4.0+18d5aef85 for .NET
  Determining projects to restore...
  All projects are up-to-date for restore.
  PlcNext.Common -> /home/m/Projects/PLCnext_CLI/src/PlcNext.Common/bin/Debug/netstandard2.0/plcncli.Common.dll
  PlcNext.CppParser -> /home/m/Projects/PLCnext_CLI/src/PlcNext.CppParser/bin/Debug/netstandard2.0/plcncli.CppParser.dll
/home/m/Projects/PLCnext_CLI/src/PlcNext/BaseUpdateDiModule.cs(11,15): error CS0234: The type or namespace name 'CliNamedPipeMediator' does not exist in the namespace 'PlcNext' (are you missing an assembly reference?) [/home/m/Projects/PLCnext_CLI/src/PlcNext/PlcNext.csproj]
/home/m/Projects/PLCnext_CLI/src/PlcNext/BaseUpdateDiModule.cs(12,15): error CS0234: The type or namespace name 'NamedPipeServer' does not exist in the namespace 'PlcNext' (are you missing an assembly reference?) [/home/m/Projects/PLCnext_CLI/src/PlcNext/PlcNext.csproj]
/home/m/Projects/PLCnext_CLI/src/PlcNext/NamedPipeServerFeature.cs(13,7): error CS0246: The type or namespace name 'FeatureToggle' could not be found (are you missing a using directive or an assembly reference?) [/home/m/Projects/PLCnext_CLI/src/PlcNext/PlcNext.csproj]
/home/m/Projects/PLCnext_CLI/src/PlcNext/UpdateDiModule.cs(11,15): error CS0234: The type or namespace name 'NamedPipeServer' does not exist in the namespace 'PlcNext' (are you missing an assembly reference?) [/home/m/Projects/PLCnext_CLI/src/PlcNext/PlcNext.csproj]
/home/m/Projects/PLCnext_CLI/src/PlcNext/NamedPipeServerFeature.cs(17,43): error CS0246: The type or namespace name 'SimpleFeatureToggle' could not be found (are you missing a using directive or an assembly reference?) [/home/m/Projects/PLCnext_CLI/src/PlcNext/PlcNext.csproj]

Build FAILED.

I can see that there are missing assembly references, but I don't know what step(s) I need to take to restore these missing references.

Any ideas?

mluhmann commented 9 months ago

Ticket no. 4700 Fixed with release 2024.0.