Instantly share code, notes, and snippets.

View target.xml
C:\Program Files (x86)\MSBuild\12.0\Bin\Microsoft.Common.CurrentVersion.targets
<Target Name="_CheckForInvalidConfigurationAndPlatform"></Target>
<Target Name="Build" Condition=" '$(_InvalidConfigurationWarning)' != 'true' " DependsOnTargets="$(BuildDependsOn)" Returns="$(TargetPath)" />
<Target Name="BeforeBuild" />
<Target Name="AfterBuild" />
<Target Name="CoreBuild" DependsOnTargets="$(CoreBuildDependsOn)"></Target>
<Target Name="Rebuild" Condition=" '$(_InvalidConfigurationWarning)' != 'true' " DependsOnTargets="$(RebuildDependsOn)" Returns="$(TargetPath)" />
<Target Name="BeforeRebuild" />
<Target Name="AfterRebuild" />
<Target Name="BuildGenerateSources" DependsOnTargets="BuildGenerateSourcesTraverse;$(BuildGenerateSourcesAction)" />
View UpdateIISBindings.ps1
param(
[Parameter(Position=0,Mandatory=$true)]
[Alias("Site")]
$siteName,
[Parameter(Position=1,Mandatory=$true)]
$domain,
[Parameter(Position=2)]
$configPath = "App_Config\Include\zzz\Project.SiteDefinitions.config"
[Parameter(Position=3)]
$xpath = "/configuration/sitecore/sites/site"
View RecursivelyApplyNamespaces.ps1
param(
[Parameter(Position=0,Mandatory=$true)]
[Alias("Path")]
$rootPath,
[Parameter(Position=1,Mandatory=$true)]
[Alias("Namespace")]
$rootNamespace
)
$namespacePattern = "namespace\s+([^\s]+)"
View Dialog.cs
public class Dialog<TModel> : UiComponent<TModel>
where TModel : class, new()
{
private IWebElement Element
{
get
{
return this.Find.Element(By.CssSelector(".dialog.modal"));
}
View ToggleCss.html
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<title></title>
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="/Content/Design.css">
<link rel="stylesheet" href="/Content/Print.css" disabled="disabled">
<link rel="stylesheet" href="/Content/Large.css" disabled="disabled">
</head>
View DerivingTypes.ps1
[T4Scaffolding.Scaffolder(Description = "Enter a description of Generator here")][CmdletBinding()]
param(
[parameter(Mandatory = $true, Position = 0)][string]$ParentTypeName,
[string]$Project,
[string]$CodeLanguage,
[string[]]$TemplateFolders,
[switch]$Force = $false
)
$parentType = Get-ProjectType $ParentTypeName