Skip to content

Instantly share code, notes, and snippets.

@matijagrcic
Last active August 29, 2015 14:10
Show Gist options
  • Select an option

  • Save matijagrcic/37931d0308c350bb15ec to your computer and use it in GitHub Desktop.

Select an option

Save matijagrcic/37931d0308c350bb15ec to your computer and use it in GitHub Desktop.
//GO TO: C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\ItemTemplates\CSharp\Code\1033
//Open Class folder then Class.cs
//Open WebClass folder then Class.cs
// ---------------------------------------------------------------------
// <copyright file="$safeitemrootname$.cs" company="XXX">
// Copyright (c) XXX. All Rights Reserved.
// Information Contained Herein is Proprietary and Confidential.
// </copyright>
// <summary>
// Class representing a $safeitemrootname$.cs
// </summary>
// <author>XXX YYY</author>
// ---------------------------------------------------------------------
namespace $rootnamespace$
{
using System;
using System.Collections.Generic;
$if$ ($targetframeworkversion$ >= 3.5)using System.Linq;
$endif$using System.Text;
$if$ ($targetframeworkversion$ >= 4.5)using System.Threading.Tasks;
$endif$
private class $safeitemrootname$
{
}
}
//Open Interface folder then Interface.cs
// ---------------------------------------------------------------------
// <copyright file="$safeitemrootname$.cs" company="XXX">
// Copyright (c) XXX. All Rights Reserved.
// Information Contained Herein is Proprietary and Confidential.
// </copyright>
// <summary>
// Specifies the contracts for
// </summary>
// <author>XXX YYY</author>
// ---------------------------------------------------------------------
namespace $rootnamespace$
{
using System;
using System.Collections.Generic;
$if$ ($targetframeworkversion$ >= 3.5)using System.Linq;
$endif$using System.Text;
$if$ ($targetframeworkversion$ >= 4.5)using System.Threading.Tasks;
$endif$
public interface $safeitemrootname$
{
}
}
//VS2013 Developer Command Prompt
//Create shortcut called VS2013DEV
//Target: runas /savecred /user:DOMAIN\NAME "CMD /K \"C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools\VsDevCmd.bat\""
//Start in: "C:\Program Files (x86)\Microsoft Visual Studio 12.0\"
//ICON %ProgramFiles% (x86)\Microsoft Visual Studio 12.0\Common7\IDE\devenv.exe
//Execute: devenv.exe /installvstemplates
//If the path contains spaces, surround it with escaped double quotes (\"):
// /C Carries out the command specified by string and then terminates
// /K Carries out the command specified by string but remains
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment