|
|
@@ -43,7 +43,6 @@ public class Packages
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- //new NuSpecDependency() { Id = "System.Threading.ThreadPool", TargetFramework = "netcoreapp1.0", Version = "4.3.0" },
|
|
|
public Packages(ICakeContext context, Parameters parameters)
|
|
|
{
|
|
|
// NUGET NUSPECS
|
|
|
@@ -186,12 +185,12 @@ public class Packages
|
|
|
};
|
|
|
|
|
|
var coreLibrariesFiles = coreLibraries.Select((lib) => {
|
|
|
- return (FilePath)context.File(lib[0] + lib[1] + "/bin/" + parameters.DirSuffix + "/netstandard1.3/" + lib[1] + lib[2]);
|
|
|
+ return (FilePath)context.File(lib[0] + lib[1] + "/bin/" + parameters.DirSuffix + "/netstandard2.0/" + lib[1] + lib[2]);
|
|
|
}).ToList();
|
|
|
|
|
|
var coreLibrariesNuSpecContent = coreLibrariesFiles.Select((file) => {
|
|
|
return new NuSpecContent {
|
|
|
- Source = file.FullPath, Target = "lib/netstandard1.3"
|
|
|
+ Source = file.FullPath, Target = "lib/netstandard2.0"
|
|
|
};
|
|
|
});
|
|
|
|
|
|
@@ -203,14 +202,14 @@ public class Packages
|
|
|
|
|
|
var netcoreappCoreLibrariesNuSpecContent = coreLibrariesFiles.Select((file) => {
|
|
|
return new NuSpecContent {
|
|
|
- Source = file.FullPath, Target = "lib/netcoreapp1.0"
|
|
|
+ Source = file.FullPath, Target = "lib/netcoreapp2.0"
|
|
|
};
|
|
|
});
|
|
|
|
|
|
var net45RuntimePlatformExtensions = new [] {".xml", ".dll"};
|
|
|
var net45RuntimePlatform = net45RuntimePlatformExtensions.Select(libSuffix => {
|
|
|
return new NuSpecContent {
|
|
|
- Source = ((FilePath)context.File("./src/Avalonia.DotNetFrameworkRuntime/bin/" + parameters.DirSuffix + "/Avalonia.DotNetFrameworkRuntime" + libSuffix)).FullPath,
|
|
|
+ Source = ((FilePath)context.File("./src/Avalonia.DotNetFrameworkRuntime/bin/" + parameters.DirSuffix + "/net461/Avalonia.DotNetFrameworkRuntime" + libSuffix)).FullPath,
|
|
|
Target = "lib/net45"
|
|
|
};
|
|
|
});
|
|
|
@@ -218,8 +217,8 @@ public class Packages
|
|
|
var netCoreRuntimePlatformExtensions = new [] {".xml", ".dll"};
|
|
|
var netCoreRuntimePlatform = netCoreRuntimePlatformExtensions.Select(libSuffix => {
|
|
|
return new NuSpecContent {
|
|
|
- Source = ((FilePath)context.File("./src/Avalonia.DotNetCoreRuntime/bin/" + parameters.DirSuffix + "/netcoreapp1.0/Avalonia.DotNetCoreRuntime" + libSuffix)).FullPath,
|
|
|
- Target = "lib/netcoreapp1.0"
|
|
|
+ Source = ((FilePath)context.File("./src/Avalonia.DotNetCoreRuntime/bin/" + parameters.DirSuffix + "/netcoreapp2.0/Avalonia.DotNetCoreRuntime" + libSuffix)).FullPath,
|
|
|
+ Target = "lib/netcoreapp2.0"
|
|
|
};
|
|
|
});
|
|
|
|
|
|
@@ -238,15 +237,15 @@ public class Packages
|
|
|
new NuSpecDependency() { Id = "Sprache", Version = SpracheVersion },
|
|
|
new NuSpecDependency() { Id = "System.Reactive", Version = SystemReactiveVersion },
|
|
|
//.NET Core
|
|
|
- new NuSpecDependency() { Id = "System.Threading.ThreadPool", TargetFramework = "netcoreapp1.0", Version = "4.3.0" },
|
|
|
- new NuSpecDependency() { Id = "Microsoft.Extensions.DependencyModel", TargetFramework = "netcoreapp1.0", Version = "1.1.0" },
|
|
|
- new NuSpecDependency() { Id = "NETStandard.Library", TargetFramework = "netcoreapp1.0", Version = "1.6.0" },
|
|
|
- new NuSpecDependency() { Id = "Splat", TargetFramework = "netcoreapp1.0", Version = SplatVersion },
|
|
|
- new NuSpecDependency() { Id = "Serilog", TargetFramework = "netcoreapp1.0", Version = SerilogVersion },
|
|
|
- new NuSpecDependency() { Id = "Sprache", TargetFramework = "netcoreapp1.0", Version = SpracheVersion },
|
|
|
- new NuSpecDependency() { Id = "System.Reactive", TargetFramework = "netcoreapp1.0", Version = SystemReactiveVersion },
|
|
|
+ new NuSpecDependency() { Id = "System.Threading.ThreadPool", TargetFramework = "netcoreapp2.0", Version = "4.3.0" },
|
|
|
+ new NuSpecDependency() { Id = "Microsoft.Extensions.DependencyModel", TargetFramework = "netcoreapp2.0", Version = "1.1.0" },
|
|
|
+ new NuSpecDependency() { Id = "NETStandard.Library", TargetFramework = "netcoreapp2.0", Version = "1.6.0" },
|
|
|
+ new NuSpecDependency() { Id = "Splat", TargetFramework = "netcoreapp2.0", Version = SplatVersion },
|
|
|
+ new NuSpecDependency() { Id = "Serilog", TargetFramework = "netcoreapp2.0", Version = SerilogVersion },
|
|
|
+ new NuSpecDependency() { Id = "Sprache", TargetFramework = "netcoreapp2.0", Version = SpracheVersion },
|
|
|
+ new NuSpecDependency() { Id = "System.Reactive", TargetFramework = "netcoreapp2.0", Version = SystemReactiveVersion },
|
|
|
}
|
|
|
- .Deps(new string[]{null, "netcoreapp1.0"},
|
|
|
+ .Deps(new string[]{null, "netcoreapp2.0"},
|
|
|
"System.ValueTuple", "System.ComponentModel.TypeConverter", "System.ComponentModel.Primitives",
|
|
|
"System.Runtime.Serialization.Primitives", "System.Xml.XmlDocument", "System.Xml.ReaderWriter")
|
|
|
.ToArray(),
|
|
|
@@ -269,9 +268,9 @@ public class Packages
|
|
|
},
|
|
|
Files = new []
|
|
|
{
|
|
|
- new NuSpecContent { Source = "Avalonia.HtmlRenderer.dll", Target = "lib/netstandard1.3" }
|
|
|
+ new NuSpecContent { Source = "Avalonia.HtmlRenderer.dll", Target = "lib/netstandard2.0" }
|
|
|
},
|
|
|
- BasePath = context.Directory("./src/Avalonia.HtmlRenderer/bin/" + parameters.DirSuffix + "/netstandard1.3"),
|
|
|
+ BasePath = context.Directory("./src/Avalonia.HtmlRenderer/bin/" + parameters.DirSuffix + "/netstandard2.0"),
|
|
|
OutputDirectory = parameters.NugetRoot
|
|
|
}
|
|
|
};
|
|
|
@@ -331,7 +330,7 @@ public class Packages
|
|
|
Files = new []
|
|
|
{
|
|
|
new NuSpecContent { Source = "Avalonia.Win32/bin/" + parameters.DirSuffix + "/Avalonia.Win32.dll", Target = "lib/net45" },
|
|
|
- new NuSpecContent { Source = "Avalonia.Win32.NetStandard/bin/" + parameters.DirSuffix + "/netstandard1.3/Avalonia.Win32.dll", Target = "lib/netstandard1.3" }
|
|
|
+ new NuSpecContent { Source = "Avalonia.Win32.NetStandard/bin/" + parameters.DirSuffix + "/netstandard2.0/Avalonia.Win32.dll", Target = "lib/netstandard2.0" }
|
|
|
},
|
|
|
BasePath = context.Directory("./src/Windows"),
|
|
|
OutputDirectory = parameters.NugetRoot
|
|
|
@@ -352,9 +351,9 @@ public class Packages
|
|
|
},
|
|
|
Files = new []
|
|
|
{
|
|
|
- new NuSpecContent { Source = "Avalonia.Direct2D1.dll", Target = "lib/netstandard1.3" }
|
|
|
+ new NuSpecContent { Source = "Avalonia.Direct2D1.dll", Target = "lib/netstandard2.0" }
|
|
|
},
|
|
|
- BasePath = context.Directory("./src/Windows/Avalonia.Direct2D1/bin/" + parameters.DirSuffix + "/netstandard1.3"),
|
|
|
+ BasePath = context.Directory("./src/Windows/Avalonia.Direct2D1/bin/" + parameters.DirSuffix + "/netstandard2.0"),
|
|
|
OutputDirectory = parameters.NugetRoot
|
|
|
},
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
@@ -386,9 +385,9 @@ public class Packages
|
|
|
},
|
|
|
Files = new []
|
|
|
{
|
|
|
- new NuSpecContent { Source = "Avalonia.Gtk3.dll", Target = "lib/netstandard1.3" }
|
|
|
+ new NuSpecContent { Source = "Avalonia.Gtk3.dll", Target = "lib/netstandard2.0" }
|
|
|
},
|
|
|
- BasePath = context.Directory("./src/Gtk/Avalonia.Gtk3/bin/" + parameters.DirSuffix + "/netstandard1.3"),
|
|
|
+ BasePath = context.Directory("./src/Gtk/Avalonia.Gtk3/bin/" + parameters.DirSuffix + "/netstandard2.0"),
|
|
|
OutputDirectory = parameters.NugetRoot
|
|
|
},
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
@@ -418,18 +417,18 @@ public class Packages
|
|
|
{
|
|
|
new NuSpecDependency() { Id = "Avalonia", Version = parameters.Version },
|
|
|
new NuSpecDependency() { Id = "SkiaSharp", Version = SkiaSharpVersion },
|
|
|
- new NuSpecDependency() { Id = "Avalonia", Version = parameters.Version, TargetFramework="netcoreapp1.1" },
|
|
|
- new NuSpecDependency() { Id = "SkiaSharp", Version = SkiaSharpVersion, TargetFramework="netcoreapp1.1" },
|
|
|
- new NuSpecDependency() { Id = "Avalonia.Skia.Linux.Natives", Version = SkiaSharpLinuxVersion, TargetFramework="netcoreapp1.1" },
|
|
|
+ new NuSpecDependency() { Id = "Avalonia", Version = parameters.Version, TargetFramework="netcoreapp2.0" },
|
|
|
+ new NuSpecDependency() { Id = "SkiaSharp", Version = SkiaSharpVersion, TargetFramework="netcoreapp2.0" },
|
|
|
+ new NuSpecDependency() { Id = "Avalonia.Skia.Linux.Natives", Version = SkiaSharpLinuxVersion, TargetFramework="netcoreapp2.0" },
|
|
|
new NuSpecDependency() { Id = "Avalonia", Version = parameters.Version, TargetFramework="net461" },
|
|
|
new NuSpecDependency() { Id = "SkiaSharp", Version = SkiaSharpVersion, TargetFramework="net461" },
|
|
|
new NuSpecDependency() { Id = "Avalonia.Skia.Linux.Natives", Version = SkiaSharpLinuxVersion, TargetFramework="net461" }
|
|
|
},
|
|
|
Files = new []
|
|
|
{
|
|
|
- new NuSpecContent { Source = "Avalonia.Skia.dll", Target = "lib/netstandard1.3" }
|
|
|
+ new NuSpecContent { Source = "Avalonia.Skia.dll", Target = "lib/netstandard2.0" }
|
|
|
},
|
|
|
- BasePath = context.Directory("./src/Skia/Avalonia.Skia/bin/" + parameters.DirSuffix + "/netstandard1.3"),
|
|
|
+ BasePath = context.Directory("./src/Skia/Avalonia.Skia/bin/" + parameters.DirSuffix + "/netstandard2.0"),
|
|
|
OutputDirectory = parameters.NugetRoot
|
|
|
},
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
@@ -448,9 +447,9 @@ public class Packages
|
|
|
new NuSpecDependency() { Id = "Avalonia.Skia", TargetFramework="net45", Version = parameters.Version },
|
|
|
new NuSpecDependency() { Id = "Avalonia.Gtk3", TargetFramework="net45", Version = parameters.Version },
|
|
|
//.NET Core
|
|
|
- new NuSpecDependency() { Id = "Avalonia.Win32", TargetFramework="netcoreapp1.0", Version = parameters.Version },
|
|
|
- new NuSpecDependency() { Id = "Avalonia.Skia", TargetFramework="netcoreapp1.0", Version = parameters.Version },
|
|
|
- new NuSpecDependency() { Id = "Avalonia.Gtk3", TargetFramework="netcoreapp1.0", Version = parameters.Version }
|
|
|
+ new NuSpecDependency() { Id = "Avalonia.Win32", TargetFramework="netcoreapp2.0", Version = parameters.Version },
|
|
|
+ new NuSpecDependency() { Id = "Avalonia.Skia", TargetFramework="netcoreapp2.0", Version = parameters.Version },
|
|
|
+ new NuSpecDependency() { Id = "Avalonia.Gtk3", TargetFramework="netcoreapp2.0", Version = parameters.Version }
|
|
|
},
|
|
|
Files = new NuSpecContent[]
|
|
|
{
|
|
|
@@ -488,7 +487,7 @@ public class Packages
|
|
|
},
|
|
|
Files = new []
|
|
|
{
|
|
|
- new NuSpecContent { Source = "Avalonia.LinuxFramebuffer/bin/" + parameters.DirSuffix + "/netstandard1.3/Avalonia.LinuxFramebuffer.dll", Target = "lib/netstandard1.3" }
|
|
|
+ new NuSpecContent { Source = "Avalonia.LinuxFramebuffer/bin/" + parameters.DirSuffix + "/netstandard2.0/Avalonia.LinuxFramebuffer.dll", Target = "lib/netstandard2.0" }
|
|
|
},
|
|
|
BasePath = context.Directory("./src/Linux/"),
|
|
|
OutputDirectory = parameters.NugetRoot
|