The Visual Studio template for ASP.NET MVC 5 comes with Microsoft.AspNet.Web.Optimization, which is used in BundleConfig they provide you. I haven’t used this much and wanted to try it. I wiped out the default stuff and included a line for the only script I needed. public class BundleConfig { // For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862 public static void RegisterBundles( BundleCollection …
What are the ‘m’ and ‘c’ buttons in Mini Profiler?
I thought this answer was a bit unGoogleable. After upgrading StackExchange’s Mini Profiler I noticed an ‘m’ and ‘c’ at the button. But their use isn’t incredible clear. It turns out, the ‘m’ is minimize/maximize, which is great for those pesky situations where it’s covering a piece of the page you need to see. The ‘c’ button is “clear”: it …
How to Activate Your MSDN Pluralsight Benefit
Update 5/25/17 It’s a bit easier to activate the benefit now. As John Henckel pointed out in comments, all you need to do now is go to https://my.visualstudio.com and click on the Pluralsight logo. Done! I found it pretty un-Googleable to figure out how to get your recently-announced Pluralsight subscription through your MSDN subscription. (I had to watch a video to …
How to Recycle the IIS Default Application from the Command Prompt
I got sick of navigating to Internet Information Services Manager just to manually recycle the application pool on my development machine. I threw the following command into a batch script. C:\Windows\System32\inetsrv\appcmd recycle apppool DefaultAppPool
Great Tool for Converting WebForms Views to Razor Views
The ASP.NET MVC Razor view engine has been out for a while now. I think it’s great for improving readability in complex MVC views. Especially with its magical-context-guessing ability, it greatly improves readability over the WebForms syntax. I found a great tool from Telerik that helped me convert an entire solution to Razor syntax. The word ‘helped’ is important here …
How to use Sitefinity’s PageSelector widget in a custom content field.
Situation: You’re using Telerik’s Sitefinity framework. You’re using the module builder to create a new content type that the client can use to add items of a certain type. They want one of the fields to be a URL of a page within Sitefinity. That sounds easy enough. You’re adding the URL field to the new content type, selecting GUID …