Issue on running the HelloWorld program

Issue on running the HelloWorld program

wingfaimanJN5SK
Enthusiast Enthusiast
836 Views
5 Replies
Message 1 of 6

Issue on running the HelloWorld program

wingfaimanJN5SK
Enthusiast
Enthusiast

Dear ,

 

I try to run the program under

C:\Program Files\Autodesk\Autodesk Vault 2022 SDK\VS19\CSharp\HelloWorld

by using Microsoft Visual Studio 2019

When I try to Build>Rebuild Solution, the error shown:

C:\Program Files\Autodesk\Autodesk Vault 2022 SDK\VS19\CSharp\HelloWorld\HelloWorld\HelloWorldCommandExtension.cs(32,12,32,20): error CS0246: The type or namespace name 'Autodesk' could not be found (are you missing a using directive or an assembly reference?)

0 Likes
Accepted solutions (1)
837 Views
5 Replies
Replies (5)
Message 2 of 6

wingfaimanJN5SK
Enthusiast
Enthusiast

Hi, Any one can tell me ? thanks

0 Likes
Message 3 of 6

Boorda
Advocate
Advocate

I'm not sure that you've provided enough information for anyone to be able to guide you.

  • Do you have multiple versions of Vault installed on your machine?
  • Are you referencing the correct versions of the Autodesk assemblies?

Automation is key!
0 Likes
Message 4 of 6

wingfaimanJN5SK
Enthusiast
Enthusiast

Hi Boorda,

 

Vault Professional 2020, 2021, 2022

 

Runtime Version (v4.0.30319, please see attached)

 

 

0 Likes
Message 5 of 6

Markus.Koechl
Autodesk
Autodesk
Accepted solution

Vault 2022 expects a target framework of 4.7 or higher. The warnings before the error message returned this info.



Markus Koechl

Solutions Engineer PDM, Autodesk Central Europe
Message 6 of 6

wingfaimanJN5SK
Enthusiast
Enthusiast

thanks

0 Likes