Skip to content

Commit

Permalink
Pack netstandard facade into netkan.exe
Browse files Browse the repository at this point in the history
  • Loading branch information
HebaruSan committed Feb 18, 2024
1 parent 313fdf3 commit 3d698b3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion build.cake
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ Task("Repack-Ckan")
.Combine(configuration)
.Combine("bin")
.Combine(buildNetFramework))));
// Need netstandard.dll facade to instantiate types from ValveKeyValue on Mono
// Need facade to instantiate types from netstandard2.0 DLLs on Mono
assemblyPaths.Add(FacadesDirectory().CombineWithFilePath("netstandard.dll"));
var ckanLogFile = repackDirectory.Combine(configuration)
.CombineWithFilePath($"ckan.log");
Expand Down Expand Up @@ -338,6 +338,8 @@ Task("Repack-Netkan")
var netkanLogFile = repackDirectory.Combine(configuration)
.CombineWithFilePath($"netkan.log");
var assemblyPaths = GetFiles(string.Format("{0}/*.dll", netkanBinDirectory));
// Need facade to instantiate types from netstandard2.0 DLLs on Mono
assemblyPaths.Add(FacadesDirectory().CombineWithFilePath("netstandard.dll"));
ReportRepacking(netkanFile, netkanLogFile);
ILRepack(
netkanFile,
Expand Down Expand Up @@ -429,6 +431,7 @@ Task("Test-UnitTests+Only")
{
Configuration = configuration,
NoBuild = true,
NoLogo = true,
Filter = where,
ResultsDirectory = nunitOutputDirectory,
Verbosity = DotNetVerbosity.Minimal,
Expand All @@ -441,6 +444,7 @@ Task("Test-UnitTests+Only")
Configuration = "NoGUI",
Framework = "net7.0",
NoBuild = true,
NoLogo = true,
Filter = where,
ResultsDirectory = nunitOutputDirectory,
Verbosity = DotNetVerbosity.Minimal,
Expand All @@ -455,6 +459,7 @@ Task("Test-UnitTests+Only")
Configuration = configuration,
Where = where,
Work = nunitOutputDirectory,
NoHeader = true,
// Work around System.Runtime.Remoting.RemotingException : Tcp transport error.
Process = NUnit3ProcessOption.InProcess,
});
Expand Down

0 comments on commit 3d698b3

Please sign in to comment.