Category Archives: Visual Studio

YUI COMPRESSOR SINGLE FILE GENERATOR FOR VS2013

In the past I used a Javascript and CSS minifier in Visual Studio that I built on top of the original YUI compressor.  I implemented it via a Custom Tool / Single File Generator.  I figured this might be helpful with minifying the output of TypeScript.  I wanted to eliminate the Java dependency however, so  I built the generator on top of YUI Compressor.NET.  Unfortunately, this doesn’t seem to work for my situation.  When TypeScript generates new Javascript output it doesn’t seem to trigger the SFG to do its thing.   In any case I put the source on Github for anyone who is interested.

Exception has been thrown by the target of an invocation

I tried creating a new, empty ASP.NET Web Application in Visual Studio 2013, with MVC support and got the exception “Exception has been thrown by the target of an invocation” repeatedly.  It always seemed to create the App_Data folder and not much else. Long story short,  after some googling,  I installed SQL Server Express 2012, made sure it was running and then started VS2013.  After that I can create the above project with no error. From this experience, I’d recommend selecting the SQL Express option when installing Visual Studio, even if you don’t plan on using a local database server.