This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <Target Name="BeforeBuild"> | |
| <TransformXml Source="Web.base.config" Transform="Web.$(Configuration).config" Destination="Web.config" /> | |
| <TransformXml Source="config\FileSystemProviders.base.config" Transform="config\FileSystemProviders.$(Configuration).config" Destination="config\FileSystemProviders.config" /> | |
| </Target> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function Rename-Script-File ($sourceFile, $targetFile) | |
| { | |
| If ((Test-Path $targetFile) -and (Test-Path $sourceFile)) | |
| { | |
| Remove-Item $targetFile | |
| } | |
| If (Test-Path $sourceFile) | |
| { | |
| Rename-Item $sourceFile $targetFile | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Get-Item . | Publish-Item -Recurse -PublishMode Full |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> | |
| ... | |
| <ExcludeFilesFromDeployment>File1.aspx;Folder2\File2.aspx</ExcludeFilesFromDeployment> | |
| <ExcludeFilesFromDeployment>**\.svn\**\*.*</ExcludeFilesFromDeployment> | |
| <ExcludeFoldersFromDeployment>Folder1;Folder2\Folder2a</ExcludeFoldersFromDeployment> | |
| </PropertyGroup> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $targetFileName = 'c:\temp\ItemRenderings.txt' | |
| function Show-Rendering | |
| { | |
| param ($renderingItem) | |
| $renderingName = $renderingItem.Name | |
| $renderingId = $renderingItem.Id | |
| $placeholderName = $renderingItem.Placeholder | |
| "Rendering Item: $renderingId | $renderingName | $placeholderName" | Out-File $targetFileName -Append | |
| } | |
| $devices = [Sitecore.Configuration.Factory]::GetDatabase("master").Resources.Devices.GetAll() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <Content Include="Sitecore_Data\Unicorn\Default Configuration\\**\*.yml"> | |
| <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | |
| </Content> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| & 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\vsdiffmerge' "file1.txt" "file2.txt" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @using Sitecore.Mvc.Presentation | |
| @using Sitecore.Mvc | |
| @model RenderingModel | |
| @{ | |
| Layout = null; | |
| } | |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta name="viewport" content="width=device-width" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <% foreach (var key in Request.Cookies.AllKeys) | |
| { | |
| Response.Write(string.Format("Key:{0}|Value:{1}|\r\n", key, Request.Cookies[key].Value)); | |
| } %> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public static class DependencyObjectExtensions | |
| { | |
| /// <summary> | |
| /// Creates a new instance of the same type and copies all properties and values. | |
| /// </summary> | |
| /// <typeparam name="T">A type that extends DependencyObject</typeparam> | |
| /// <param name="source"></param> | |
| /// <returns>A new instance that represents a copy of the properties and values of the original instance.</returns> |