I hereby claim:
- I am lennybacon on github.
- I am lennybacon (https://keybase.io/lennybacon) on keybase.
- I have a public key ASA16UO09lZtVNlUgJ6ZBwhCPv0a9WnCypehkdhNFdyFmAo
To claim this, I am signing this object:
| $setupPath = [System.IO.Path]::Combine($installLocation, "SQL2016", "SSMS-Setup-ENU.exe"); | |
| $argumentList = ` | |
| "/install " +` | |
| "/quiet " +` | |
| "/norestart" | |
| $process = Start-Process $setupPath -ArgumentList $argumentList -PassThru -NoNewWindow -Wait -RedirectStandardOutput $pwd\ssms_stdout.txt -RedirectStandardError $pwd\ssms_stderr.txt |
| Get-Content -Path <Path> -Wait -Tail 10 | |
| # Print whole file and wait for appended lines and print them | |
| cat <Path> -Wait | |
| # Print last 10 lines and wait for appended lines and print them | |
| cat <Path> -Tail 10 -Wait |
| function Get-LatestMsBuild{ | |
| $msbuild = Get-ChildItem -Path "C:\Program Files (x86)\Microsoft Visual Studio" | | |
| ? { !$PsIsContainer -and $_.Name.StartsWith("20") } | | |
| % { @([System.IO.Path]::Combine($_.FullName, "Enterprise", "MsBuild"), [System.IO.Path]::Combine($_.FullName, "Professional", "MsBuild"), [System.IO.Path]::Combine($_.FullName, "Community", "MsBuild"))} | | |
| ? { (Test-Path -Path $_) } | | |
| % { Get-ChildItem -Path $_ | ? { !$PsIsContainer -and $_.Name.StartsWith("1") } | Select-Object -Expand FullName } | | |
| % { Get-ChildItem -Path $_ -Recurse | ? { !$PsIsContainer -and $_.FullName.EndsWith("amd64\msbuild.exe", "OrdinalIgnoreCase") } } | | |
| Select-Object -First 1 | |
| if($msbuild -ne $null){ |
| <Project ToolsVersion="15.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
| <PropertyGroup> | |
| <NugetFixUpTaskPaths>$([System.IO.Directory]::GetFiles("$(UserProfile)\.nuget\packages\nugetfixuptasks", "*.targets", SearchOption.AllDirectories))</NugetFixUpTaskPaths> | |
| <LatestNugetFixUpTaskImport>$(NugetFixUpTaskPaths.Remove(0, $([MSBuild]::Add( $(NugetFixUpTaskPaths.LastIndexOf(";")), 1 )) ))</LatestNugetFixUpTaskImport> | |
| </PropertyGroup> | |
| <Import Project="$(LatestNugetFixUpTaskImport)" /> | |
| <Target Name="Build"> | |
| <Message Text="LatestNugetFixUpTaskImport: $(LatestNugetFixUpTaskImport)" /> | |
| </Target> | |
| </Project> |
I hereby claim:
To claim this, I am signing this object:
| <?xml version="1.0" encoding="utf-8"?> | |
| <Project ToolsVersion="15.0" DefaultTargets="TellIfBranchIsPullRequest" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
| <PropertyGroup> | |
| <BUILD_SOURCEBRANCH>refs/pull/1/merge</BUILD_SOURCEBRANCH> | |
| <IsPullRequest Condition="$(BUILD_SOURCEBRANCH.IndexOf(`/pull/`)) != -1">true</IsPullRequest> | |
| <IsPullRequest Condition="$(BUILD_SOURCEBRANCH.IndexOf(`/pull/`)) == -1">false</IsPullRequest> | |
| </PropertyGroup> | |
| <Target Name="TellIfBranchIsPullRequest"> |
| <?xml version="1.0" encoding="utf-8"?> | |
| <Project ToolsVersion="15.0" DefaultTargets="GetCredentials" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
| <UsingTask | |
| TaskName="CredentialManager" | |
| TaskFactory="CodeTaskFactory" | |
| AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.v4.0.dll" > | |
| <ParameterGroup> | |
| <Target ParameterType="System.String" Required="true" /> | |
| <UserName ParameterType="System.String" Output="true" /> | |
| <Password ParameterType="System.String" Output="true" /> |
| and(succeeded(), ne(variables['Build.RequestedFor'], 'Microsoft.TeamFoundation.System')) |
| & git config user.email "[email protected]" | |
| & git config user.name "Build Server" | |
| $o = Invoke-Expression "& git fetch origin master 2>&1" | |
| $o = Invoke-Expression "& git checkout master 2>&1" |
| <?xml version="1.0" encoding="utf-8"?> | |
| <ImageManifest | |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xmlns:xsd="http://www.w3.org/2001/XMLSchema" | |
| xmlns="http://schemas.microsoft.com/VisualStudio/ImageManifestSchema/2014"> | |
| <Symbols> | |
| <String Name="Resources" Value="/{ASSEMBLYNAME_HERE};Component/Icons" /> | |
| <Guid Name="MonikersGuid" Value="{GUID_HERE}" /> | |
| <ID Name="{EXTENSION_HERE}" Value="{NUMBER_HERE}" /> | |
| </Symbols> |