Browse Source

Force submodule builds to net35 on CI

ghorsington 5 years ago
parent
commit
6d9d91fb57
1 changed files with 5 additions and 4 deletions
  1. 5 4
      scripts/jenkins_master.groovy

+ 5 - 4
scripts/jenkins_master.groovy

@@ -45,10 +45,11 @@ Changes since ${latestTag}:
         stage('Prepare BepInEx') {
             steps {
                 dir('BepInEx') {
-                    sh '''
-						nuget restore
-						mkdir -p "lib"
-					'''
+                    sh "mkdir -p lib"
+
+                    // Ghetto fix to force TargetFrameworks to only net35
+                    sh "find . -type f -name \"*.csproj\" -exec sed -i -E \"s/(<TargetFrameworks>)[^<]+(<\\/TargetFrameworks>)/\\1net35\\2/g\" {} +"
+                    sh "nuget restore"
                 }
 
                 dir('BepInEx/BepInEx') {