[{"data":1,"prerenderedAt":287},["ShallowReactive",2],{"article-tfs-build-2015-not-transforming-web-config":3},{"article":4,"tags":75,"previous":90,"next":179},{"id":5,"title":6,"author":7,"body":8,"createdAt":64,"description":65,"extension":66,"img":59,"meta":67,"navigation":68,"path":69,"seo":70,"stem":71,"tags":72,"updatedAt":64,"__hash__":74},"articles\u002Farticles\u002Ftfs-build-2015-not-transforming-web-config.md","TFS Build 2015 Not Transforming Web.Config","[object Object]",{"type":9,"value":10,"toc":60},"minimark",[11,15,18],[12,13,14],"p",{},"The following is the solution that addressed this problem. While setting up a project for TFS build, I came across issues with the build system not transforming my web.config to different configurations. i.e. I want my web.config to be transformed with web.config.release upon build\u002Fpublish. I found the following solution that worked for me.",[12,16,17],{},"Within Visual Studio, unload the web project (in this case I am working with a web application), scroll to the bottom and add the following task. On the build server you can ensure that the path is valid and it is referencing the most appropriate version. The UsingTask imports the TransformXml method from Microsoft.Web.Publishing.Tasks.dll",[19,20,23,34,35,47,48],"using-task",{"taskname":21,"assemblyfile":22},"TransformXml","$(MSBuildExtensionsPath)\\Microsoft\\VisualStudio\\v14.0\\Web\\Microsoft.Web.Publishing.Tasks.dll",[24,25,28],"target",{"name":26,"condition":27},"ApplyTransform","Exists('Web.$(Configuration).config')",[29,30],"transform-xml",{"source":31,"transform":32,"destination":33},"web.config","Web.$(Configuration).config","Web.config"," \nThen within the BeforeBuild Target add ",[24,36,38,39],{"name":37},"BeforeBuild"," \n",[40,41,43,44],"exec",{"command":42},"attrib -r Web.config"," ",[45,46],"calltarget",{"targets":26},"   Exec removes the read-only attribute from the web.config file and the CallTarget will ApplyTransform target \n",[49,50,53],"a",{"style":51,"href":52},"display: none;width:65%","\u002Farticles\u002Fimages\u002Fopen-live-writer-7e779723aa75_11131-tfs2_2.png",[54,55],"img",{"title":56,"style":57,"border":58,"alt":56,"src":59},"tfs2","border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px",0,"\u002Farticles\u002Fimages\u002Fopen-live-writer-7e779723aa75_11131-tfs2_thumb.png",{"title":61,"searchDepth":62,"depth":62,"links":63},"",2,[],"2017-05-29T20:59:16.1568524Z",null,"md",{},true,"\u002Farticles\u002Ftfs-build-2015-not-transforming-web-config",{"title":6,"description":65},"articles\u002Ftfs-build-2015-not-transforming-web-config",[73],"teamfoundationserver","lOC0JMfw8ZGxSAnqXj8dgfW8SGFqPE_xBIFss2cj8pg",[76],{"id":77,"title":78,"body":79,"description":83,"extension":66,"img":84,"meta":85,"name":73,"navigation":68,"path":86,"seo":87,"stem":88,"__hash__":89},"tags\u002Ftags\u002Fteamfoundationserver.md","Teamfoundationserver",{"type":9,"value":80,"toc":81},[],{"title":61,"searchDepth":62,"depth":62,"links":82},[],"Team Foundation Server (often abbreviated to TFS) is a Microsoft product that provides tools and technologies designed to help teams collaborate and orchestrate their efforts to finish projects or create a product. It enables DevOps capabilities covering the entire application lifecycle","https:\u002F\u002Fimages.unsplash.com\u002Fphoto-1598313183973-4effcded8d5e?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=675&q=80",{},"\u002Ftags\u002Fteamfoundationserver",{"description":83},"tags\u002Fteamfoundationserver","CEZSgtqpsn_JuGubePK9lUUC42p0YpLGI5j3KuMwrSY",{"id":91,"title":92,"author":65,"body":93,"createdAt":170,"description":171,"extension":66,"img":114,"meta":172,"navigation":68,"path":173,"seo":174,"stem":175,"tags":176,"updatedAt":170,"__hash__":178},"articles\u002Farticles\u002Fxamarin-android-device-manager-diskdatapartitionsize.md","Xamarin Android Device Manager, disk.dataPartition.size",{"type":9,"value":94,"toc":168},[95,98,105,117,141,144,155,158],[12,96,97],{},"Changing the size of emulator memory as a result of INSTALL_FAILED_INSUFFICIENT_STORAGE error message.",[12,99,100,101,104],{},"Step 1 Edit Configuration files",[102,103],"br",{},"\nLocate the configuration files by opening the directory for the particular emulator.  Ensure that the emulator is stopped before proceeding.",[12,106,107],{},[49,108,110],{"href":109},"\u002Farticles\u002Fimages\u002Fimage_636635510284638219.png",[54,111],{"style":112,"title":113,"src":114,"alt":113,"width":115,"height":116,"border":58},"margin: 0px; display: inline; background-image: none;","image","\u002Farticles\u002Fimages\u002Fimage_thumb_636635510288324866.png",321,160,[118,119,120,129,132,135],"ul",{},[121,122,123,124,128],"li",{},"Edit ",[125,126,127],"strong",{},"hardware-qemu.ini"," file",[121,130,131],{},"Before disk.dataPartition.size = 550m",[121,133,134],{},"After disk.dataPartition.size = 8192m",[121,136,123,137,140],{},[125,138,139],{},"config.ini"," (change to the following) disk.dataPartition.size=8192M",[12,142,143],{},"Step 2 Factory Reset the emulator before booting the emulator, start up.",[12,145,146],{},[49,147,149],{"href":148},"\u002Farticles\u002Fimages\u002Fimage_636635510293311055.png",[54,150],{"style":151,"title":113,"src":152,"alt":113,"width":153,"height":154,"border":58},"display: inline; background-image: none;","\u002Farticles\u002Fimages\u002Fimage_thumb_636635510296662287.png",336,164,[12,156,157],{},"Step 3 Start up emulator and take a look at storage now.",[12,159,160],{},[49,161,163],{"href":162},"\u002Farticles\u002Fimages\u002Fimage_636635510300830063.png",[54,164],{"style":151,"title":113,"src":165,"alt":113,"width":166,"height":167,"border":58},"\u002Farticles\u002Fimages\u002Fimage_thumb_636635510304088087.png",181,319,{"title":61,"searchDepth":62,"depth":62,"links":169},[],"2018-06-02T19:33:00.000Z","Changing the size of emulator memory as a result of INSTALL_FAILED_INSUFFICIENT_STORAGE error message.  Using the following information you can resize the memory allocated to particular android emulator.",{},"\u002Farticles\u002Fxamarin-android-device-manager-diskdatapartitionsize",{"title":92,"description":171},"articles\u002Fxamarin-android-device-manager-diskdatapartitionsize",[177],"xamarin","FQg2AVDtJFEVZK1j13-8ho-HWvJYPApSvpnabHJdVBg",{"id":180,"title":181,"author":7,"body":182,"createdAt":279,"description":186,"extension":66,"img":198,"meta":280,"navigation":68,"path":281,"seo":282,"stem":283,"tags":284,"updatedAt":279,"__hash__":286},"articles\u002Farticles\u002Fsql-server-profiler-trace-for-your-application.md","SQL Server Profiler - Trace for your Application",{"type":9,"value":183,"toc":277},[184,187,190,201,204,214,225,228,237,240,250,269],[12,185,186],{},"I want to watch the queries made by my application during development efforts.",[12,188,189],{},"Here is what I do… from SQL Server Management Studio, select SQL Server Profiler",[12,191,192],{},[49,193,195],{"href":194},"\u002Farticles\u002Fimages\u002Fwindows-live-writer-cdd803dd36c3_860d-image_2.png",[54,196],{"style":197,"src":198,"border":58,"alt":113,"title":113,"width":199,"height":200},"background-image: none; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-width: 0px;","\u002Farticles\u002Fimages\u002Fwindows-live-writer-cdd803dd36c3_860d-image_thumb.png",240,147,[12,202,203],{},"Start a new trace, providing the trace name (here I entered My Trace).  Select ‘Tuning’ for the ‘Use the Template’.  The Tuning template only watches the key events from SQL (RPC:Completed, SP:StmtCompleted, SQL:BatchCompleted).  Many of the other events while important just are not important to me at this point.",[12,205,206],{},[49,207,209],{"href":208},"\u002Farticles\u002Fimages\u002Fwindows-live-writer-cdd803dd36c3_860d-image_4.png",[54,210],{"style":197,"src":211,"border":58,"alt":113,"title":113,"width":212,"height":213},"\u002Farticles\u002Fimages\u002Fwindows-live-writer-cdd803dd36c3_860d-image_thumb_1.png",326,208,[12,215,216,217],{},"Select the columns of value to you, including ApplicationName, HostName, LoginName and DatabaseName.  I also like to add columns StartTime, EndTime and RowCounts\n",[49,218,220],{"href":219},"\u002Farticles\u002Fimages\u002Fwindows-live-writer-cdd803dd36c3_860d-image_8.png",[54,221],{"style":197,"src":222,"border":58,"alt":113,"title":113,"width":223,"height":224},"\u002Farticles\u002Fimages\u002Fwindows-live-writer-cdd803dd36c3_860d-image_thumb_3.png",324,99,[12,226,227],{},"Select Column Filters.  Here we will only show the events from my Application.  The ApplicationName can be specified on your connection string and if you provide you can use here as a filter.  As shown I have provided the Like = ODOT and also I want to exclude (checkbox) all other applications but this one.  Note; You can use wildcards with the like filters i.e. % for wildcard",[12,229,230],{},[49,231,233],{"href":232},"\u002Farticles\u002Fimages\u002Fwindows-live-writer-cdd803dd36c3_860d-image_10.png",[54,234],{"style":197,"src":235,"border":58,"alt":113,"title":113,"width":167,"height":236},"\u002Farticles\u002Fimages\u002Fwindows-live-writer-cdd803dd36c3_860d-image_thumb_4.png",251,[12,238,239],{},"Select ‘Ok’ and execute some SQL.  You will see in the trace ONLY your sql queries from your application.  Invaluable.  I often have profiler running while I am performing unit testing in order to see the generated sql execution.",[12,241,242],{},[49,243,245],{"href":244},"\u002Farticles\u002Fimages\u002Fwindows-live-writer-cdd803dd36c3_860d-image_12.png",[54,246],{"style":197,"src":247,"border":58,"alt":113,"title":113,"width":248,"height":249},"\u002Farticles\u002Fimages\u002Fwindows-live-writer-cdd803dd36c3_860d-image_thumb_5.png",430,77,[12,251,252,253,255,256,258,259,261],{},"Above we are showing the Duration (Amount of elapsed time (in milliseconds) taken by the event.). ",[102,254],{},"\n ",[102,257],{},"\nTip: when complete you can use File Save As to save the newly created profile as a Template, then when you want to re-use for another application it will be there and available (the only modification would be changing the application name variable in the filter).",[102,260],{},[49,262,264],{"href":263},"\u002Farticles\u002Fimages\u002Fwindows-live-writer-cdd803dd36c3_860d-image_6.png",[54,265],{"style":197,"src":266,"border":58,"alt":113,"title":113,"width":267,"height":268},"\u002Farticles\u002Fimages\u002Fwindows-live-writer-cdd803dd36c3_860d-image_thumb_2.png",322,205,[12,270,271,272],{},"Reference: ",[49,273,276],{"href":274,"target":275},"https:\u002F\u002Fmsdn.microsoft.com\u002Fen-us\u002Flibrary\u002Fms190176.aspx","_blank","SQL Server Profiler Templates MSDN",{"title":61,"searchDepth":62,"depth":62,"links":278},[],"2017-05-29T20:59:16.0698525Z",{},"\u002Farticles\u002Fsql-server-profiler-trace-for-your-application",{"title":181,"description":186},"articles\u002Fsql-server-profiler-trace-for-your-application",[285],"sqlserver","HTBk5k_jTh3xjo-5-NdIUQxyV-IPi6QAU0VhquYLg8g",1781574768612]