Share via


How do I include all external dependencies in a Visual Studio project?

Question

Monday, August 3, 2015 11:27 PM

In Visual Studio 2010, I am trying to perform static analysis on a solution using a third party tool, however, the tool does not include any files in the "External Dependencies" directories. Is there a quick way to "include in project" all the external dependencies (which could be around a thousand files)? I tried selecting all the external dependencies and right-clicking to "Include in Project" but with hundreds of files, Visual Studio just hung. Is there another way to have the solution include all these external dependencies?

Thank you in advance.

-DS

All replies (7)

Wednesday, August 19, 2015 8:36 AM âś…Answered

Hi DS,

Thanks for your reply.

Please refer the following blog to understand this Visual Studio 2013 Static Code Analysis, you will get more useful message about it.

Reference:

http://blogs.msdn.com/b/hkamel/archive/2013/10/24/visual-studio-2013-static-code-analysis-in-depth-what-when-and-how.aspx

Best Regards,

We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.


Tuesday, August 4, 2015 12:22 AM

Hi Dominique,

Thank you for the post.

If your dependencies are in the forms of libraries or dll files, would be easy to reference in your project. It is difficult to understand what type of dependencies are they (files..?), are all they related to your project.

If they are source code files, try to add them to a library and then add reference to the library in your project.

Hope this will help.


Tuesday, August 4, 2015 4:02 PM

Yes, they are source code files (.h, .cpp., .cxx). There are actually several thousand files. What would be the quickest way to add these to a library?


Wednesday, August 5, 2015 8:15 AM

Hi DS,

Thank you for posting in MSDN forum.

Since this forum is discuss Visual Studio WPF/SL Designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System, and Visual Studio Editor.

However, as you said about selecting all the external dependencies and right-clicking to "Include in Project" issue, since you use a third-party tool for it. So I suggest you'd better consult this issue to the third-party tool official site would be better.

Thanks for your understanding!

Best Regards,

We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.


Monday, August 17, 2015 11:30 PM

Actually, I'm trying to prep my Visual Studio solution in order to use the third-party tool, so I am still looking for a way to include all my external dependencies into my Visual Studio project. The right-click to "Include in Project" is already a Visual Studio feature, I'm just having trouble including a large number of files into the project.


Tuesday, August 18, 2015 6:29 AM

Hi DS,

Thanks for your reply.

To check if this third-party tool impact including a large number of files into the project so that the Visual Studio hung, I suggest you could try to un-install this third-party tool and then select all of your external dependencies, then right-click to "Include in Project" check this issue.

In addition, I suggest you could refer the following document to perform static analysis on a solution using Code Analysis.

https://msdn.microsoft.com/en-us/library/ms182025(v=vs.100).aspx

Best Regards,

We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.


Tuesday, August 18, 2015 5:37 PM

Thanks - do you know if this Code Analysis tool performs flow-based static analysis as well?