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 interface ISomeService | |
{ | |
void Run(IGlassBase glassBase); | |
} | |
public class SomeService : ISomeService | |
{ | |
public Run(IGlassBase glassBase) | |
{ | |
// do something |
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 System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Reflection; | |
using System.Web.Http.Controllers; | |
using System.Web.Mvc; | |
using Isobar.Foundation.SitecoreUtilities.Extensions; | |
using Microsoft.Extensions.DependencyInjection; | |
using Microsoft.Extensions.DependencyInjection.Extensions; |
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 System; | |
using System.Collections.Generic; | |
using System.Globalization; | |
using System.IO; | |
using System.Linq; | |
using System.Reflection; | |
using System.Text.RegularExpressions; | |
namespace Isobar.Foundation.SitecoreUtilities.Extensions | |
{ |
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
<?xml version="1.0" encoding="utf-8" ?> | |
<!-- | |
Purpose: This include file enables the History Engine for Sitecore databases. | |
To enable this include file, rename it to have a ".config" extension. | |
--> | |
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/"> | |
<sitecore> |
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
param( | |
[string] $LastGitCommitId, | |
[string] $AccessToken, | |
[string] $AzureDevOpsAccountName, | |
[string] $TeamProjectId, | |
[string] $ReleaseDefinitionId | |
) | |
if ([string]::IsNullOrEmpty($LastGitCommitId)) | |
{ | |
$hdrs = @{} |
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
###################################################### | |
# Retrieves the last successful build of a TeamCity Project | |
# Finding the Commit Hash | |
# http://blogs.lessthandot.com/index.php/uncategorized/access-git-commits-during-a-teamcity-build-using-powershell/ | |
###################################################### | |
function Get-TeamCityLastSuccessfulRun([string] $TeamCityUrl, [string] $TeamCityBuildTypeId, [string] $TeamCityUsername, [string] $TeamCityPassword) | |
{ | |
$Credentials = "$($TeamCityUsername):$($TeamCityPassword)" | |
$AuthString = [System.Convert]::ToBase64String([System.Text.Encoding]::UTF8.GetBytes("$Credentials")) |
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
.".\PackageInstallerFunction.ps1" | |
$PSScriptRoot = Split-Path $MyInvocation.MyCommand.Path -Parent | |
PackageInstall "Website" $PSScriptRoot "https:\\some.website" |
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 PackageInstall($WebSiteFolder, $PSScriptRoot, $sitecoreUrl) | |
{ | |
#build tds projects | |
& "..\\VS Build Scripts\\DeveloperTdsBuild.bat" | |
#set package installer paths | |
$RepoDir = Split-Path $PSScriptRoot -parent | |
$parentDir = Split-Path $RepoDir -parent | |
$TDSPackagesFolder = $RepoDir + "\TDSPackages" | |
$PackageInstallerExePath = $RepoDir + "\TdsPackageInstaller\PackageInstaller.exe" |
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
@echo off | |
:: global parameters | |
set msbuild="C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe" | |
set solution="..\Some.Sitecore.sln" | |
echo Please enter a Git Commit Hash, leaving it empty to build the entire TDS packages. | |
set GitCommitId = | |
set /P GitCommitId= | |
If "%GitCommitId%" == "" GOTO BuildFullTds |
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="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild"> | |
<PropertyGroup> | |
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText> | |
</PropertyGroup> | |
<Error Condition="!Exists('..\packages\Hedgehog.TDS.BuildExtensions.GitDeltaDeploy.2.0.2\build\Hedgehog.TDS.BuildExtensions.GitDeltaDeploy.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Hedgehog.TDS.BuildExtensions.GitDeltaDeploy.2.0.2\build\Hedgehog.TDS.BuildExtensions.GitDeltaDeploy.targets'))" /> | |
<Error Condition="!Exists('..\packages\HedgehogDevelopment.TDS.5.7.0.10\build\HedgehogDevelopment.TDS.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\HedgehogDevelopment.TDS.5.7.0.10\build\HedgehogDevelopment.TDS.targets'))" /> | |
</Target> | |
<Import Project="..\packages\HedgehogDevelopment.TDS.5 |