A great way to integrate Resharper into CI or script based tasks is to use Resharper command line tools: JetBrains Resharper command line.
.Net MVC Call a controller from another controller with IOC
Sometimes you might want to invoke another controller action from a controller, here’s how you do it (Assuming you’re using some sort of IOC)
var controller = DependencyResolver.Current.GetService<YourController>(); controller.yourMethod();
Git: force a push
Recommendations on how to force a push request: Stackoverflow – how do I properly force a git push?.
Git: merge or rebase
Good article clearing up the differences between a merge and rebase and why you’d choose to do either: sourcetreeapp.com – merge or rebase.
Generally you never rebase anything that you’ve pushed somewhere, but use a merge instead.
Windows file checksum and integrity checker – FCIV
Everyone should be using something like this to verify the integrity of downloaded files: FCIV tool.
Some useful AWS slides
Here’s some useful AWS slides: www.slideshare.net/AmazonWebServices.
.Net ASP.NET vNext
With vNext coming up, it’s worth getting up to speed with how it’s going to change .Net dev. A useful article in CodeMag ASP.NET vNext: The Next Generation.
The hackers bookshelf
A really good list of books for developers: Hackers bookshelf.
.Net MVC view compliation
An article from Jim Lamb on how to enable view compilation in Visual Studio.
Using the project file configuration:
<PropertyGroup> <MvcBuildViews>true</MvcBuildViews> </PropertyGroup>
.Net generic methods
A quick look at generic methods and a modified example from: dotnetperls where classes are added to the the generic list type.
using System; using System.Collections.Generic; namespace GenericMethods { public class GenericsConsole { private static List<T> GetInitializedList<T>(T value, int count) { var list = new List<T>(); for (var i = 0; i < count; i++) { list.Add(value); } return list; } static void Main() { var bools = GetInitializedList(true, 2); var strings = GetInitializedList("String", 2); var ints = GetInitializedList(1, 2); var classes = GetInitializedList(new TestClass(), 2); foreach (var value in bools) { Console.WriteLine(value); } foreach (var value in strings) { Console.WriteLine(value); } foreach (var value in ints) { Console.WriteLine(value); } foreach (var value in classes) { Console.WriteLine(value.Message); } Console.ReadKey(); } private class TestClass { public string Message { get; private set; } public TestClass() { Message = "Hello"; } } } }