Browse Source

Merge pull request #1718 from wieslawsoltes/CakeUseIsPlatformNetCoreOnlyProperty

Use IsPlatformNetCoreOnly property in Cake script
pull/1726/head
Jumar Macato 8 years ago
committed by GitHub
parent
commit
38d1bc2028
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      packages.cake

4
packages.cake

@ -225,7 +225,7 @@ public class Packages
IList<NuSpecContent> coreFiles;
if (parameters.Platform != "NetCoreOnly") {
if (!parameters.IsPlatformNetCoreOnly) {
var toolsContent = new[] { toolHostApp, toolHostAppNetFx };
coreFiles = coreLibrariesNuSpecContent
.Concat(win32CoreLibrariesNuSpecContent).Concat(net45RuntimePlatform)
@ -506,7 +506,7 @@ public class Packages
NuspecNuGetSettings.AddRange(nuspecNuGetSettingsCore);
NuspecNuGetSettings.AddRange(nuspecNuGetSettingsDesktop);
if (parameters.Platform != "NetCoreOnly") {
if (!parameters.IsPlatformNetCoreOnly) {
NuspecNuGetSettings.Add(nuspecNuGetSettingInterop);
NuspecNuGetSettings.AddRange(nuspecNuGetSettingsMobile);
}

Loading…
Cancel
Save