Browse Source

Incorporated Avalonia.DotNetFrameworkRuntime.dll to the main nuget package

Nikita Tsukanov 9 năm trước cách đây
mục cha
commit
440e35f1f1

+ 10 - 1
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 []
 var nuspecNuGetSettingsCore = new []
 {
 {
     ///////////////////////////////////////////////////////////////////////////////
     ///////////////////////////////////////////////////////////////////////////////
@@ -273,7 +282,7 @@ var nuspecNuGetSettingsCore = new []
             new NuSpecDependency() { Id = "Sprache", Version = SpracheVersion },
             new NuSpecDependency() { Id = "Sprache", Version = SpracheVersion },
             new NuSpecDependency() { Id = "System.Reactive", Version = SystemReactiveVersion }
             new NuSpecDependency() { Id = "System.Reactive", Version = SystemReactiveVersion }
         },
         },
-        Files = coreLibrariesNuSpecContent.ToList(),
+        Files = coreLibrariesNuSpecContent.Concat(win32CoreLibrariesNuSpecContent).Concat(net45RuntimePlatform).ToList(),
         BasePath = Directory("./"),
         BasePath = Directory("./"),
         OutputDirectory = nugetRoot
         OutputDirectory = nugetRoot
     },
     },

+ 2 - 0
src/Avalonia.DotNetFrameworkRuntime/Avalonia.DotNetFrameworkRuntime.csproj

@@ -21,6 +21,7 @@
     <DefineConstants>DEBUG;TRACE</DefineConstants>
     <DefineConstants>DEBUG;TRACE</DefineConstants>
     <ErrorReport>prompt</ErrorReport>
     <ErrorReport>prompt</ErrorReport>
     <WarningLevel>4</WarningLevel>
     <WarningLevel>4</WarningLevel>
+    <DocumentationFile>bin\Debug\Avalonia.DotNetFrameworkRuntime.xml</DocumentationFile>
   </PropertyGroup>
   </PropertyGroup>
   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
     <DebugType>pdbonly</DebugType>
     <DebugType>pdbonly</DebugType>
@@ -29,6 +30,7 @@
     <DefineConstants>TRACE</DefineConstants>
     <DefineConstants>TRACE</DefineConstants>
     <ErrorReport>prompt</ErrorReport>
     <ErrorReport>prompt</ErrorReport>
     <WarningLevel>4</WarningLevel>
     <WarningLevel>4</WarningLevel>
+    <DocumentationFile>bin\Release\Avalonia.DotNetFrameworkRuntime.xml</DocumentationFile>
   </PropertyGroup>
   </PropertyGroup>
   <ItemGroup>
   <ItemGroup>
     <Reference Include="System" />
     <Reference Include="System" />