Hi,

Are the following references required for VS 2008 users as well? Or only required for VB 2005 Express Edition users?

Please do help.

Dani AI

Generated

As raised and began to answer, the practical question is less "which IDE version needs which DLLs" and more "how do I safely tell whether a reference is required and remove the ones I do not need." The short, safe workflow below makes that determination repeatable and low risk.

  1. Search for usage: search solution-wide for the namespace or type names offered by the assembly (right‑click type → Find All References or use a text search). If nothing references it, it is likely unused at compile-time.
  2. Inspect the reference: view Properties (Path, Version, Copy Local / Private, Specific Version). Copy Local true will cause that DLL to be placed in bin/output even if not used.
  3. Remove-and-build test: remove a single reference, rebuild the project, and observe compile errors. If compilation fails, the reference was needed. If it builds, run the app and the automated/manual tests.
  4. Watch for runtime failures: missing assemblies, TypeLoadException, or MissingMethodException indicate runtime or transitive dependency problems. Use Fusion Log Viewer (fuslogvw) to inspect binding failures if needed.
  5. Check transitive dependencies and designer usage: an assembly might be required because another referenced DLL depends on it, or because the Windows Forms/Designer generated code uses it even if you do not. Inspect the dependency graph with ILSpy/dotPeek or similar tools.
  6. Rollback safety: do removals one at a time under source control so you can revert quickly if something breaks.

Common cautions: web-site projects, the VB "My" infrastructure, and designer-generated code sometimes require references that are not obvious from your source files. Tools such as ReSharper or other analyzers can help clean up truly unused references automatically. Removing unused references reduces deployment size and lowers the risk of version conflicts, but always validate with a full build and tests before committing the change.

Recommended Answers

All 3 Replies

References of these DLL are added when you select a project template other than Empty project.

>Are the following references required for VS 2008 users as well

Depends upon the usage of classes.

Suppose if I create references unknowingly whether it requires or not but actually it doesn't require .... then will it make any problem/error for me.

Thanks.

Suppose if I create references unknowingly whether it requires or not but actually it doesn't require .... then will it make any problem/error for me.

Thanks.

It won't create a problem. C# compiler—ignores assemblies which are not actually used by the application.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.