Samples are now built with dotnet in build.cake

This commit is contained in:
Israel Soto 2022-03-30 22:25:50 -06:00 коммит произвёл Israel Soto
Родитель 388d21a3ce
Коммит 88f76c09e6
1 изменённых файлов: 10 добавлений и 7 удалений

Просмотреть файл

@ -180,14 +180,17 @@ Task ("samples")
.IsDependentOn("libs")
.Does(() =>
{
var msBuildSettings = new DotNetCoreMSBuildSettings ();
var dotNetCoreBuildSettings = new DotNetCoreBuildSettings {
Configuration = "Release",
Verbosity = DotNetCoreVerbosity.Diagnostic,
MSBuildSettings = msBuildSettings
};
foreach (var target in SAMPLES_TARGETS)
MSBuild(SOLUTION_PATH, c => {
c.Configuration = "Release";
c.Restore = true;
c.MaxCpuCount = 0;
c.Targets.Clear();
c.Targets.Add($@"samples-using-source{BACKSLASH}{target}");
});
msBuildSettings.Targets.Add($@"samples-using-source\{target}");
DotNetCoreBuild(SOLUTION_PATH, dotNetCoreBuildSettings);
});
Task ("nuget")