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
$assemblyFile = "$env:APPVEYOR_BUILD_FOLDER\src\GlobalAssemblyInfo.cs" | |
$regex = new-object System.Text.RegularExpressions.Regex ('(AssemblyInformationalVersion(Attribute)?\s*\(\s*\")(.*)(\"\s*\))', | |
[System.Text.RegularExpressions.RegexOptions]::MultiLine) | |
$content = [IO.File]::ReadAllText($assemblyFile) | |
$version = $null | |
$match = $regex.Match($content) | |
if($match.Success) { |
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
namespace System.Text | |
{ | |
internal static class StringBuilderExtensions | |
{ | |
#if EXTENSIONS_SUPPORTED | |
public static StringBuilder ReplaceAt(this StringBuilder sb, string value, int index, int count) | |
{ | |
return StringBuilderExtensions.ReplaceAt(sb, value, index, count); | |
} | |
#endif |