|
@@ -55,14 +55,13 @@ Task("Build")
|
|
|
|
|
|
buildVersion = FindRegexMatchGroupInFile(bepinExProperties + File("BepInEx.Shared.projitems"), @"\<Version\>([0-9]+\.[0-9]+\.[0-9]+)\<\/Version\>", 1, System.Text.RegularExpressions.RegexOptions.None).Value;
|
|
buildVersion = FindRegexMatchGroupInFile(bepinExProperties + File("BepInEx.Shared.projitems"), @"\<Version\>([0-9]+\.[0-9]+\.[0-9]+)\<\/Version\>", 1, System.Text.RegularExpressions.RegexOptions.None).Value;
|
|
|
|
|
|
- var buildSettings = new MSBuildSettings {
|
|
|
|
|
|
+ var buildSettings = new DotNetCoreBuildSettings {
|
|
Configuration = "Release",
|
|
Configuration = "Release",
|
|
- Restore = true
|
|
|
|
};
|
|
};
|
|
|
|
|
|
if (isBleedingEdge)
|
|
if (isBleedingEdge)
|
|
{
|
|
{
|
|
- buildSettings.Properties["BuildInfo"] = new[] {
|
|
|
|
|
|
+ buildSettings.MSBuildSettings.Properties["BuildInfo"] = new[] {
|
|
TransformText("BLEEDING EDGE Build #<%buildNumber%> from <%shortCommit%> at <%branchName%>")
|
|
TransformText("BLEEDING EDGE Build #<%buildNumber%> from <%shortCommit%> at <%branchName%>")
|
|
.WithToken("buildNumber", buildId)
|
|
.WithToken("buildNumber", buildId)
|
|
.WithToken("shortCommit", currentCommit)
|
|
.WithToken("shortCommit", currentCommit)
|
|
@@ -70,21 +69,21 @@ Task("Build")
|
|
.ToString()
|
|
.ToString()
|
|
};
|
|
};
|
|
|
|
|
|
- buildSettings.Properties["AssemblyVersion"] = new[] { buildVersion + "." + buildId };
|
|
|
|
|
|
+ buildSettings.MSBuildSettings.Properties["AssemblyVersion"] = new[] { buildVersion + "." + buildId };
|
|
|
|
|
|
buildVersion += "-be." + buildId;
|
|
buildVersion += "-be." + buildId;
|
|
|
|
|
|
- buildSettings.Properties["Version"] = new[] { buildVersion };
|
|
|
|
|
|
+ buildSettings.MSBuildSettings.Properties["Version"] = new[] { buildVersion };
|
|
}
|
|
}
|
|
|
|
|
|
//buildSettings.Properties["TargetFrameworks"] = new []{ "net35" };
|
|
//buildSettings.Properties["TargetFrameworks"] = new []{ "net35" };
|
|
- MSBuild("./BepInEx.Unity/BepInEx.Unity.csproj", buildSettings);
|
|
|
|
|
|
+ DotNetCoreBuild("./BepInEx.Unity/BepInEx.Unity.csproj", buildSettings);
|
|
|
|
|
|
//buildSettings.Properties["TargetFrameworks"] = new []{ "net452" };
|
|
//buildSettings.Properties["TargetFrameworks"] = new []{ "net452" };
|
|
- MSBuild("./BepInEx.NetLauncher/BepInEx.NetLauncher.csproj", buildSettings);
|
|
|
|
|
|
+ DotNetCoreBuild("./BepInEx.NetLauncher/BepInEx.NetLauncher.csproj", buildSettings);
|
|
|
|
|
|
//buildSettings.Properties["TargetFrameworks"] = new []{ "net472" };
|
|
//buildSettings.Properties["TargetFrameworks"] = new []{ "net472" };
|
|
- MSBuild("./BepInEx.IL2CPP/BepInEx.IL2CPP.csproj", buildSettings);
|
|
|
|
|
|
+ DotNetCoreBuild("./BepInEx.IL2CPP/BepInEx.IL2CPP.csproj", buildSettings);
|
|
});
|
|
});
|
|
|
|
|
|
const string DOORSTOP_VER_WIN = "3.1.0.0";
|
|
const string DOORSTOP_VER_WIN = "3.1.0.0";
|