浏览代码

Force submodule builds to net35 on CI

ghorsington 5 年之前
父节点
当前提交
6d9d91fb57
共有 1 个文件被更改,包括 5 次插入4 次删除
  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') {