<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-8942599.post2755467788075971831..comments</id><updated>2009-02-04T10:59:23.321-05:00</updated><category term='AOP'/><category term='Visual Studio'/><category term='Analytics'/><category term='SQL'/><category term='CSS'/><category term='SharePoint'/><category term='rants'/><category term='Windows Services'/><category term='selenium'/><category term='Tips'/><category term='msbuild'/><category term='general'/><category term='opinions'/><category term='windows 7'/><category term='twelve-days-of-code'/><category term='Legacy Projects'/><category term='vegas mix06'/><category term='TDD'/><category term='BDD'/><category term='web 2.0'/><category term='Software Design'/><category term='FxCop'/><category term='selenium toolkit'/><category term='log4net'/><category term='.net'/><category term='fun'/><category term='guided by tests'/><category term='blogging'/><category term='cool tech'/><category term='unity'/><title type='text'>Comments on the urban canuk, eh: Automate Visual Studio from external tools</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.bryancook.net/feeds/2755467788075971831/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8942599/2755467788075971831/comments/default'/><link rel='alternate' type='text/html' href='http://www.bryancook.net/2008/07/automate-visual-studio-from-external.html'/><author><name>bryan</name><uri>http://www.blogger.com/profile/01332614158223702009</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>2</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8942599.post-3539521278918330813</id><published>2009-02-04T10:59:00.000-05:00</published><updated>2009-02-04T10:59:00.000-05:00</updated><title type='text'>Solution files can't be compiled, so they support ...</title><content type='html'>Solution files can't be compiled, so they support code files.  All code elements must be added to a Project.&lt;BR/&gt;&lt;BR/&gt;What you want to achieve is adding a ProjectItem to the ProjectItems collection on the Project.&lt;BR/&gt;&lt;BR/&gt;&lt;I&gt;project.ProjectItems.Add(...)&lt;/I&gt;&lt;BR/&gt;&lt;BR/&gt;More info about the Visual Studio object model&lt;BR/&gt;&lt;A HREF="http://www.mztools.com/articles/2006/MZ2006004.aspx" REL="nofollow"&gt;can be found here&lt;/A&gt;.&lt;BR/&gt;&lt;BR/&gt;Most code samples out there will refer to the context of building an Addin or Macro, which reside within Visual Studio.  Those code samples can be ported to this scenario where the &lt;I&gt;DTE&lt;/I&gt; object is the Visual Studio instance.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8942599/2755467788075971831/comments/default/3539521278918330813'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8942599/2755467788075971831/comments/default/3539521278918330813'/><link rel='alternate' type='text/html' href='http://www.bryancook.net/2008/07/automate-visual-studio-from-external.html?showComment=1233763140000#c3539521278918330813' title=''/><author><name>bryan</name><uri>http://www.blogger.com/profile/01332614158223702009</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.bryancook.net/2008/07/automate-visual-studio-from-external.html' ref='tag:blogger.com,1999:blog-8942599.post-2755467788075971831' source='http://www.blogger.com/feeds/8942599/posts/default/2755467788075971831' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1859931516'/></entry><entry><id>tag:blogger.com,1999:blog-8942599.post-8495735536476768721</id><published>2009-02-04T04:32:00.000-05:00</published><updated>2009-02-04T04:32:00.000-05:00</updated><title type='text'>hi please let me know how to add .cs files to the ...</title><content type='html'>hi please let me know how to add .cs files to the solution file&lt;BR/&gt;&lt;BR/&gt;please provide the code</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8942599/2755467788075971831/comments/default/8495735536476768721'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8942599/2755467788075971831/comments/default/8495735536476768721'/><link rel='alternate' type='text/html' href='http://www.bryancook.net/2008/07/automate-visual-studio-from-external.html?showComment=1233739920000#c8495735536476768721' title=''/><author><name>K.BhaskarReddy</name><uri>http://www.blogger.com/profile/18285905861283603407</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.bryancook.net/2008/07/automate-visual-studio-from-external.html' ref='tag:blogger.com,1999:blog-8942599.post-2755467788075971831' source='http://www.blogger.com/feeds/8942599/posts/default/2755467788075971831' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-239570126'/></entry></feed>
