Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / Design Time / April 2006

Tip: Looking for answers? Try searching our database.

Retrieving project location at designtime

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Thomas Due - 20 Mar 2006 09:36 GMT
I am currently designing an extender which needs to save a file in the
project location. Any ideas on how I retrieve the project location at
designtime from a component?

Signature

Thomas Due
Posted with XanaNews version 1.18.1.0

"There is always some madness in love. But there is also always some
reason in madness."
-- Friedrich Nietzsche

InK_ - 29 Mar 2006 15:27 GMT
Hi

try something like this:

EnvDTE.ProjectItem item =
(EnvDTE.ProjectItem)this.Site.GetService(typeof(EnvDTE.ProjectItem));

string path =
(string)((System.Array)item.DTE.Solution.SolutionBuild.StartupProjects).GetV
alue(0);

It will need also some processing...

Signature

Regards,
Inna Stetsyak aka InK_

> I am currently designing an extender which needs to save a file in the
> project location. Any ideas on how I retrieve the project location at
> designtime from a component?
Thomas Due - 03 Apr 2006 09:30 GMT
>Hi
>
[quoted text clipped - 8 lines]
>
>It will need also some processing...

Wouldn't that require that the provider assembly references the EnvDTE
assembly (a designtime assembly) which in turn is referenced by the
project?

In others word won't I have a reference to a designtime assembly which
will carry over into runtime.

Is it possible to get the project name at design time without
referencing assemblies that will carry over into runtime?

It is not difficult to get the project name(assembly name) at runtime,
but I find it difficult getting it at designtime.

Signature

Thomas Due
Posted with XanaNews version 1.18.1.2

"I never give them hell. I just tell the truth and they think it's
hell."
-- Harry S. Truman


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.