Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Ok... here is a tough one. I need my usercontrol to be able to determine the current project directory for the project it is added to.

 

After some searching I have come up with the EnvDTE.... but all attempts to use this in my control have failed. The only real examples I can seem to find are geared towards the Macro Editor.

 

I may be barking up the wrong tree though. I need the project directory, not the application directory.

"Programmers are tools for converting caffeine into code."

 

Madcow Inventions -- Software for the Sanity Challenged.

Posted
I think you can just use Application.AppPath
or application.startuppath

Those only work at runtime, and only on the executables compile directory. I want somthing that will be used at designtime in a control dropped on the form before a compile is done on the application. Using either of those suggestions would take you to the directory of the VS.NET executable. (In other words I had already tried that. LOL)

 

I need something that will take me to the top level of the project directory for the project the control has been added to.

"Programmers are tools for converting caffeine into code."

 

Madcow Inventions -- Software for the Sanity Challenged.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...