Skip to content
Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
27 lines (18 sloc) 917 Bytes
param (
[string]$Configuration = "Debug"
)
$homeDirectory = $Env:HOME
if (!$homeDirectory) {
$homeDirectory = $Env:UserProfile
}
Write-Host $homeDirectory
$nugetPackageCacheDirectory = Join-Path -Path $homeDirectory -ChildPath ".nuget"
$nugetPackageCacheDirectory = Join-Path -Path $nugetPackageCacheDirectory -ChildPath "packages"
$nugetPackageCacheDirectory = Join-Path -Path $nugetPackageCacheDirectory -ChildPath "MSBuild.AdditionalTasks"
Write-Host $nugetPackageCacheDirectory
if ((Test-Path $nugetPackageCacheDirectory)) {
Get-ChildItem -Path $nugetPackageCacheDirectory -Recurse -Hidden | Remove-Item -Force
Remove-Item -Path $nugetPackageCacheDirectory -Force -Recurse
}
& dotnet build ./src/MSBuild.AdditionalTasks.sln /binaryLogger:msbuild.binlog /nodeReuse:false -c $Configuration
& dotnet build ./tests/Tests.sln /binaryLogger:msbuild.tests.binlog /nodeReuse:false -c $Configuration
You can’t perform that action at this time.