<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://weblogs.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>ASP.NET MVC Tip #16 – Create ASP.NET MVC Macros</title><link>http://weblogs.asp.net/stephenwalther/archive/2008/07/09/asp-net-mvc-tip-16-create-asp-net-mvc-macros.aspx</link><description>In this tip, I show you how you can create a Visual Studio 2008 macro that creates a new MVC controller, view folder, and controller unit test with a single command. Don&amp;#8217;t get me wrong. I like the Visual Studio 2008 designer tools. I like dragging</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>re: ASP.NET MVC Tip #16 – Create ASP.NET MVC Macros</title><link>http://weblogs.asp.net/stephenwalther/archive/2008/07/09/asp-net-mvc-tip-16-create-asp-net-mvc-macros.aspx#6399848</link><pubDate>Mon, 14 Jul 2008 13:54:54 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6399848</guid><dc:creator>subdigital</dc:creator><author>subdigital</author><description>&lt;p&gt;This is a pretty useful tool. &amp;nbsp;It needs a little tweaking, but I like this better than my NAnt solution I did recently.&lt;/p&gt;
&lt;p&gt;I'm concerned about the method of selecting the project, as it seems pretty brittle. &amp;nbsp;Most of my apps have many projects, and only one of them is the web project.&lt;/p&gt;
&lt;p&gt;Anyway, cool stuff!&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6399848" width="1" height="1"&gt;</description></item><item><title>re: ASP.NET MVC Tip #16 – Create ASP.NET MVC Macros</title><link>http://weblogs.asp.net/stephenwalther/archive/2008/07/09/asp-net-mvc-tip-16-create-asp-net-mvc-macros.aspx#6385611</link><pubDate>Thu, 10 Jul 2008 20:41:40 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6385611</guid><dc:creator>swalther</dc:creator><author>swalther</author><description>&lt;p&gt;@panjkov -- You are right that the code included in this tip is really more of a Proof of Concept code sample than anything else. I wanted to show that you could do code generation easily from the Visual Studio Command window. I think it would be really useful and cool to create macros that did more extensive code generation (like create views, LINQ to SQL entities, and so on).&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6385611" width="1" height="1"&gt;</description></item><item><title>re: ASP.NET MVC Tip #16 – Create ASP.NET MVC Macros</title><link>http://weblogs.asp.net/stephenwalther/archive/2008/07/09/asp-net-mvc-tip-16-create-asp-net-mvc-macros.aspx#6382957</link><pubDate>Thu, 10 Jul 2008 07:52:16 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6382957</guid><dc:creator>panjkov</dc:creator><author>panjkov</author><description>&lt;p&gt;This is something I think should be included in OOTB template.&lt;/p&gt;
&lt;p&gt;I have some remarks:&lt;/p&gt;
&lt;p&gt;1. In the generated controller class, there are no &amp;#39;using&amp;#39; statements, as well as the namespace declaration - there are only class declaration and action result method. How do we customize the code created?&lt;/p&gt;
&lt;p&gt;2. Also in test controller class, situation is the same&lt;/p&gt;
&lt;p&gt;I tried to record a macro to see how this can be done, but I only have DTE Commands with string arguments&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6382957" width="1" height="1"&gt;</description></item></channel></rss>