|
|
|
@ -88,13 +88,14 @@ CleanFolder()
|
|
|
|
|
|
|
|
|
|
BuildWithMSBuild()
|
|
|
|
|
{
|
|
|
|
|
installationPath=`$vswhere -latest -products \* -requires Microsoft.Component.MSBuild -property installationPath`
|
|
|
|
|
installationPath=${installationPath/C:\\/\/c\/}
|
|
|
|
|
installationPath=${installationPath//\\/\/}
|
|
|
|
|
msBuild="$installationPath/MSBuild/$msBuildVersion/Bin"
|
|
|
|
|
echo $msBuild
|
|
|
|
|
msBuildPath=`$vswhere -latest -products \* -requires Microsoft.Component.MSBuild -find MSBuild\\\\\*\*\\\\Bin\\\\MSBuild.exe`
|
|
|
|
|
msBuildPath=${msBuildPath/C:\\/\/c\/}
|
|
|
|
|
msBuildPath=${msBuildPath//\\/\/}
|
|
|
|
|
msBuildDir=$(dirname "$msBuildPath")
|
|
|
|
|
|
|
|
|
|
export PATH=$msBuild:$PATH
|
|
|
|
|
echo $msBuildDir
|
|
|
|
|
|
|
|
|
|
export PATH=$msBuildDir:$PATH
|
|
|
|
|
CheckExitCode MSBuild.exe $slnFile //p:Configuration=Release //p:Platform=x86 //t:Clean //m
|
|
|
|
|
$nuget restore $slnFile
|
|
|
|
|
CheckExitCode MSBuild.exe $slnFile //p:Configuration=Release //p:Platform=x86 //t:Build //m //p:AllowedReferenceRelatedFileExtensions=.pdb
|
|
|
|
|