Forum Discussion

AlBer's avatar
AlBer
Creator I
7 years ago

Unable to build project in Visual Studio

Hello,

We have created a project with template v12.0 in Visual Studio 2019.

- We have created a new method from Visual Studio and we got 11 errors :

- Then we created a method on Aras, and then did "Aras Innovator > Open method from Aras Innovator" which worked. We now have the method in Visual Studio, we can edit it and save it to Aras.

- Yet, the method that come from Aras doesn't build also.

The errors we get are :

1>C:\Users\0berali\source\repos\A12_CPQPOP\Aras12CPQ\ServerMethods\CPQProjectCost\Import\Method\CPQProjetCost\CPQProjetCost.cs(1,7,1,11): error CS0246: The type or namespace name 'Aras' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\0berali\source\repos\A12_CPQPOP\Aras12CPQ\ServerMethods\CPQProjectCost\Import\Method\CPQProjetCost\CPQProjetCostWrapper.cs(1,7,1,11): error CS0246: The type or namespace name 'Aras' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\0berali\source\repos\A12_CPQPOP\Aras12CPQ\ServerMethods\CPQProjectCost\Import\Method\CPQProjetCost\CPQProjetCostWrapper.cs(17,39,17,43): error CS0246: The type or namespace name 'Item' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\0berali\source\repos\A12_CPQPOP\Aras12CPQ\ServerMethods\CPQProjectCost\Import\Method\CPQProjetCost\CPQProjetCostWrapper.cs(24,41,24,45): error CS0246: The type or namespace name 'Aras' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\0berali\source\repos\A12_CPQPOP\Aras12CPQ\ServerMethods\CPQProjectCost\Import\Method\CPQProjetCost\CPQProjetCost.cs(27,16,27,20): error CS0246: The type or namespace name 'Item' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\0berali\source\repos\A12_CPQPOP\Aras12CPQ\ServerMethods\CPQProjectCost\Import\Method\CPQProjetCost\CPQProjetCostWrapper.cs(29,31,29,48): error CS0246: The type or namespace name 'IServerConnection' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\0berali\source\repos\A12_CPQPOP\Aras12CPQ\ServerMethods\CPQProjectCost\Import\Method\CPQProjetCost\CPQProjetCostWrapper.cs(19,27,19,44): error CS0246: The type or namespace name 'IServerConnection' could not be found (are you missing a using directive or an assembly reference?)

Some help would be appreciated, we have been looking for it and couldn't find it.

Best Regards,

Al Ber

2 Replies

  • Suhas's avatar
    Suhas
    Creator III

    Hello Al Ber,

    In your visual studio project some dll are missing. Include IoM.dll, InnovatorCore.dll in you project. 

    Again including dll  is depending on which Aras version you are using.

    Regards,

    Suhas

  • I'm no help, but where exactly did you find the navigation item: Aras Innovator, in Visual Studio 2019? I've the method plugin and am trying to connect things as well. I don't see these navigation options you mention.
    I'm currently uninstalling and reinstalling the plugin for other reasons.