mirror of
https://github.com/BepInEx/BepInEx.git
synced 2026-10-20 01:46:13 +00:00
Use dotnet build in Cakebuild
This commit is contained in:
1 parent
58f00f5bb9
commit
43af288bae
4 files changed
+35
-382
No files matched your search
+7
-16
@@ -41,9 +41,6 @@ Task("PullDependencies")
|
||||
{
|
||||
Information("Updating git submodules");
|
||||
StartProcess("git", "submodule update --init --recursive");
|
||||
|
||||
Information("Restoring NuGet packages");
|
||||
NuGetRestore("./BepInEx.sln");
|
||||
});
|
||||
|
||||
Task("Build")
|
||||
@@ -55,14 +52,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;
|
||||
|
||||
var buildSettings = new MSBuildSettings {
|
||||
var buildSettings = new DotNetCoreBuildSettings {
|
||||
Configuration = "Release",
|
||||
Restore = true
|
||||
};
|
||||
|
||||
if (isBleedingEdge)
|
||||
{
|
||||
buildSettings.Properties["BuildInfo"] = new[] {
|
||||
buildSettings.MSBuildSettings.Properties["BuildInfo"] = new[] {
|
||||
TransformText("BLEEDING EDGE Build #<%buildNumber%> from <%shortCommit%> at <%branchName%>")
|
||||
.WithToken("buildNumber", buildId)
|
||||
.WithToken("shortCommit", currentCommit)
|
||||
@@ -70,21 +66,16 @@ Task("Build")
|
||||
.ToString()
|
||||
};
|
||||
|
||||
buildSettings.Properties["AssemblyVersion"] = new[] { buildVersion + "." + buildId };
|
||||
buildSettings.MSBuildSettings.Properties["AssemblyVersion"] = new[] { buildVersion + "." + buildId };
|
||||
|
||||
buildVersion += "-be." + buildId;
|
||||
|
||||
buildSettings.Properties["Version"] = new[] { buildVersion };
|
||||
buildSettings.MSBuildSettings.Properties["Version"] = new[] { buildVersion };
|
||||
}
|
||||
|
||||
//buildSettings.Properties["TargetFrameworks"] = new []{ "net35" };
|
||||
MSBuild("./BepInEx.Unity/BepInEx.Unity.csproj", buildSettings);
|
||||
|
||||
//buildSettings.Properties["TargetFrameworks"] = new []{ "net452" };
|
||||
MSBuild("./BepInEx.NetLauncher/BepInEx.NetLauncher.csproj", buildSettings);
|
||||
|
||||
//buildSettings.Properties["TargetFrameworks"] = new []{ "net472" };
|
||||
MSBuild("./BepInEx.IL2CPP/BepInEx.IL2CPP.csproj", buildSettings);
|
||||
DotNetCoreBuild("./BepInEx.Unity/BepInEx.Unity.csproj", buildSettings);
|
||||
DotNetCoreBuild("./BepInEx.NetLauncher/BepInEx.NetLauncher.csproj", buildSettings);
|
||||
DotNetCoreBuild("./BepInEx.IL2CPP/BepInEx.IL2CPP.csproj", buildSettings);
|
||||
});
|
||||
|
||||
const string DOORSTOP_VER_WIN = "3.1.0.0";
|
||||
|
||||
Reference in new issue
Block a user