소스 검색

Explicitly set target .NET version in build script

ghorsington 5 년 전
부모
커밋
1a09a5316f
1개의 변경된 파일4개의 추가작업 그리고 2개의 파일을 삭제
  1. 4 2
      build.cake

+ 4 - 2
build.cake

@@ -68,10 +68,12 @@ Task("Build")
 
     buildVersion = FindRegexMatchInFile(bepinExProperties + File("AssemblyInfo.cs"), "[0-9]+\\.[0-9]+\\.[0-9]+\\.[0-9]+", System.Text.RegularExpressions.RegexOptions.None);
 
-    MSBuild("./BepInEx.sln", new MSBuildSettings {
+    var buildSettings = new MSBuildSettings {
         Configuration = "Release",
         Restore = true
-    });
+    };
+    buildSettings.Properties["TargetFrameworks"] = new []{ "net35" };
+    MSBuild("./BepInEx.sln", buildSettings);
 })
 .Finally(() => 
 {