Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9136837
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T09:00:26+00:00 2026-06-17T09:00:26+00:00

I have been working with a Visual Studio Addin project for a while. The

  • 0

I have been working with a Visual Studio Addin project for a while. The purpose of this addin is to tell me which Store Procedures are used where in my many projects.

I achive this by loading all my projects including The Business and DataAccess projects into one solution and then using EnvDTE to traverse the projects of the solution to get the specific codeitems.

This way I can Identify the methods calling the various Stored Procedures, and it works just great.

Then to identify which methods are calling the various methods in my DataAccess project, I use reflection to load the Assembly for each project :

foreach (EnvDTE.Project proj in this._solution.Projects) {
    assembly = System.Reflection.Assembly.LoadFrom(GetAssemblyPath(proj));
}

private string GetAssemblyPath(EnvDTE.Project vsProject)
{
    string assemblyPath = "";
    string fullPath = vsProject.Properties.Item("FullPath").Value.ToString();
    string outputPath = vsProject.ConfigurationManager.ActiveConfiguration.Properties.Item("OutputPath").Value.ToString();
    string outputDir = System.IO.Path.Combine(fullPath, outputPath);
    string outputFileName = vsProject.Properties.Item("OutputFileName").Value.ToString();
    assemblyPath = System.IO.Path.Combine(outputDir, outputFileName);

    return assemblyPath;
}

This system works just great for most projects, but now I have ran into a problem, and I can’t get around it ….

Is it possible to use this sort of reflection assembly loading for a WebSite project. It fails on:

vsProject.ConfigurationManager.ActiveConfiguration.Properties.Item("OutputPath")

Since the WebSite does not have an output path the same way as dll og WinForms projects has…

I need to use reflection since it is not possible to identify calls to overloaded methods using EvnDTE on its own. With reflection I can get the instructions of a method body thereby identifying which overloaded method is being called.

EnvDTE works fine in WebSite projects, but reflection unfortunaltely does not. 🙁

By using EnvDTE I am only able to get the text content of a method.

Does anyone know what to do to get this working?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T09:00:27+00:00Added an answer on June 17, 2026 at 9:00 am

    It was failing because a WebSite project does not create an output assembly dll that is accessible and contains all info. This is instead created on the fly by the webserver.

    I could not get around it and my solution was to simply convert my WebSite projects to WebApplication projects.

    These are actual normal projects and have a precompiled Assembly dll that I can access.

    Thanks for your comments…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have a database project in Visual Studio 2008 that has been working great.
I have been using Visual Studio for a project I am working on, though
I have been working with Visual Studio (WinForm and ASP.NET applications using mostly C#)
I have been working on getting a basic ATL project to compile in Visual
Recently we started working with Database project in Visual Studio 2010. I have added
I have been working with Qt and Visual Studios 2008 for a while now.
I have a project I've been working on for quite a while, and I've
I have been working with Visual Studio pre build events and I find the
I have been working with reporting services in visual studio 2008 lately and I
I have been working on Visual Studio 2005 since last couple of days. Till

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.