Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Dec 16, 2012 02:41 PM by cts-mgraham
Participant
1395 Points
776 Posts
Dec 03, 2012 05:13 AM|LINK
I have used EnvDTE80.Solution for creating the solution folder in the existing solution.
While adding the files to these solution folder by c# codeing, the files get opened automatically.
solutionFolder.ProjectItems.AddFromFile("filePath");
I dont want to open such files.. how to suppress that.
I need simply to add files to that folder.. how to do it..
Thanks in advance
All-Star
20277 Points
1726 Posts
Microsoft
Dec 10, 2012 02:04 AM|LINK
Hi
You could try SolutionFolder Interface and SolutionFolder Methods below, and check whether helpful to you,
SolutionFolder Interface
http://msdn.microsoft.com/en-us/library/envdte80.solutionfolder.aspx
SolutionFolder Methods
http://msdn.microsoft.com/en-us/library/envdte80.solutionfolder_methods.aspx
Kind regards
Dec 10, 2012 03:10 AM|LINK
Thanks for the reply,
I am using Solution folder interface and methods only.
I have created the solution folder and i am able to add the files and projects to it.
But my need is different, i will make it clear.
I to add the items(i.e .txt, .xml, .zip) files to that solution folder.
So that also i can able to do it. But whats happening is, once the item get added to that solution folder, the file get opened.
So i dont want to opent he file, simply i need to add.
Dec 10, 2012 04:08 AM|LINK
Hi shree_ars
I think you could try compress items(i.e .txt, .xml, .zip) files into a .zip file first, and then add this .zip to the solution.
Please have a try whether this is available for you.
Dec 10, 2012 06:27 AM|LINK
ya.. i tried on .zip files too.
whats happening is.. on adding .zip file to solution folder, the .zip file get opened in windows explorer.. thats a unwanted thing.
i need to suppress this windows explorer.
Contributor
3318 Points
642 Posts
Dec 16, 2012 02:41 PM|LINK
This would really be a question for the Visual Studio Extensibility forum . I'm afraid I don't know the reason and can't move the thread. Can you repost your question there?
shree_ars
Participant
1395 Points
776 Posts
Adding files to EnvDTE80.solution
Dec 03, 2012 05:13 AM|LINK
I have used EnvDTE80.Solution for creating the solution folder in the existing solution.
While adding the files to these solution folder by c# codeing, the files get opened automatically.
solutionFolder.ProjectItems.AddFromFile("filePath");
I dont want to open such files.. how to suppress that.
I need simply to add files to that folder.. how to do it..
Thanks in advance
Angie xu - M...
All-Star
20277 Points
1726 Posts
Microsoft
Re: Adding files to EnvDTE80.solution
Dec 10, 2012 02:04 AM|LINK
Hi
You could try SolutionFolder Interface and SolutionFolder Methods below, and check whether helpful to you,
SolutionFolder Interface
http://msdn.microsoft.com/en-us/library/envdte80.solutionfolder.aspx
SolutionFolder Methods
http://msdn.microsoft.com/en-us/library/envdte80.solutionfolder_methods.aspx
Kind regards
Feedback to us
Develop and promote your apps in Windows Store
shree_ars
Participant
1395 Points
776 Posts
Re: Adding files to EnvDTE80.solution
Dec 10, 2012 03:10 AM|LINK
Thanks for the reply,
I am using Solution folder interface and methods only.
I have created the solution folder and i am able to add the files and projects to it.
But my need is different, i will make it clear.
I to add the items(i.e .txt, .xml, .zip) files to that solution folder.
So that also i can able to do it. But whats happening is, once the item get added to that solution folder, the file get opened.
So i dont want to opent he file, simply i need to add.
Angie xu - M...
All-Star
20277 Points
1726 Posts
Microsoft
Re: Adding files to EnvDTE80.solution
Dec 10, 2012 04:08 AM|LINK
Hi shree_ars
I think you could try compress items(i.e .txt, .xml, .zip) files into a .zip file first, and then add this .zip to the solution.
Please have a try whether this is available for you.
Kind regards
Feedback to us
Develop and promote your apps in Windows Store
shree_ars
Participant
1395 Points
776 Posts
Re: Adding files to EnvDTE80.solution
Dec 10, 2012 06:27 AM|LINK
ya.. i tried on .zip files too.
whats happening is.. on adding .zip file to solution folder, the .zip file get opened in windows explorer.. thats a unwanted thing.
i need to suppress this windows explorer.
cts-mgraham
Contributor
3318 Points
642 Posts
Microsoft
Re: Adding files to EnvDTE80.solution
Dec 16, 2012 02:41 PM|LINK
This would really be a question for the Visual Studio Extensibility forum . I'm afraid I don't know the reason and can't move the thread. Can you repost your question there?