MSBuild ForumDiscuss the Microsoft build engine aka MSBuild. Topics including: usage of MSBuild, build customization, and MSBuild extensibility via tasks, loggers and hosting.© 2009 Microsoft Corporation. All rights reserved.Wed, 25 Nov 2009 21:16:43 Zd7ac22f9-5d1e-4498-95f5-477daff4fecdhttp://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/de9b0506-de21-4976-9dc3-1197b8199d5chttp://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/de9b0506-de21-4976-9dc3-1197b8199d5cAlex V. Ivanoffhttp://social.msdn.microsoft.com/Profile/en-US/?user=Alex%20V.%20IvanoffPossible bug in MSBuild 4.0 Beta 2 building C++ projects<p>Original thread: <a href="http://social.msdn.microsoft.com/Forums/en-US/tfsprerelease/thread/0d1e3789-5cd0-4555-a596-a1253bf7fe70/">http://social.msdn.microsoft.com/Forums/en-US/tfsprerelease/thread/0d1e3789-5cd0-4555-a596-a1253bf7fe70/</a>.<br/><br/>To sum it up: 64-bit MSBuild 4.0 Beta 2 fails to build C++ projects with:<br/><br/><strong>Could not load the Visual C++ component &quot;VCProjectEngine.dll&quot;. To fix this, 1) install the Microsoft Windows SDK for Windows Server 2008 and .NET Framework 3.5, 2) install Microsoft Visual Studio 2008 or 3) add the location of the component to the system path if it is installed elsewhere. System error code: 193.</strong></p>Wed, 25 Nov 2009 17:50:41 Z2009-11-25T17:50:42Zhttp://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/618c77a8-c2de-4335-aa34-ae03f2c71030http://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/618c77a8-c2de-4335-aa34-ae03f2c71030Mansatanhttp://social.msdn.microsoft.com/Profile/en-US/?user=Mansatanaspnetcompiler gives null refrence exception with app_browseri'm using web deployment project with a asp.net 2.0 website <div>when building the application it gives :</div> <div>Error<span style="white-space:pre"> </span>Object reference not set to an instance of an object.<span style="white-space:pre"> </span>ASPNETCOMPILER</div> <div>the workarounds i have so far are:</div> <div>1. not include the &quot;<span style="font-family:Arial;font-size:13px;white-space:pre">App_browsers<span style="font-family:Verdana, Arial, Helvetica, sans-serif;font-size:11px;white-space:normal">&quot; during the build</span></span></div> <div>2. allow precomipled site to be updatable (meaning: markup pages are not merged in the precompiled assembly)</div> <div>3. create seperate assembly for each page and control output (meaning: no merge at all)</div> <div>is there a way i could include the &quot;<span style="font-family:Arial;font-size:13px;white-space:pre">App_browsers<span style="font-family:Verdana, Arial, Helvetica, sans-serif;font-size:11px;white-space:normal">&quot; and still be able to merge all outputs in a single assembly?</span></span></div> <div>and is there a patch to fix this problem?</div> <div><br/></div> <div><br/></div>Wed, 25 Nov 2009 11:42:26 Z2009-11-25T11:42:26Zhttp://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/04472d97-3177-4f35-be7a-7f443065c7c9http://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/04472d97-3177-4f35-be7a-7f443065c7c9MurrayShttp://social.msdn.microsoft.com/Profile/en-US/?user=MurraySSigntool reported an error 'keyset does not exist' - When buildingGetting this message when building a project.<br/>Have run signtool.exe to no avail.<br/>Project runs OKTue, 24 Nov 2009 04:09:57 Z2009-11-25T21:16:43Zhttp://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/ba444254-928c-4f2c-aac7-7cfaf17c35e0http://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/ba444254-928c-4f2c-aac7-7cfaf17c35e0Ram svhttp://social.msdn.microsoft.com/Profile/en-US/?user=Ram%20sv Error CS0234:The type or Namespace name "XML" doesn't exist in namespace 'System' (missing any assembly reference?)Hello <br/> <br/>         I am trying to build TortoiseSVN using VS2008sp1. Everything went on good and the build is about to complete. After running for some 3 hrs it threw an error showing as follows.<br/> <br/> <strong> BUILD FAILED<br/>             <br/>             H:\SVN\tortoisesvn\Languages\LanguagePack.build(40,4):<br/>             Compilation failed:<br/>             c:\Documents and Settings\svram\Local Settings\Temp\5zcspbco.0.cs(20,14) : error CS0234: The type or namespace name 'Xml' does not exist in the namespace 'System' (are you missing an assembly reference?)<br/>             c:\Documents and Settings\svram\Local Settings\Temp\5zcspbco.0.cs(192,46) : error CS0246: The type or namespace name 'XmlNode' could not be found (are you missing a using directive or an assembly reference?)<br/> <br/> </strong> I am giving the source of LanguagePack.xml file wherein the error is thrown.<br/> <br/> <pre lang=x-xml>&lt;script language=&quot;C#&quot; prefix=&quot;tsvn&quot;&gt; &lt;imports&gt; &lt;import namespace=&quot;System.Globalization&quot; /&gt; &lt;import namespace=&quot;System.Xml&quot; /&gt; ^^^^^^^^^^ &lt;import namespace=&quot;NAnt.Core.Attributes&quot; /&gt; &lt;import namespace=&quot;NAnt.Core.Util&quot; /&gt; &lt;import namespace=&quot;NAnt.Core.Tasks&quot; /&gt; &lt;/imports&gt; </pre> <br/> I also edited the corresponding registry keys to the absolute path of system.xml.dll (ie) I created a new key in name of <strong>system.xml  under HKEY_LOCAL_MACHINE -&gt; softwares -&gt; microsoft -&gt; .net framework -&gt; Assembly folders </strong>  and set its value to its abolute path . But still The same error is thrown :( so please help me to complete the build.<br/> <br/> Thanks &amp; Regards,<br/> RamMon, 23 Nov 2009 11:59:33 Z2009-11-25T06:37:04Zhttp://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/b1699eb4-a1d2-4050-93ca-7653e4019acdhttp://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/b1699eb4-a1d2-4050-93ca-7653e4019acdJan Svabhttp://social.msdn.microsoft.com/Profile/en-US/?user=Jan%20SvabNon-assembly dependency management<p>I'd like to know what is the preferred way of adding unmanaged DLLs into Visual Studio build chain. How can I add a reference to an unmanaged DLL, so that it gets copied to project target directory when building?<br/>Example: in my solution, I have a third party unmanaged library A.dll, which is wrapped into my managed wrapper B.dll. This is used by a library C.dll which is used by application D.exe. So in my solution I have three projects B, C, D and one file A.dll. How can I set up the build process so that A.dll gets copied to output folder of application D when D is built?<br/><br/>In my current setup (probably not the &quot;right&quot; one) I have A.dll as a data file of project B, with &quot;build action&quot; set to &quot;none&quot; and &quot;copy to output directory&quot; set to &quot;copy always&quot;. Then project reference to B is added to project C and project C is referenced in D. (Note that direct reference to B is not added to D, because D doesn't use classes in B, it uses just classes in C.)<br/>Unfortunately, this doesn't work. When building project B, the file A.dll is copied to output directory correctly. When building C, the B.dll and A.dll are also copied correctly to output directory of C. However, when building D, all the managed assemblies B.dll, C.dll and D.exe are in output directory, but the file A.dll is not copied. Seems that although the references themselves are propagating to more than one-level referencing, the files added to projects with &quot;copy always&quot; flag are non-propagating.<br/><br/>Do I get something wrong? Or is there a better way how to set up the projects for this scenario?</p>Thu, 12 Nov 2009 07:44:48 Z2009-11-24T14:58:30Zhttp://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/0ed5f9df-0818-4419-a173-31350b236194http://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/0ed5f9df-0818-4419-a173-31350b236194Priya Guptahttp://social.msdn.microsoft.com/Profile/en-US/?user=Priya%20Guptaproblem with bootstrapper application double download<div class=discussionListContent> <p>Hi,</p> <p>I am a new member to this group. I hope i will get the solution for my problem.</p> <p>My problem with bootstrapper is as follows:</p> <p>I have created a .msi file using wix, since wix doesn't have any way to check for dependency i used Generatebootstrapper option of visual studio to generate my bootstrapper exe(setup.exe). Now we need to give this setup.exe for download to our users, so that when they download it will be few kb, and when they run this exe , that in turn will check if dependencies exist on the user's machine if not then download from our site and install and then download the application(i.e. .msi file) and install it.</p> <p>now my problem is it works fine as far as the dependency installation, but after that it shows me a progress bar which shows it is downloading application files, it takes some time here and then it starts installing the application again from the url, so in total my installation process is very very slow.</p> <p>i hope u will undustand this problem and give some solution to this.</p> <p>Thanks</p> <p>Priya</p> <p> </p> </div>Tue, 24 Nov 2009 05:38:31 Z2009-11-24T05:38:32Zhttp://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/7e9ba072-9d16-4137-b365-9c97a39c6c00http://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/7e9ba072-9d16-4137-b365-9c97a39c6c00Ashvin_TwinCitieshttp://social.msdn.microsoft.com/Profile/en-US/?user=Ashvin_TwinCitiesRemoving a product detail from VDproj fileHello,<br/><br/>    I am using MSBuild to create a set up project.  I have a requirement to remove a pre-req which is &quot;SQL Server Express&quot; at run time using regular expression.  The SQL server details exist in the follwing format in th SetUp.VdProj file:    <br/><br/> <p class=MsoListParagraph style="margin:0in 0in 0pt 0.5in"><span style="font-size:small;font-family:Calibri">                    &quot;{EDC2488A-8267-493A-A98E-7D9C3B36CDF3}:Microsoft.Sql.Server.Express.9.2&quot;</span></p> <p class=MsoListParagraph style="margin:0in 0in 0pt 0.5in"><span style="font-size:small;font-family:Calibri">                    {</span></p> <p class=MsoListParagraph style="margin:0in 0in 0pt 0.5in"><span style="font-size:small;font-family:Calibri">                    &quot;Name&quot; = &quot;8:SQL Server 2005 Express Edition SP2 (x86)&quot;</span></p> <p class=MsoListParagraph style="margin:0in 0in 0pt 0.5in"><span style="font-size:small;font-family:Calibri">                    &quot;ProductCode&quot; = &quot;8:Microsoft.Sql.Server.Express.9.2&quot;</span></p> <p class=MsoListParagraph style="margin:0in 0in 0pt 0.5in"><span style="font-size:small;font-family:Calibri">                    }<br/><br/> I need to remove this at runt time using reg ex.  Can someone tell me hwo to do it?  Any help is appreciated. </span></p>Mon, 23 Nov 2009 17:12:18 Z2009-11-24T05:29:48Zhttp://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/562ae95f-e042-45c2-9821-62cac49d0152http://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/562ae95f-e042-45c2-9821-62cac49d0152Tuomas Hietanenhttp://social.msdn.microsoft.com/Profile/en-US/?user=Tuomas%20HietanenBuilding .net 4.0 web sites: .metaproj -filesHi!<br/><br/>I have a solution-file with ASP.NET Web Sites.<br/><br/>When I build the solution with .NET 4.0 Beta 2 using<br/> <pre>&quot;c:\WINDOWS\Microsoft.NET\Framework\v4.0.21006\MSBuild.exe&quot; d:\MyPath\MySolution.sln</pre> Everything works fine, no errors. Then I try to build the same solution with CruiseControl .NET task (msbuild-script ran by a service), the same solution fails with:<br/><br/> <div style="color:orangered">D:\MyPath\MyWebSite.metaproj (,): errorMSB4025: The project file could not be loaded. Could not find file 'D:\MyPath\MyWebSite.metaproj'.</div> <br/>Of course, there is no file like that. I guess *.metaproj is a .csproj-like msbuild-file generated dynamically for web sites...<br/><br/>But I don't know how to fix the error... I tried to google metaproj-files with no luck. I did try to make the file manually, I inserted a &lt;Project&gt; with &lt;Task Name=&quot;Rebuild&quot;&gt; and the compilation didn't raise any errors, but I guess the site didn't compile. <br/><br/>The same machine has .NET 3.5 and .NET 4.0 projects and environment variables for both frameworks.<br/><br/><br/>Mon, 26 Oct 2009 13:30:39 Z2009-11-23T14:34:25Zhttp://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/f0100a87-dca9-42d4-9202-68d7000c02b1http://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/f0100a87-dca9-42d4-9202-68d7000c02b1Rajat Rainahttp://social.msdn.microsoft.com/Profile/en-US/?user=Rajat%20RainaGenerate vsto file after compiling from command line<div><span style="font-family:Verdana, Arial, Helvetica, sans-serif;font-size:11px;white-space:pre-wrap">I have an Office 2007 Application Addin developed in C# 3.5 and I am using VS2008 as an IDE. The addin compiles and executes fine when I compile from the IDE.</span></div> <div><span style="font-family:Verdana, Arial, Helvetica, sans-serif;font-size:11px;white-space:pre-wrap"> However, my requirement now is to compile the project from a command line using the csc compiler. How can I achieve this and also generate the vsto file? </span></div> <div><span style="white-space:pre-wrap"><br/></span></div> <div><span style="font-family:Verdana, Arial, Helvetica, sans-serif;font-size:11px;white-space:pre-wrap">I used MSBuild and it generated the vsto file, but is there a direct compiler call that I can place to generate the vsto file? I would really appreciate if you can answer my query!</span></div>Fri, 20 Nov 2009 16:05:18 Z2009-11-23T10:47:35Zhttp://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/4ec42877-c963-4c88-8818-b1bd0a374b48http://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/4ec42877-c963-4c88-8818-b1bd0a374b48Trinominalhttp://social.msdn.microsoft.com/Profile/en-US/?user=TrinominalHow to use the "Microsoft.Build.BuildEngine.Engine" to build solutions which relies on Environment Variables on their xcopy Post Build Events?Hi,<br/><br/>As you may know, one can use the class &quot;Microsoft.Build.BuildEngine.Engine&quot; in order to programatically build a solution, instead of use MSBuild.<br/><br/>I want to use this class to programatically build solutions, instead of using MSBuild, but I have a problem.<br/><br/>Some of the solutions I'm trying to build contains &quot;xcopy...&quot; commands in the PostBuild events of their projects, and these xcopy events relies on environment variables. The environment variables are defined, and when running MSBuild in order to build the solution, the build succeeds. However, for some un-known reason, the Engine fails to build the solution and specifies that the PostBuildEvent &quot;xcopy ...&quot; exited with code 4.<br/><br/>1. Can some specify how this problem can be solved ?<br/><br/>2. Are you aware of any other scenarios in which the MSBuild should succeeds, and the Engine class fails ?<br/><br/>Regards<br/><br/>Thanks a lotSun, 01 Nov 2009 21:46:45 Z2009-11-22T15:31:13Zhttp://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/32b6dd15-d970-4bc2-a73b-961d8f443615http://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/32b6dd15-d970-4bc2-a73b-961d8f443615A n thttp://social.msdn.microsoft.com/Profile/en-US/?user=A%20n%20tAdding a config file to the buildHi,<br/><br/>I have a config file which is on source control &amp; is also present in the working folder but when I do an MSBuild it doesn't show up in the build.<br/><br/>I need to either work out why it's not in the build or somehow manually force it into the build by adding a statement in the buildprojects config file.<br/><br/>Thanks for any help on this<hr class="sig">@ntMon, 16 Nov 2009 07:09:50 Z2009-11-22T07:47:32Zhttp://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/a737ac1f-92f8-4390-bcba-e276c1279664http://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/a737ac1f-92f8-4390-bcba-e276c1279664Dale At Workhttp://social.msdn.microsoft.com/Profile/en-US/?user=Dale%20At%20WorkHow to pass custom values in command line options when queuing a team build?With our current build process, we have to manually edit the build project file for each build to set some property values used by the build, such as our internal build number, drop path, etc.<br/> <br/> Is there a way I can pass custom properties in a command-line argument when queuing the build?<br/> <br/> Regards,<br/> <br/> DaleThu, 19 Nov 2009 15:54:20 Z2009-11-25T02:35:37Zhttp://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/2b48e3d5-b84b-4133-9d26-79307badee61http://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/2b48e3d5-b84b-4133-9d26-79307badee61a.Net_Phoenixhttp://social.msdn.microsoft.com/Profile/en-US/?user=a.Net_PhoenixScheduled Build Issue with CruiseControl.net<p>Hello Everybody,<br/><br/>I am new to MSBuild and continuous integration.  I would like to make my project build automatically at a certain time everyday (even if there is no modification). I tried using a scheduled trigger but it is not working. Below is my ccnet.config <br/><br/><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff"><font size=2 color="#0000ff"><font size=2 color="#0000ff"> <p>&lt;</p> </font></font></span><font size=2 color="#0000ff"> <p> </p> </font></span></p> <p><span style="font-size:x-small;color:#a31515"><span style="font-size:x-small;color:#a31515">cruisecontrol</span></span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff"> </span></span><span style="font-size:x-small;color:#ff0000"><span style="font-size:x-small;color:#ff0000">xmlns:cb</span></span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">=</span></span><span style="font-size:x-small">&quot;</span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">urn:ccnet.config.builder</span></span><span style="font-size:x-small">&quot;</span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">&gt;<br/></span></span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">&lt;</span></span><span style="font-size:x-small;color:#a31515"><span style="font-size:x-small;color:#a31515">project</span></span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff"> </span></span><span style="font-size:x-small;color:#ff0000"><span style="font-size:x-small;color:#ff0000">name</span></span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">=</span></span><span style="font-size:x-small">&quot;</span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">AjaxTestSite</span></span><span style="font-size:x-small">&quot;</span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">&gt;<br/>&lt;</span></span><span style="font-size:x-small;color:#a31515"><span style="font-size:x-small;color:#a31515">triggers</span></span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">&gt;<br/>&lt;</span></span><span style="font-size:x-small;color:#a31515"><span style="font-size:x-small;color:#a31515">scheduleTrigger</span></span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff"> </span></span><span style="font-size:x-small;color:#ff0000"><span style="font-size:x-small;color:#ff0000">time</span></span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">=</span></span><span style="font-size:x-small">&quot;</span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">15:45</span></span><span style="font-size:x-small">&quot;</span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff"> </span></span><span style="font-size:x-small;color:#ff0000"><span style="font-size:x-small;color:#ff0000">buildCondition</span></span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">=</span></span><span style="font-size:x-small">&quot;</span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">ForceBuild</span></span><span style="font-size:x-small">&quot;</span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff"> /&gt;<br/>&lt;/</span></span><span style="font-size:x-small;color:#a31515"><span style="font-size:x-small;color:#a31515">triggers</span></span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">&gt;<br/>&lt;</span></span><span style="font-size:x-small;color:#a31515"><span style="font-size:x-small;color:#a31515">tasks</span></span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">&gt;<br/>&lt;</span></span><span style="font-size:x-small;color:#a31515"><span style="font-size:x-small;color:#a31515">msbuild</span></span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">&gt;<br/>&lt;</span></span><span style="font-size:x-small;color:#a31515"><span style="font-size:x-small;color:#a31515">executable</span></span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">&gt;</span></span><span style="font-size:x-small">C:\WINDOWS\Microsoft.NET\Framework\v3.5\MSBuild.exe</span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">&lt;/</span></span><span style="font-size:x-small;color:#a31515"><span style="font-size:x-small;color:#a31515">executable</span></span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">&gt;<br/>&lt;</span></span><span style="font-size:x-small;color:#a31515"><span style="font-size:x-small;color:#a31515">workingDirectory</span></span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">&gt;</span></span><span style="font-size:x-small">D:\CruiseControlWorkArea\Projects\AjaxTestSite\</span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">&lt;/</span></span><span style="font-size:x-small;color:#a31515"><span style="font-size:x-small;color:#a31515">workingDirectory</span></span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">&gt;<br/>&lt;</span></span><span style="font-size:x-small;color:#a31515"><span style="font-size:x-small;color:#a31515">projectFile</span></span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">&gt;</span></span><span style="font-size:x-small">AjaxBuild.proj</span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">&lt;/</span></span><span style="font-size:x-small;color:#a31515"><span style="font-size:x-small;color:#a31515">projectFile</span></span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">&gt;<br/>&lt;</span></span><span style="font-size:x-small;color:#a31515"><span style="font-size:x-small;color:#a31515">targets</span></span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">&gt;</span></span><span style="font-size:x-small">CompileWebSite</span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">&lt;/</span></span><span style="font-size:x-small;color:#a31515"><span style="font-size:x-small;color:#a31515">targets</span></span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">&gt;<br/>&lt;</span></span><span style="font-size:x-small;color:#a31515"><span style="font-size:x-small;color:#a31515">timeout</span></span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">&gt;</span></span><span style="font-size:x-small">300</span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">&lt;/</span></span><span style="font-size:x-small;color:#a31515"><span style="font-size:x-small;color:#a31515">timeout</span></span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">&gt;<br/>&lt;</span></span><span style="font-size:x-small;color:#a31515"><span style="font-size:x-small;color:#a31515">logger</span></span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">&gt;</span></span><span style="font-size:x-small">ThoughtWorks.CruiseControl.MsBuild.XmlLogger,ThoughtWorks.CruiseControl.MsBuild.dll</span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">&lt;/</span></span><span style="font-size:x-small;color:#a31515"><span style="font-size:x-small;color:#a31515">logger</span></span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">&gt;<br/>&lt;/</span></span><span style="font-size:x-small;color:#a31515"><span style="font-size:x-small;color:#a31515">msbuild</span></span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">&gt;<br/>&lt;/</span></span><span style="font-size:x-small;color:#a31515"><span style="font-size:x-small;color:#a31515">tasks</span></span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">&gt;<br/>&lt;</span></span><span style="font-size:x-small;color:#a31515"><span style="font-size:x-small;color:#a31515">publishers</span></span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">&gt;<br/>&lt;</span></span><span style="font-size:x-small;color:#a31515"><span style="font-size:x-small;color:#a31515">xmllogger</span></span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff"> /&gt;<br/>&lt;/</span></span><span style="font-size:x-small;color:#a31515"><span style="font-size:x-small;color:#a31515">publishers</span></span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">&gt;<br/>&lt;/</span></span><span style="font-size:x-small;color:#a31515"><span style="font-size:x-small;color:#a31515">project</span></span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">&gt;<br/>&lt;/</span></span><span style="font-size:x-small;color:#a31515"><span style="font-size:x-small;color:#a31515">cruisecontrol</span></span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">&gt;<font size=2 color="#0000ff"><font size=2 color="#0000ff"> <p>the ccnet build works only when i force the build manually (i use ccnet dashboard to force builds). <br/><br/>Please help me with some suggestions to automate the process?</p> </font></font></span><font size=2 color="#0000ff"> <p> </p> </font></span></p> <p><br/> </p><hr class="sig">Regards, PhoenixThu, 19 Nov 2009 15:26:15 Z2009-11-24T02:59:40Zhttp://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/eb19322e-0bc9-4d85-b1da-1b28e4dc361bhttp://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/eb19322e-0bc9-4d85-b1da-1b28e4dc361brkbrownhttp://social.msdn.microsoft.com/Profile/en-US/?user=rkbrownTwo output paths for MSBuildIs it possible to have MSBuild output to two seperate paths? Please excuse me if this is simplistic however, I am a dev that has always had a build manager handle this stuff. (Luck me!) Now I am beginning to take on this task.<br/><br/>Also, if there are any top-notch MSBuild tutorials online or even books you would recommend, please pass those along as well.<br/><br/>TIA<br/><br/>RyanThu, 19 Nov 2009 21:58:22 Z2009-11-20T18:22:03Zhttp://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/6ab84616-5366-4dd4-8458-38601909f6f0http://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/6ab84616-5366-4dd4-8458-38601909f6f0msbuilder_a0http://social.msdn.microsoft.com/Profile/en-US/?user=msbuilder_a0building Visual Studio solution with msbuild<p>We have a visual studio solution consisting of two main projects and one test project for each main project. We wan't to extend the build, which is automatically generated from visual studio, with additional tasks (executing unit tests and generating coverage reports (not managed by visual studio), integrating in an installer (not managed by visual studio) and deploying on a specific directory (not managed by visual studio)).<br/>We have a rough concept to achieve this, but we would like do it better, if you know how. We also are very interested in hints, how to connect the single build files to a whole build for the solution.</p> <p>Here a list of related build files:<br/>- The solution file, which comprises all projects to build:<br/>example_solution.sln<br/>- The master build file, which builds everything for the solution (calls example_solution_before_build_customization.sln.proj, example_solution.sln.proj and then example_solution_after_build_customization.sln.proj):<br/>example_solution_master.sln.proj<br/>- The build file for the solution, which is automatically generated for the solution file by msbuild:<br/>example_solution.sln.proj<br/>- The build file for the solution, which initializes the build before the example_solution.sln.proj file is executed.<br/>example_solution_before_build_customization.sln.proj<br/>- The build file for the solution, which deploys the build results after the build with the example_solution.sln.proj file.<br/>example_solution_after_build_customization.sln.proj<br/>- The build files, which are managed by visual studio without manual modification, for each project in the solution:<br/>example_solution\example_project1_impl.csproj<br/>example_solution\example_project1_test.csproj<br/>example_solution\example_project2_impl.csproj<br/>example_solution\example_project2_test.csproj<br/>- The build files, which are modified by developers, to extend the build process (IMPORTANT NOTE: We don't want to extend the build process in visual studio. We wan't to extend the build process on the build server (see explanation below). And we wan't to reuse the build files generated by visual studio (or msbuild).), for each project in the solution:<br/>example_solution\example_project1_impl_before_build_customization.csproj<br/>example_solution\example_project1_test_before_build_customization.csproj<br/>example_solution\example_project2_impl_before_build_customization.csproj<br/>example_solution\example_project2_test_before_build_customization.csproj<br/>example_solution\example_project1_impl_after_build_customization.csproj<br/>example_solution\example_project1_test_after_build_customization.csproj<br/>example_solution\example_project2_impl_after_build_customization.csproj<br/>example_solution\example_project2_test_after_build_customization.csproj</p> <p><br/>In which order should we execute all build files?<br/>- Simple approach (1):<br/>We execute first the example_solution_before_build_customization.sln.proj, which starts also those files:<br/>example_solution\example_project1_impl_before_build_customization.csproj<br/>example_solution\example_project1_test_before_build_customization.csproj<br/>example_solution\example_project2_impl_before_build_customization.csproj<br/>example_solution\example_project2_test_before_build_customization.csproj</p> <p>The we execute the generated build files by starting generated example_solution.sln.proj, which executes:<br/>example_solution\example_project1_impl.csproj<br/>example_solution\example_project1_test.csproj<br/>example_solution\example_project2_impl.csproj<br/>example_solution\example_project2_test.csproj</p> <p>And then we execute example_solution_after_build_customization.sln.proj, which also starts:<br/>example_solution\example_project1_impl_after_build_customization.csproj<br/>example_solution\example_project1_test_after_build_customization.csproj<br/>example_solution\example_project2_impl_after_build_customization.csproj<br/>example_solution\example_project2_test_after_build_customization.csproj</p> <p>[solution appreciated:]<br/>We don't like this approach, because prospectively we will have a dependency from <br/>example_solution\example_project2_test_before_build_customization.csproj to <br/>example_solution\example_project2_impl_after_build_customization.csproj, which means, the implementation of a project must be build before the test build for this project is prepared.<br/>But this approach (1) will be also ok, if we move some tasks, which are dependent on project2_impl from the example_solution\example_project2_test_before_build_customization.csproj-buildfile to the example_solution\example_project2_test_after_build_customization.csproj-buildfile.</p> <p>- Therefore we prefer this execution order, approach 2:<br/>example_solution_master.sln.proj [starting]<br/>example_solution_before_build_customization.sln.proj<br/>example_solution.sln.proj [starting]<br/>example_solution\example_project1_impl_before_build_customization.csproj<br/>example_solution\example_project1_impl.csproj<br/>example_solution\example_project1_impl_after_build_customization.csproj<br/>example_solution\example_project1_test_before_build_customization.csproj<br/>example_solution\example_project1_test.csproj<br/>example_solution\example_project1_test_after_build_customization.csproj<br/>example_solution\example_project2_impl_before_build_customization.csproj<br/>example_solution\example_project2_impl.csproj<br/>example_solution\example_project2_impl_after_build_customization.csproj<br/>example_solution\example_project2_test_before_build_customization.csproj<br/>example_solution\example_project2_test.csproj<br/>example_solution\example_project2_test_after_build_customization.csproj<br/>example_solution.sln.proj [finishing]<br/>example_solution_after_build_customization.sln.proj<br/>example_solution_master.sln.proj [finishing]</p> <p>Each project of the solution would be built in three steps without interruption. The order of the projects can vary dependent on the project dependency settings in visual studio (This information is automatically generated into file example_solution.sln.proj). <br/>[solution appreciated:]<br/>We don't know how to link the three build files of a project. There is a BeforeBuild-Target and an AfterBuild-Target in each generated build-file, but we NEVER wan't to execute the two other files (for example example_solution\example_project1_test_before_build_customization.csproj and example_solution\example_project1_test_after_build_customization.csproj) with visual studio.<br/>Keep in mind, that the generated example_solution.sln.proj invokes for example the example_solution\example_project1_impl.csproj without customization build files. But we wan't to start the customization build files of the projects together with the generated project build file with smallest modifications of generated files (Automatic modification of the generated files would be accepted.) (With approach 1, there could be an additional master build file for each project, which starts the before-, generated- and after-file).</p> <p>We NEVER wan't to execute any customizations (see the file names) with visual studio. <br/>We wan't to realize a build on a build server, which executes additional tasks (unittesting, coverage reports, installer, zipping of files, deploying,...).<br/>And we wan't to reuse all generated build files in order to elimate efforts of typing those.</p> <p>[solution appreciated:]<br/>If you have better ideas, please throw these concepts away and present us better ones. We would prefer solutions, which are standard (recommended by microsoft,...).<br/>Please give references to related documents and forum posts.</p> <p>We are working with Visual Studio 2008 professional.</p>Fri, 20 Nov 2009 15:44:44 Z2009-11-20T15:44:44Zhttp://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/7555518d-828b-471e-a9aa-b8156b1922f3http://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/7555518d-828b-471e-a9aa-b8156b1922f3Larry Brookshttp://social.msdn.microsoft.com/Profile/en-US/?user=Larry%20Brookstransitive dependencies with msbuild and c++ projectsWe converted a significant code base from visual c 2003 and makefiles to vs2008 and solution/project files.  <br/><br/>When Visual Studio builds our executables, .h file dependencies are automatically used to determine which modules get recompiles and linked.  Yeay!<br/><br/>However, when msbuild builds our projects, .h file changes do not force the appropriate modules to be recompiled, causing execution failures.<br/><br/>I read in this blog under transitive dependencies are the issue here, and that perhaps someone is working on this for a future level.  <br/><br/>One work around I thought could be done is to use devenv from vs2008 to build the solutions rather than using msbuild directly.  <br/><br/>Is there something I am missing in the current msbuild that would resolve these dependencies without using devenv?  Or does anyone know the plan for supporting these dependencies in msbuild?<br/><br/>Thanks,<br/><br/><br/>Larry Brooks<br/>AmTote International<br/><br/>Thu, 05 Nov 2009 17:00:16 Z2009-11-19T22:06:28Zhttp://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/0b0268be-fe21-4931-82d5-89923767e058http://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/0b0268be-fe21-4931-82d5-89923767e058Naeem.Akbarhttp://social.msdn.microsoft.com/Profile/en-US/?user=Naeem.AkbarMSBuild rebuild produces different size assembly compared when re-building solution with Visual StudioHi,<br/><br/>I have been tasked with automating our build procedure and have chosen to use MSBuild. In doing so I compared a build of our solution with msbuild with a build from visual studio and noticed the assembly sizes were differnet by about 5-10k.<br/><br/>Here is my MSBuild file:<br/><br/>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;<br/>&lt;Project DefaultTargets=&quot;Publish&quot; xmlns=&quot;<a href="http://schemas.microsoft.com/developer/msbuild/2003">http://schemas.microsoft.com/developer/msbuild/2003</a>&quot; ToolsVersion=&quot;3.5&quot;&gt;<br/>  &lt;ItemGroup&gt;<br/>    &lt;ProjectReferences Include=&quot;C:\KE\main.br\KE - MAIN.sln&quot; /&gt;<br/>  &lt;/ItemGroup&gt;<br/>  &lt;PropertyGroup&gt;<br/>    &lt;BuildRoot&gt;C:\Inetpub\wwwroot\KE_Build\&lt;/BuildRoot&gt;<br/>  &lt;/PropertyGroup&gt;<br/>  &lt;Target Name=&quot;RemoveFolder&quot;&gt;<br/>    &lt;RemoveDir Directories=&quot;$(BuildRoot)&quot; /&gt;<br/>  &lt;/Target&gt;<br/>  &lt;Target Name=&quot;BuildOtherProjects&quot;&gt;<br/>    &lt;MSBuild Projects=&quot;@(ProjectReferences)&quot; Targets=&quot;ReBuild&quot; Properties=&quot;Configuration=CLIENT_P&quot; /&gt;<br/>  &lt;/Target&gt;<br/>  &lt;Target Name=&quot;Publish&quot; DependsOnTargets=&quot;BuildOtherProjects&quot;&gt;<br/>    &lt;MSBuild Projects=&quot;@(ProjectReferences)&quot; Properties=&quot;OutputPath=$(BuildRoot)bin;Configuration=CLIENT_P&quot; /&gt;<br/>  &lt;/Target&gt;<br/>&lt;/Project&gt;<br/><br/>As you can see, ive chosen the target of rebuild. I did the exact same thing in visual studio. I opened the solution file and then right-click rebuild.<br/><br/>I'm slighly worried about these differences and would like to resolve this before I can continue. Would anyone happen to have any ideas as to why this is happening.<br/><br/>Thanks in advance,<br/>NaeemFri, 26 Jun 2009 09:27:47 Z2009-11-19T14:56:18Zhttp://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/b90c231f-5070-4c97-9be5-453cad797347http://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/b90c231f-5070-4c97-9be5-453cad797347karteekphttp://social.msdn.microsoft.com/Profile/en-US/?user=karteekpwhy do MSBUILD and Devenv generate different output assembly for the same project with same code?right now I use DevEnv (VS 2008) from command line to build our csharp projects. I wanted to replace that with MSBUILD. I was comparing the .dll files generated from my CSharp project from both MSbuild and devenv. Although the source code didnt change the comparison tool (Bitdiffer) shows that the two assemblies are different. I used .NET reflector and compared the two dlls. there was no difference in the reflected code also. Can some one suggest if I should be concerned about?<br/> <br/> Thanks<br/> KarteekWed, 18 Nov 2009 22:49:49 Z2009-11-19T15:28:39Zhttp://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/d636c70f-15d2-4528-8ff9-93dd90d47967http://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/d636c70f-15d2-4528-8ff9-93dd90d47967Michael_Ruehttp://social.msdn.microsoft.com/Profile/en-US/?user=Michael_RueIncremental Build is disturbed by .resx filesHi everyone,<br/><br/>we are using MSBuild for compiling our projects and use the incremental builds for testing to safe time. But we investigated, that even if nothing was changed since the last build, some assemblies are recompiled, because these projects include .resx files. For preparation of the build, the .resource files are generated by MSBuild. So the CoreCompile target will be building completely for these projects, because one of the input files (the .resource files) are newer then the last built assembly. I know there is a property named &quot;GenerateResource&quot; in the item EmbeddedResource, but I don't know where I can set this information or if this is the right way.<br/>Is it possible to prevent MSBuild from building/generating the resource files, when they are not changed to the last build.<br/>Thanks for your help,<br/><br/>MichaelWed, 21 Oct 2009 12:26:57 Z2009-11-19T11:13:07Zhttp://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/1f809b95-5832-4fea-8495-7e33b25c0f5chttp://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/1f809b95-5832-4fea-8495-7e33b25c0f5ciamGaryhttp://social.msdn.microsoft.com/Profile/en-US/?user=iamGaryT4 code generation during build requires build twice to integrate changes<p>I have T4 generation of code integrated within my CS proj file as a dependency to the CoreBuild target. The T4 target generates new CS file every time a build happens and the output generated is added to the Compile itemgroup so the CoreCompile target will include the generated source. Note: the generated source is not part of the project file and does not appear in the solution explorer or in source control.<br/><br/>The behavior I am seeing is odd - if a change is made to the T4 template, new source is generated but the last source is compiled at the next build. If another build is done, the new source is compiled. If I shell to a cmd line and use MSBuild.exe this does not occur - the first call to MSBuild sees that latest source generated.<br/><br/>It appears as if VS has some previous temp file of source different from what was generated.<br/><br/>Here's the additions to the csproj file...<br/><br/>  &lt;!-- insert T4 targets into build dependency --&gt;<br/>  &lt;PropertyGroup&gt;<br/>    &lt;CoreBuildDependsOn&gt;<br/>      T4Setup;<br/>      T4Generate;<br/>      $(CoreBuildDependsOn);<br/>    &lt;/CoreBuildDependsOn&gt;<br/>  &lt;/PropertyGroup&gt;</p> <p>  &lt;!-- generate found T4 templates and add output to be compiled --&gt;<br/>  &lt;Target Name=&quot;T4Setup&quot;&gt;<br/>    &lt;PropertyGroup&gt;<br/>      &lt;T4TemplateFileExtension&gt;.t4&lt;/T4TemplateFileExtension&gt;<br/>      &lt;T4PathToExportTool&gt;..\..\Tools\TextTemplating\TextTransform.exe&lt;/T4PathToExportTool&gt;<br/>    &lt;/PropertyGroup&gt;<br/>    &lt;!-- get all .t4 items in project --&gt;<br/>    &lt;CreateItem Condition=&quot;'%(None.Extension)'=='$(T4TemplateFileExtension)'&quot; Include=&quot;%(None.Identity)&quot;&gt;<br/>      &lt;Output ItemName=&quot;T4Item&quot; TaskParameter=&quot;Include&quot; /&gt;<br/>    &lt;/CreateItem&gt;<br/>    &lt;!-- delete outputs to force regen --&gt;<br/>    &lt;CreateItem Condition=&quot;<a href="mailto:'@(T4Item)'!=''">'@(T4Item)'!=''</a>&quot; Include=&quot;%(T4Item.RelativeDir)%(Filename).t4.cs&quot;&gt;<br/>      &lt;Output ItemName=&quot;T4Outputs&quot; TaskParameter=&quot;Include&quot; /&gt;<br/>    &lt;/CreateItem&gt;<br/>    &lt;Delete ContinueOnError=&quot;true&quot; Files=&quot;@(T4Outputs)&quot; /&gt;<br/>  &lt;/Target&gt;<br/>  &lt;Target Name=&quot;T4Generate&quot; DependsOnTargets=&quot;T4Setup&quot;&gt;<br/>    &lt;!-- execute for each T4Item --&gt;<br/>    &lt;CallTarget Targets=&quot;T4Output&quot; /&gt;<br/>    &lt;CreateItem Condition=&quot;<a href="mailto:'@(T4Item)'!=''">'@(T4Item)'!=''</a>&quot; Include=&quot;%(T4Item.RelativeDir)%(Filename).t4.cs&quot;&gt;<br/>      &lt;Output ItemName=&quot;Compile&quot; TaskParameter=&quot;Include&quot; /&gt;<br/>    &lt;/CreateItem&gt;<br/>  &lt;/Target&gt;<br/>  &lt;!-- generate all items --&gt;<br/>  &lt;Target Name=&quot;T4Output&quot; Inputs=&quot;@(T4Item)&quot; Outputs=&quot;%(T4Item.RelativeDir)%(Filename).t4.cs&quot;&gt;<br/>    &lt;Exec Command=&quot;$(T4PathToExportTool) -I $(ProjectDir)%(RelativeDir) $(ProjectDir)%(T4Item.Identity)&quot; /&gt;<br/>  &lt;/Target&gt;<br/><br/>Any ideas how to clear this state or other condition in VS at every build?<br/><br/>If I introduce a compile error in the template, save the template and build the project I want to get immediate failure (which I do if I build at the command line) but VS requires me to build twice before the error is encountered even though the new source was present at the first build.</p>Tue, 17 Nov 2009 00:52:34 Z2009-11-19T10:34:46Zhttp://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/1cc63c19-3b80-4d26-9460-95a32f3c2224http://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/1cc63c19-3b80-4d26-9460-95a32f3c2224Vicious1http://social.msdn.microsoft.com/Profile/en-US/?user=Vicious1How to 'blank-out' files without deleting them?I'd like to clear out the contents of .licx files wherever they may be within the directory structure.  This is a typical task when building projects that have license files, but are not licensed on the build server.<br/> <br/> The closest I've come so far is the WriteLinesToFile task as with the following:<br/> <pre> &lt;ItemGroup&gt;<br/> &lt;MyTargets Include=&quot;.\folder\**\*.licx&quot;/&gt;<br/> &lt;/ItemGroup&gt;<br/> &lt;WriteLinesToFile Condition=&quot;Exists(@(MyTargets))&quot; <br/> File=&quot;%(MyTargets.FullPath)&quot;<br/> Lines=&quot;&quot;<br/> Overwrite=&quot;true&quot;/&gt;</pre> However, instead of clearing the <strong>contents</strong> of the files, <strong>every file</strong> matched is removed (*.licx).<br/> <br/> The MSBuild commandline I am using shows:<br/> <br/> Microsoft (R) Build Engine Version 3.5.30729.1<br/> [Microsoft .NET Framework, Version 2.0.50727.3603]<br/> Copyright (C) Microsoft Corporation 2007. All rights reserved.<br/> <br/> Any suggestions?<br/> <hr class=sig> -SidTue, 17 Nov 2009 23:34:46 Z2009-11-18T21:56:17Zhttp://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/0fdf0e25-f14b-4860-9458-e3a487ac8b4ehttp://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/0fdf0e25-f14b-4860-9458-e3a487ac8b4eeaBidihttp://social.msdn.microsoft.com/Profile/en-US/?user=eaBidiWindows 7 VS 2008 postbuild command issueHi all,<br/>i have a C# Database project creating a Dll for sql server 2005.<br/>If i build and deploy the project on my local machine, using the Sql Server instance installed on my machine, i have no problem and everything works fine.<br/>When i have to deploy the project on a test server on my network, i have an issue in deployment.<br/><br/>Here is what happens:<br/>I created a postbuild event, where basically i copy the files generated by the compilers (e.g. assemblyname.dll) into a UNC path like \\myDBTestServer\sqlClr<br/><br/>The problem i have got is that once the postbuild event is executed i receive an error claiming that the username and password are not valid.<br/><br/>The test server and my machine are not in a domain, but standalone hosts. I had the same problem some time ago on a Vista pro machine, and the only thing i had to do was to open a shell pointing to the server, and authenticate with the appropriate account.<br/><br/>Now, i have a fresh installation of Windows 7, and the copy doesn't work in either way.<br/><br/>I have made several tests, using postbuild command or MSBuild (btw, it's a wonderful tool, i didn't knew it before) but nothing works. Also, i can't copy the files even if i open a cmd prompt and try to make <br/>&quot;copy <em>assemblyname.dll </em><em>\\myDBTestServer\sqlClr\assemblyname.dll&quot;<br/></em><br/>So i tried one thing:<br/>i tried mapping the UNC path to a network path (like z:).<br/> - now, if i copy the files from the command prompt it works;<br/> - if i do the same from within VS (postbuild command or MSBuild) i have a different error: cannot find a part of the specified path!<br/><br/>i have checked if the syntax is right, and IS right... so now i really don't know what to do...<br/><br/>Any help or thoughts appreciated.<br/><br/>Thanks in advance,<br/>Emanuele<br/><br/>Wed, 11 Nov 2009 10:57:03 Z2009-11-18T05:50:20Zhttp://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/d5fb3282-4640-46d7-9924-c3091908f4ffhttp://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/d5fb3282-4640-46d7-9924-c3091908f4ffHatchmanhttp://social.msdn.microsoft.com/Profile/en-US/?user=HatchmanIs the 64 bit version of MSBuild supported for BizTalk Server 2009?Hi folks<br/> <br/> I am using the 64 bit version of MSBuild for a a large software project, so far so good with standard .NET 3.5 components but when I use it with BizTalk Server 2009 projects it does not work.<br/> <br/> The BizTalk MSBuild files are only dropped in the &quot;Program Files (x86)\MSBuild&quot; directory and even when you tell 64 bit MSBuild to look in there it still fails in other places, most notably being able to generate the code-behind files for schemas.<br/> <br/> So the question is, is the 64 bit version of MSBuild supported by BizTalk Server 2009 - my guess is no....<br/> <br/> I also posted this in the BizTalk Server forum but thought it would be a good idea to post it here as wellWed, 08 Jul 2009 23:49:18 Z2009-11-17T04:36:32Zhttp://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/f47abec4-fb4d-484b-b81a-7df38041d680http://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/f47abec4-fb4d-484b-b81a-7df38041d680Kiddahttp://social.msdn.microsoft.com/Profile/en-US/?user=KiddaUtilizar SerialPort.DatareceivedHola: <div>Estoy utilizando Visual studio 2008y no logro que se dispare el evento Datareceived. Manejan que se debe utilizar un delegado, pero la verdad no le hallo como hacerlo. Estoy manejando un puerto virtual con un  ATmega8535, ya escribi y lei correctamente de el, simplemente no logro que entre en la rutina. Por favor ayudenme :( <pre>Public Class Form1 Dim var As Byte, ger(0) As Byte Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click On Error Resume Next 'Cerrar el control si estuviera abierto If Comunica.IsOpen = True Then Comunica.Close() End If Comunica.PortName = &quot;COM2&quot; 'se escoge el puerto serie 4 Comunica.Handshake = IO.Ports.Handshake.None 'No se establece ningun protocolo de hardware Comunica.ReadBufferSize = 2 'Se establece el tamaño del buffer de recepcion Comunica.DataBits = 8 'Se establece el no. de caracteres que se lee en INPUT, se lee el puerto completo ' Comunica.Input = comInputModeBinary 'se establece que se usará modo binario Comunica.DiscardNull = False 'determina que se puedan transmitir y recibir caracteres nulos Comunica.WriteBufferSize = 1 'se establece el tamaño del buffer de transmision Comunica.ReceivedBytesThreshold = 1 'se establece que cuando el buffer de recepcion tenga un caracter se active el evento on comunication Comunica.RtsEnable = False ' No se activa linea de peticion de envio Comunica.BaudRate = 9600 Comunica.Parity = IO.Ports.Parity.None Comunica.StopBits = 1 'Limpiar las colas Rx y Tx Comunica.DiscardInBuffer() Comunica.DiscardOutBuffer() 'Abrir el puerto de comunicacion: Comunica.Open() Comunica.DiscardInBuffer() Comunica.DiscardOutBuffer() 'El puerto se conecto correctamente If Comunica.IsOpen = False Then 'error al abrir el puerto Beep() Beep() MsgBox(&quot;No se ha conectado el circuito&quot;, vbCritical, &quot;Error fatal!!!&quot;) Else 'Habilitar controles GroupBox1 y colocar edo inicial TextBox1.Enabled = True 'Habilitar boton cerrar Button2.Enabled = True 'deshabilirtar boton abrir Button1.Enabled = False 'Colocar valor inicial var var = 0 TextBox1.Text = var 'ger(0) = var 'Comunica.Write(ger(0)) Comunica.DiscardInBuffer() Comunica.DiscardOutBuffer() End If End Sub Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click 'deshabilitar controles check0 y colocar edo final TextBox1.Enabled = False 'habilitar boton abrir Button1.Enabled = True Button2.Enabled = False 'cerrar el puerto ger(0) = 0 Comunica.Write(ger(0)) Comunica.Close() End Sub Private Sub Form1_U(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Disposed If Comunica.IsOpen = True Then 'colocar el edo final Comunica.Write(ger(0)) Comunica.Close() End If End Sub Private Sub Comunica_DataReceived(ByVal sender As Object, ByVal e As System.IO.Ports.SerialDataReceivedEventArgs) Handles Comunica.DataReceived Dim dato As Byte, Midato As Byte dato = 0 MsgBox(&quot;LLego algo&quot;) dato = Comunica.ReadByte Midato = dato TextBox1.Text = Midato End Sub End Class </pre> <br/></div>Sat, 14 Nov 2009 21:05:22 Z2009-11-20T02:49:49Zhttp://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/e9dc15a3-ecd9-495a-b698-26836cae1710http://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/e9dc15a3-ecd9-495a-b698-26836cae1710mikebridgehttp://social.msdn.microsoft.com/Profile/en-US/?user=mikebridge"Type or namespace name...could not be found", compiling to common folderHi-<br/> <br/> I'm trying to break a large solution down into a master solution and a set of independent sub-solutions.  As part of that, I started to compile the output of the projects into a &quot;/CommonLib&quot; directory, and link to the DLLs (rather than the projects).  <br/> <br/> The problem I'm encountering (VS2008 9.0.21022.8) is that I'm getting an error while compiling MyAssembly2:<br/> <br/>      Error    6    The type or namespace name 'MyAssembly1' could not be found (are you missing a using directive or an assembly reference?)    <br/> <br/> I set the Project Dependencies so that it shows that MyAssembly2 &quot;depends on&quot; MyAssembly1, and I can verify that the &quot;Build Order&quot; is correct, but during the compilation of MyAssembly2 it still can't find MyAssembly1.  &quot;Copy Local&quot; is set to &quot;False&quot; (and I can't change that).<br/> <br/> Any idea what's happening?<br/> <br/> Thanks,<br/> <br/> -Mike<br/>Thu, 12 Nov 2009 23:29:27 Z2009-11-17T00:08:09Zhttp://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/59b18e68-3f1f-4a2c-9d61-6954e2541bf4http://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/59b18e68-3f1f-4a2c-9d61-6954e2541bf4Hatchmanhttp://social.msdn.microsoft.com/Profile/en-US/?user=HatchmanDoes the 64 bit version of MSBuild support Code analysis?Hi everyone <br/> <br/> When I type on a command line on a 64 bit Windows Server 2008 machine <br/> <br/> <pre>c:\windows\Microsoft.NET\Framework\v3.5\MSBuild.exe /property:RunCodeAnalysis=true C:/Path/To/Some/Project.csproj</pre> <br/> Code analysis runs.<br/> <br/> Then when I type <br/> <br/> <pre>c:\windows\Microsoft.NET\Framework64\v3.5\MSBuild.exe /property:RunCodeAnalysis=true C:/Path/To/Some/Project.csproj</pre> <br/> It never runs at all.<br/> <br/> Note that this is a stock standard Windows Server 2008 64 bit machine with VS2008 SP1 installed.<br/> <br/> Why is this happening?<br/>Tue, 14 Jul 2009 00:23:31 Z2009-11-16T21:38:40Zhttp://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/1ef7d6f3-786e-471d-b8a6-8f91a01e72bbhttp://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/1ef7d6f3-786e-471d-b8a6-8f91a01e72bbMinnowNoirhttp://social.msdn.microsoft.com/Profile/en-US/?user=MinnowNoirError handling?How does one capture the error text outputted by an action, so that it can be, say, sent in an email?Mon, 16 Nov 2009 18:25:32 Z2009-11-16T21:54:22Zhttp://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/97ca41c2-b919-4320-a878-44a6737d8399http://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/97ca41c2-b919-4320-a878-44a6737d8399Dileep sankarhttp://social.msdn.microsoft.com/Profile/en-US/?user=Dileep%20sankarRead a value from pdf documentHello,<br/>               I developed an application using vb.net and Visual studio 2005 . My requirement is, i want to fetch or read  the values from pdf document  using code. <br/> <br/> Thanks<br/> DileepMon, 16 Nov 2009 05:45:27 Z2009-11-23T02:34:15Zhttp://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/fea387ea-3836-4266-8956-a657063bd9eahttp://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/fea387ea-3836-4266-8956-a657063bd9eaHarshadRhttp://social.msdn.microsoft.com/Profile/en-US/?user=HarshadRMSBuild returns error code 1 when run from NAnt<p>Hi,<br/><br/>I want to create CruiseControl.NET script for an ASP.NET 3.5 Web Application. CruiseControl.NET is installed in WIN2003 server which has Visual Studio 2005 installed. Also, .NET Framework 3.5 is installed on it (not VS 2008). I have created NAnt script which is used by CruiseControl.NET but while executing the same it shows build as failed.</p> <p>When I ran NAnt script from command prompt, I saw error message &quot;External program failed (MSBuild returned error code 1). When I typed MSBuild at command prompt, I found that it was .NET 2.0's MSBuild and not 3.5. Then, I went to C:\Windows\Microsoft .NET\Framework\v3.5 and build my solution, it worked properly.</p> <p>I am not sure why this error is showing up for NAnt script. Is it  possible to set a particular .NET framework as default on any server? Will it have any impact on other sites running?<br/><br/>Please help.</p> <p> </p><hr class="sig">HR ------------------------------------------ &quot;All that we are is the result of what we have thought.&quot; - BuddhaFri, 13 Nov 2009 12:51:10 Z2009-11-18T02:48:26Zhttp://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/2ebe548d-318b-40fa-8303-5b2ef6c4af1dhttp://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/2ebe548d-318b-40fa-8303-5b2ef6c4af1dOutOfCoffeeExceptionhttp://social.msdn.microsoft.com/Profile/en-US/?user=OutOfCoffeeExceptionAdd files generated by custom task to .csprojI use a custom task in a .csproj file. The task generates some new files. I want these files to be added to the project during the build, so that they appear in the solution explorer in Visual Studio.<br/><br/>How can I add the files generated by my task to the project?<br/><br/>(I'm using VS2010 beta 2, if that makes any difference).<br/><br/>Thanks,<br/>Mathias<br/><br/>Mon, 02 Nov 2009 19:12:47 Z2009-11-16T11:42:32Zhttp://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/5e0053af-aa1f-4be8-a867-e2f5668b503ehttp://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/5e0053af-aa1f-4be8-a867-e2f5668b503eBitMoreBlurredhttp://social.msdn.microsoft.com/Profile/en-US/?user=BitMoreBlurredWhat does MSBuild error MSB4165 mean?Has anybody come across this before? <div>I've searched the internet for it and can't find a single reference.</div> <div>Our build is quite large.</div> <div><br/></div> <div>After a while (different place each time) it stops, then displays the following message and then quits. Any help would be greatly appreciated.</div> <div><br/></div> <div><span style="font-size:11.0pt;font-family:'Calibri','sans-serif';color:#003300">MSBUILD : error MSB4165: Failed to receive a response from a child node &quot;1&quot; in the timeout period &quot;300000&quot; ms. Shutting down</span></div>Wed, 11 Nov 2009 16:40:25 Z2009-11-16T08:43:50Zhttp://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/6c9fe273-4882-4d38-a863-4a8c133a09a0http://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/6c9fe273-4882-4d38-a863-4a8c133a09a0ka3751http://social.msdn.microsoft.com/Profile/en-US/?user=ka3751Copy task, MSB3073, exit code 255Attempting PostBuildEvent and get an MSB3073 error, and 'exit code 255&quot; Trying to do a Copy task<br/>&lt;PostBuildEvent&gt;<br/>    &lt;Copy<br/>            SourceFiles=&quot;8850spoof.xml&quot;<br/>            DestinationFolder=&quot;$(OutDir)&quot;<br/>        /&gt;<br/>   &lt;/PostBuildEvent&gt;<br/>Also tried <br/>&lt;ItemGroup&gt;    <br/>    &lt;CopyThis Include=&quot;8850spoof.xml&quot; /&gt;<br/>    &lt;/ItemGroup&gt;<br/>&lt;PostBuildEvent&gt;<br/>    &lt;Copy<br/>            SourceFiles=&quot;$(CopyThis)&quot;<br/>            DestinationFolder=&quot;$(OutDir)&quot;<br/>        /&gt;<br/>   &lt;/PostBuildEvent&gt;<br/><br/>Why is such a simple task so frickin' hard?<br/><br/><hr class="sig">ka3751Fri, 13 Nov 2009 20:00:28 Z2009-11-20T09:16:40Zhttp://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/261edf66-c16d-4be0-995f-5f1edc2ac7b6http://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/261edf66-c16d-4be0-995f-5f1edc2ac7b6kcdixonhttp://social.msdn.microsoft.com/Profile/en-US/?user=kcdixonHow to Detect Processor Architecture in file's Condition? (using MSI)We have a project that is written in C#, but depends on one Managed/UnManaged C++ assembly. When we deploy to 64bit machines, the JIT decides to run the code as 64bit, but then it chokes loading the 32bit DLL.<br/> <br/> It seems the ideal solution is to simply compile both versions of the DLL, include both in the MSI, then choose which one to install based on the target architecture.<br/> <br/> How can I accomplish this?<br/> I'm using Visual Studio 2008 to build my MSIsSat, 14 Nov 2009 00:54:10 Z2009-11-19T02:38:01Zhttp://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/8229aae3-2920-4227-af78-75499becbc54http://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/8229aae3-2920-4227-af78-75499becbc54CBrianMillerhttp://social.msdn.microsoft.com/Profile/en-US/?user=CBrianMillerCan a project file be used twice?I'm building multiple libraries. Most share some features but all are distinct in some way. In order that I minimizes the number of project files, I'm attempting to reuse project files. The problem is that previous libraries are being deleted:<br/><br/> <pre> &lt;MSBuild Projects=&quot;$(WORK_DIR)\NumericsLib.csproj&quot; Targets=&quot;Rebuild&quot; Properties=&quot;Configuration=Release;TargetFrameworkVersion=v2.0;AssemblyName=numerics;Platform=x86;DefineConstants=FINAL&quot; ContinueOnError=&quot;false&quot; /&gt; &lt;MSBuild Projects=&quot;$(WORK_DIR)\NumericsLib.csproj&quot; Targets=&quot;Build&quot; Properties=&quot;Configuration=Release;TargetFrameworkVersion=v2.0;AssemblyName=numerics_mkl;Platform=x86;DefineConstants=FINAL,USE_MKL&quot; ContinueOnError=&quot;false&quot; /&gt;</pre> Notice that my AssemblyName and my DefineConstants are different...<br/><br/>The numerics.dll seems to be created then deleted and replaced with the numerics_mkl.dll when the second MSBuild task is run. That is, if I don't run the second MSBuild task my numerics.dll remains.<br/><br/>Regards,<br/><br/>brianThu, 12 Nov 2009 17:04:51 Z2009-11-16T18:32:42Zhttp://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/072c8832-2ecf-4739-b4e2-35cf536c7091http://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/072c8832-2ecf-4739-b4e2-35cf536c7091JeffSRhttp://social.msdn.microsoft.com/Profile/en-US/?user=JeffSRVCBuild does not detect precompiled header changes correctlyI am having a peculiar build issue.&nbsp; When I run an msbuild script using the VCBuild task to compile C++ projects, the precompiled headers do not seem to be updated correctly.&nbsp; For example, if in stdafx.h I include a file "Test.h," and then change something in Test.h, vcbuild doesn't pick up that change and this can generate false compilation errors, as the pch file is out of date.&nbsp; I was wondering if anyone else has ever seen this and knows how to fix this apart from rebuilding the entire project or removing the pch files.&nbsp; Currently I am using a custom task that calls devenv, which does seem to pick up the change, but I was hoping for a more "official" way.Mon, 05 Oct 2009 13:37:31 Z2009-11-13T10:11:51Zhttp://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/4e835347-cf30-467c-9811-3b7820906955http://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/4e835347-cf30-467c-9811-3b7820906955Visweswaran........The Role Makerhttp://social.msdn.microsoft.com/Profile/en-US/?user=Visweswaran........The%20Role%20MakerHow to set password for created databaseHi,<br/> <br/> I created a runtime ms-access database using vb.net. In that I also created with password too. Now I want to set a password for already created database through coding.. Is anyone share your points?Tue, 10 Nov 2009 05:10:47 Z2009-11-16T02:34:08Zhttp://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/dfe4bfcc-b7fc-42e7-a09b-0a7af6a6a1f5http://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/dfe4bfcc-b7fc-42e7-a09b-0a7af6a6a1f5guoqingyuhttp://social.msdn.microsoft.com/Profile/en-US/?user=guoqingyuWeb deployment project - replace multiple sections in configure fileHow can I put all the sections to be replaced in web.config in one file?<br/> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="color:#1f497d"><span style="font-size:small"><span style="font-family:Calibri">I would get compile error: </span></span></span><span style="color:#1f497d"><span style="font-size:small"><span style="font-family:Calibri">XML document cannot contain multiple root level elements. </span></span></span></p> <br/>configSections=web.PROD.config;<br/>loggingConfiguration=web.PROD.config;<br/>connectionStrings=web.PROD.config;<br/>system.diagnostics=web.PROD.config;<br/>appSettings=web.PROD.config;<br/>system.web=web.PROD.config;<br/>system.codedom=web.PROD.config;<br/>system.webServer=web.PROD.config;<br/>system.serviceModel=web.PROD.config;Thu, 05 Nov 2009 16:21:39 Z2009-11-12T19:48:22Zhttp://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/765fe1ae-931d-4d5b-ba1b-571e2fa8372chttp://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/765fe1ae-931d-4d5b-ba1b-571e2fa8372cChris 4F27446F6E6E656C6Chttp://social.msdn.microsoft.com/Profile/en-US/?user=Chris%204F27446F6E6E656C6CSlow c++ builds with VS2008 / msbuildI noticed our c++ project builds with either VS2008 / msbuild are 3x to 5x slower than with VS2005.&nbsp; It turns out with that most of our c++ projects are not using precompiled headers (when building with 2008 or with 2005).&nbsp; This appears to be a bug with 2008.&nbsp; Using filemon, you can see lots of STL header file searches in rather odd directories before finding them in the expected location, this occurs for every single .cpp file being built.&nbsp; Enabling precompiled headers solves the problem, the builds go must faster in 2008.<br /> <br /> Has anyone seen this before, and better still, is there a workaround that doesn't require enabling precompiled headers?<br /> <br /> Many thanks,<br /> -Chris OWed, 14 Oct 2009 20:14:56 Z2009-11-11T09:50:47Zhttp://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/f38e30a9-6d21-4496-b6ca-aaf740adb129http://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/f38e30a9-6d21-4496-b6ca-aaf740adb129A n thttp://social.msdn.microsoft.com/Profile/en-US/?user=A%20n%20tInstalling StyleCop onto MSBuildHi,<br/><br/>I want to install styleCop onto MSBuild so that it is global to all users &amp; I can set all rules at one central place.<br/><br/>has anybody had experience in doing this?<br/><br/>Many thanks for any responses<hr class="sig">@ntTue, 03 Nov 2009 23:08:44 Z2009-11-11T05:35:21Zhttp://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/b3281029-686c-4dc0-866a-e7dc2e0607d0http://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/b3281029-686c-4dc0-866a-e7dc2e0607d0stuartwestonhttp://social.msdn.microsoft.com/Profile/en-US/?user=stuartwestonMSBUILD Error : MSB4115 The "exists" function only accepts a scalar valueAny ideas for getting around this one:<br/> <br/> (InitializeBuild target) -&gt; <br/>   C:\Program Files\MSBuild\Microsoft\VisualStudio\TeamBuild\Microsoft.TeamFoundation.Build.targets(743,11): error MSB4115: The &quot;exists&quot; function only accepts a scalar value, but its argument &quot;$(SolutionRoot)&quot; evaluates to &quot;C:\B\1\ExpertSuite\VS2010.Libraries.Foundation\Sources;C:\B\1\ExpertSuite\VS2010.Libraries.Foundation\Sources&quot; which is not a scalar value.<br/> <br/> Have looked at :<br/> <br/> <p class=MsoNormal style="margin-left:36pt"><span style="color:#1f497d" lang=EN-US><a href="http://msdn.microsoft.com/en-us/library/7szfhaft(VS.100).aspx">http://msdn.microsoft.com/en-us/library/7szfhaft%28VS.100%29.aspx</a> </span></p> <p class=MsoNormal style="margin-left:36pt"> </p> <p class=MsoNormal><span style="color:#1f497d" lang=EN-US>From the link above the condition used is valid and Exists should accept a String. So the target in Microsoft.TeamFoundation.Build.Targets should be valid. But its reporting an error that Exists only accepts a scalar value. This condition is used through out </span> <span style="color:#1f497d" lang=EN-US>Microsoft.TeamFoundation.Build.Targets.</span></p>Fri, 06 Nov 2009 00:50:42 Z2009-11-11T03:05:51Z