<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/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>votive, wix, vsip, and all things microsoft : MSBuild</title><link>http://blogs.msdn.com/jrock/archive/tags/MSBuild/default.aspx</link><description>Tags: MSBuild</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>How to embed resources using a different namespace in a C# project</title><link>http://blogs.msdn.com/jrock/archive/2006/09/20/763397.aspx</link><pubDate>Wed, 20 Sep 2006 11:11:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:763397</guid><dc:creator>jrock</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/jrock/comments/763397.aspx</comments><wfw:commentRss>http://blogs.msdn.com/jrock/commentrss.aspx?PostID=763397</wfw:commentRss><description>&lt;P&gt;&lt;FONT face=Verdana size=2&gt;Have you ever wanted to embed a resource in your managed assembly but didn't like the default name that Visual Studio decided to give it? For example, if you have a C# project with the RootNamespace="MyCompany.MyNamespace" and have a bitmap called "MyBitmap.bmp" in your C# project, then when the project compiles, you end up with "MyCompany.MyNamespace.MyBitmap.bmp" in your assembly resources. Well, what if you wanted it named just "MyBitmap.bmp"?&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;The trick is to manually tweak your .csproj file and add the &amp;lt;LogicalName&amp;gt; element as a child of the &amp;lt;EmbeddedResource&amp;gt; element:&lt;/FONT&gt;&lt;/P&gt;&lt;PRE&gt;&amp;lt;EmbeddedResource Include="MyBitmap.bmp"&amp;gt;&lt;BR&gt;&amp;nbsp; &amp;lt;LogicalName&amp;gt;MyBitmap.bmp&amp;lt;/LogicalName&amp;gt;&lt;BR&gt;&amp;lt;/EmbeddedResource&amp;gt;&lt;/PRE&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;Now your resource will be embedded with the name you give it instead of having it autogenerated.&lt;/FONT&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=763397" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/jrock/archive/tags/MSBuild/default.aspx">MSBuild</category></item><item><title>How to use MSBuild for your WiX projects without installing Votive or Visual Studio</title><link>http://blogs.msdn.com/jrock/archive/2006/08/14/700254.aspx</link><pubDate>Tue, 15 Aug 2006 01:33:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:700254</guid><dc:creator>jrock</dc:creator><slash:comments>2</slash:comments><comments>http://blogs.msdn.com/jrock/comments/700254.aspx</comments><wfw:commentRss>http://blogs.msdn.com/jrock/commentrss.aspx?PostID=700254</wfw:commentRss><description>&lt;P class=MsoPlainText style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face=Verdana size=2&gt;I got an interesting question today from a person reading my blog, so I thought I'd answer the question here in case other people have a similar interest.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoPlainText style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face=Verdana size=2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=MsoPlainText style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face=Verdana size=2&gt;The question was how to enable MSBuild support for a WiX project without having Votive or Visual Studio 2005 installed. The scenario is that this person uses Vista for his build environment and does frequent upgrades to the OS. He doesn't want to have to install Visual Studio 2005 every time he repaves his machine&amp;nbsp;to just get his WiX projects to compile. Fortunately, this scenario is supported.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoPlainText style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face=Verdana size=2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=MsoPlainText style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face=Verdana size=2&gt;Basically, you have to do some very minor manual configuration of&amp;nbsp;the WiX MSBuild tasks if you want to use MSBuild and WiX without installing Votive or Visual Studio. The key is to have the WixTasks.dll and wix.targets files copied to Program Files\MSBuild\Microsoft\WiX\v3.0 directory. You can now create an MSBuild file to compile/link your WiX projects. At the end of your file you should add the following line:&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoPlainText style="MARGIN: 0in 0in 0pt"&gt;&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;FONT face=Verdana size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P class=MsoPlainText style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face="Courier New" size=2&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;Import Project="$(MSBuildExtensionsPath)\Microsoft\WiX\v3.0\wix.targets" /&amp;gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoPlainText style="MARGIN: 0in 0in 0pt"&gt;&lt;o:p&gt;&lt;FONT face=Verdana size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P class=MsoPlainText style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face=Verdana size=2&gt;The other alternative is to use the new Votive that will be released very shortly (within the next couple of weeks). The new Votive has support for MSBuild by having the .wixproj file be a native MSBuild file. You could use Votive to create the .wixproj file for you with all of the various options you want for the compiler/linker and then just use that file on the build machine without installing VS 2005 or Votive.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoPlainText style="MARGIN: 0in 0in 0pt"&gt;&lt;o:p&gt;&lt;FONT face=Verdana size=2&gt;&lt;/FONT&gt;&lt;/o:p&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=MsoPlainText style="MARGIN: 0in 0in 0pt"&gt;&lt;o:p&gt;&lt;FONT face=Verdana size=2&gt;Hope this helps. I will probably also put a sample .wixproj file up here in a future blog so you can see what it would look like to manually create a .wixproj (or whatever extension you want to use) MSBuild file.&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P class=MsoPlainText style="MARGIN: 0in 0in 0pt"&gt;&amp;nbsp;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=700254" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/jrock/archive/tags/MSBuild/default.aspx">MSBuild</category></item><item><title>Moving the WiX toolset to NAnt builds</title><link>http://blogs.msdn.com/jrock/archive/2005/09/08/462827.aspx</link><pubDate>Fri, 09 Sep 2005 09:58:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:462827</guid><dc:creator>jrock</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/jrock/comments/462827.aspx</comments><wfw:commentRss>http://blogs.msdn.com/jrock/commentrss.aspx?PostID=462827</wfw:commentRss><description>&lt;P&gt;&lt;FONT face=Verdana size=2&gt;As many of you may know, we've had two different builds for the &lt;A href="http://wix.sourceforge.net/"&gt;WiX toolset&lt;/A&gt;: one for the external world (i.e. SourceForge), and the other for the developers working on WiX inside of Microsoft. These two builds were different enough to mess things up from time to time, and at the very least was annoying trying to port from one to the other. Therefore, we've decided to start using a new build system. At first we thought we'd use the new and improved &lt;A href="http://msdn2.microsoft.com/en-us/library/0k6kkbsd.aspx"&gt;MSBuild&lt;/A&gt; system that comes with Whidbey. However, we found that it doesn't support VC++ builds out of the box. Strike 1. We also found that it wasn't overly intuitive on how to get started with it and maintain it. Strike 2. And to top it off, it doesn't support building to the 1.1 .NET Framework. Strike 3.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;I must say that I think the Visual Studio team has made some great improvements by introducing MSBuild in Whidbey and it's great in a lot of circumstances, just not ours. I honestly can't believe that it doesn't support .NET 1.1 or build VC++ projects. Maybe next version.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;Since &lt;A href="http://bobs.org/"&gt;Bob&lt;/A&gt;, John, and I all had previous experience with &lt;A href="http://nant.sourceforge.net/"&gt;NAnt&lt;/A&gt;, we thought we'd try it out on WiX. So far so good. I only have a couple of the projects converted over, but the build times have greatly decreased (almost by a factor of 10), the build files are much, much more readable than our NMAKE sources/makefile.inc, and it's just a lot more fun to use NAnt. For one thing, you have the nice IntelliSense when editing .build files in Visual Studio. Also, it should be much easier for people to build the WiX toolset from the SourceForge drop. I'm hoping that we can roll out the NAnt version within a week or two.&lt;/FONT&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=462827" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/jrock/archive/tags/MSBuild/default.aspx">MSBuild</category><category domain="http://blogs.msdn.com/jrock/archive/tags/NAnt/default.aspx">NAnt</category><category domain="http://blogs.msdn.com/jrock/archive/tags/WiX/default.aspx">WiX</category></item></channel></rss>