diff --git a/build.cake b/build.cake
index bda4663ec1..7ecf08feba 100644
--- a/build.cake
+++ b/build.cake
@@ -258,6 +258,15 @@ var coreLibrariesNuSpecContent = coreLibrariesFiles.Select((file) => {
};
});
+var win32CoreLibrariesNuSpecContent = coreLibrariesFiles.Select((file) => {
+ return new NuSpecContent {
+ Source = file.FullPath, Target = "lib/net45"
+ };
+});
+
+var net45RuntimePlatform = new [] {".xml", ".dll"}.Select(libSuffix =>
+ new NuSpecContent { Source = ((FilePath)File("./src/Avalonia.DotNetFrameworkRuntime/bin/"+dirSuffix+"/Avalonia.DotNetFrameworkRuntime" + libSuffix)).FullPath, Target = "lib/net45" });
+
var nuspecNuGetSettingsCore = new []
{
///////////////////////////////////////////////////////////////////////////////
@@ -273,7 +282,7 @@ var nuspecNuGetSettingsCore = new []
new NuSpecDependency() { Id = "Sprache", Version = SpracheVersion },
new NuSpecDependency() { Id = "System.Reactive", Version = SystemReactiveVersion }
},
- Files = coreLibrariesNuSpecContent.ToList(),
+ Files = coreLibrariesNuSpecContent.Concat(win32CoreLibrariesNuSpecContent).Concat(net45RuntimePlatform).ToList(),
BasePath = Directory("./"),
OutputDirectory = nugetRoot
},
diff --git a/src/Avalonia.DotNetFrameworkRuntime/Avalonia.DotNetFrameworkRuntime.csproj b/src/Avalonia.DotNetFrameworkRuntime/Avalonia.DotNetFrameworkRuntime.csproj
index 751a3845b9..f8c181f094 100644
--- a/src/Avalonia.DotNetFrameworkRuntime/Avalonia.DotNetFrameworkRuntime.csproj
+++ b/src/Avalonia.DotNetFrameworkRuntime/Avalonia.DotNetFrameworkRuntime.csproj
@@ -21,6 +21,7 @@
DEBUG;TRACE
prompt
4
+ bin\Debug\Avalonia.DotNetFrameworkRuntime.xml
pdbonly
@@ -29,6 +30,7 @@
TRACE
prompt
4
+ bin\Release\Avalonia.DotNetFrameworkRuntime.xml