|
|
@@ -301,14 +301,19 @@ partial class Build : NukeBuild
|
|
|
.Executes(() =>
|
|
|
{
|
|
|
var data = Parameters;
|
|
|
+ var pathToProjectSource = RootDirectory / "samples" / "ControlCatalog.NetCore";
|
|
|
+ var pathToPublish = pathToProjectSource / "bin" / data.Configuration / "publish";
|
|
|
+
|
|
|
+ DotNetPublish(c => c
|
|
|
+ .SetProject(pathToProjectSource / "ControlCatalog.NetCore.csproj")
|
|
|
+ .EnableNoBuild()
|
|
|
+ .SetConfiguration(data.Configuration)
|
|
|
+ .AddProperty("PackageVersion", data.Version)
|
|
|
+ .AddProperty("PublishDir", pathToPublish));
|
|
|
+
|
|
|
Zip(data.ZipCoreArtifacts, data.BinRoot);
|
|
|
Zip(data.ZipNuGetArtifacts, data.NugetRoot);
|
|
|
- Zip(data.ZipTargetControlCatalogDesktopDir,
|
|
|
- GlobFiles(data.ZipSourceControlCatalogDesktopDir, "*.dll").Concat(
|
|
|
- GlobFiles(data.ZipSourceControlCatalogDesktopDir, "*.config")).Concat(
|
|
|
- GlobFiles(data.ZipSourceControlCatalogDesktopDir, "*.so")).Concat(
|
|
|
- GlobFiles(data.ZipSourceControlCatalogDesktopDir, "*.dylib")).Concat(
|
|
|
- GlobFiles(data.ZipSourceControlCatalogDesktopDir, "*.exe")));
|
|
|
+ Zip(data.ZipTargetControlCatalogNetCoreDir, pathToPublish);
|
|
|
});
|
|
|
|
|
|
Target CreateIntermediateNugetPackages => _ => _
|