1
0
Fork 0
mirror of https://github.com/Sonarr/Sonarr synced 2024-12-21 23:33:00 +00:00

Support for VS2019 build environment

This commit is contained in:
Taloth Saldono 2020-02-07 21:16:53 +01:00
parent 268fc46ef7
commit fc5dd8137f
3 changed files with 9 additions and 8 deletions

View file

@ -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

View file

@ -21,10 +21,10 @@ done
# excess goes to the swap and will slow down the entire system
# Preferred versions
MONO_VERSIONS="6.0 5.20 5.18"
MONO_VERSIONS="6.8 6.6 6.4 6.0 5.20 5.18"
# Future versions
MONO_VERSIONS="$MONO_VERSIONS 6.4=preview-xenial"
MONO_VERSIONS="$MONO_VERSIONS 6.10=preview-xenial"
# Supported versions
MONO_VERSIONS="$MONO_VERSIONS 5.16 5.14 5.12 5.10 5.8 5.4"

Binary file not shown.