Source file not found in ComponentPorts example

Hello,
I am trying to run the ComponentPorts example from the CppExamples git repo. https://github.com/PLCnext/CppExamples/blob/master/Examples/ComponentPorts/src/ComponentWithPorts.hpp I copied over the files in the src folder from the repo to my acf project. I then got the following compile errors. Not sure where I can find the source files mentioned below.

Based on the contents of the source files, that project is based on a PLM project, not an ACF project.
This worked for me on the command line - in Visual Studio it should be similar:

$ plcncli new project --name ComponentPorts --component ComponentWithPorts --program MyProgram --namespace ComponentPorts
$ cd ComponentPorts
(copy the source files from the src folder in the Github repository to the src folder in this new project, replacing all files with the same name)
$ plcncli set target --name AXCF2152 --add
$ plcncli generate code
$ plcncli generate config
$ plcncli build

Thanks for the info, I saw the line “using namespace Arp::System::Acf;” and thought it was a ACF project. However, the PLM projects also use this namespace. Will make sure to check the project type on the examples. Out of curiosity is it possible to use ports in an ACF projects and is it similar to how it is setup in a PLM project.

is it possible to use ports in an ACF projects and is it similar to how it is setup in a PLM project.Yes, component ports can be used in ACF components in the same way as for PLM components.