Bläddra i källkod

Explicitly set target .NET version in build script

ghorsington 4 år sedan
förälder
incheckning
1a09a5316f
1 ändrade filer med 4 tillägg och 2 borttagningar
  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(() => 
 {