简体   繁体   中英

References c# visual Studio

I have been working on this project in Visual Studio 2010 using C# a few days before Windows 10 update and it worked fine but now when I try to run the program and it tells me the following :

The type or name of the 'Drawing' namespace does not exist in the 'Tekla.Structures' namespace (missing an assembly reference?)

and the same for Tekla.Structures.Model , Tekla.Structures.Model.Operations ... as you can see in the following image:

使用错误

What I am doing is removing the references and adding them again and in this way the program recognizes it well, but if I clean the solution and try to generate the solution again, the problem arises again ...

What could be the problem?

It seems that you want to use Tekla reference correctly.

I suggest that you can use NugetPackage.

First, right click->References->choose Manage Nuget packages.

Second, choose the Browse->input 'TeklaOpenAPI' in textbox and choose the first.

Third, click install.

Finally after it has been installed, you will see the following correct using code without warning.

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM