Announcement

Collapse
No announcement yet.

Type or namespace name "Autodesk" could not be found(Problem at SDK sample compiling)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Type or namespace name "Autodesk" could not be found(Problem at SDK sample compiling)

    Hallo, everyone, I am Nan

    I have downloaded REVIT_2019_SDK.msi from https://www.autodesk.com/developer-n...nologies/revit

    After successfully downloading and installing SDK 2019, I tried to compile the samples in the SDK files(See figure 2).

    C:\Revit 2019 SDK\Samples\AllViews\CSz\AllViews.csproj

    The version of my visual studio is 2017. I have installed both .Net framework 4.7 and .Net framework 4.7.1

    The way I installed .Net framework 4.7 and .Net framework 4.7.1 were as follows:

    1: NDP47-DevPack-KB3186612-ENU.exe (see figure 9) for .Net framework 4.7

    2: NDP47-KB3186497-x86-x64-AllOS-ENU.exe (see figure 9) for .Net framework 4.7

    3: NDP471-DevPack-ENU.exe for .Net framework 4.7.1

    4: NDP471-KB4033344-Web.exe for .Net framework 4.7.1, it doesn't work, it says it is because .Net framework 4.7 is already installed




    Ok, after the pre-work, I clicked "build solution ", a lot of errors happened as the main error is (see figure 5 and 6),



    Error CS0246 The type or namespace name 'Autodesk' could not be found (are you missing a using directive or an assembly reference?) ExternalResourceDBServer C:\Revit 2019 SDK\Samples\ExternalResourceServer\ExternalResourc eDBServer\CS\Application.cs 29



    I have tried the .Net framework 4.7 (figure 7) and there is no problem in reference (figure 8)

    I do not know where is the problem. Can anyone help me about this?


    Thank you very much in advance!

    Best wishes

    Nan Zhu
    Attached Files

Related Topics

Collapse

Working...
X