Error while creating Custom Activity using Visual Studio code

hi @RobotUi ,

First thing first Activity creator has been deprecated. Use this

Coming back to your error it could be due to mismatch in .net verison or incorrect import namespace statements

Some Stackoverflow threads you can check.