diff --git a/.nuget/NuGet.Config b/.nuget/NuGet.Config index f7ab3f2..1e7d357 100644 --- a/.nuget/NuGet.Config +++ b/.nuget/NuGet.Config @@ -4,6 +4,6 @@ - + \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 9f75558..f726abd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/). +## [1.1.24] - [2017-07-02] +### Fixed +- Critical missing targets files + ## [1.1.23] - [2017-06-27] ### Added - Xamarin diff --git a/Microsoft.Bcl.Build.Symbols/Microsoft.Bcl.Build.Symbols.csproj b/Microsoft.Bcl.Build.Symbols/Microsoft.Bcl.Build.Symbols.csproj index 46aeca4..4f2691e 100644 --- a/Microsoft.Bcl.Build.Symbols/Microsoft.Bcl.Build.Symbols.csproj +++ b/Microsoft.Bcl.Build.Symbols/Microsoft.Bcl.Build.Symbols.csproj @@ -1,20 +1,20 @@  - Debug AnyCPU {A619D960-0942-47BC-B908-F940ECBFA1E1} + 8.0.30703 + 2.0 Library Properties Microsoft.Bcl.Build.Symbols Microsoft.Bcl.Build.Symbols - v4.0 + v3.5 + + 512 - - - AnyCPU @@ -25,16 +25,23 @@ DEBUG;TRACE prompt 4 - false + AnyCPU pdbonly true bin\Release\ TRACE prompt 4 - false + + + AnyCPU + bin\Debug\ + + + AnyCPU + bin\Release\ @@ -44,22 +51,9 @@ - - Designer - - - Designer - - + + + - - - - Este proyecto hace referencia a los paquetes NuGet que faltan en este equipo. Use la restauración de paquetes NuGet para descargarlos. Para obtener más información, consulte http://go.microsoft.com/fwlink/?LinkID=322105. El archivo que falta es {0}. - - - - - \ No newline at end of file diff --git a/Microsoft.Bcl.Build.Symbols/packages.config b/Microsoft.Bcl.Build.Symbols/packages.config deleted file mode 100644 index fe0a0d1..0000000 --- a/Microsoft.Bcl.Build.Symbols/packages.config +++ /dev/null @@ -1,5 +0,0 @@ - - - - - \ No newline at end of file diff --git a/build.cake b/build.cake index 26a79f9..5c7ef11 100644 --- a/build.cake +++ b/build.cake @@ -2,6 +2,8 @@ // ARGUMENTS ////////////////////////////////////////////////////////////////////// +var solution = "./Microsoft.Bcl.Build.Symbols.sln"; +var nuspec = "./Microsoft.Bcl.Build.Symbols/Package.nuspec"; var target = Argument("target", "Default"); var configuration = Argument("configuration", "Release"); var assemblyInfo = ParseAssemblyInfo("./Microsoft.Bcl.Build.Symbols/Properties/AssemblyInfo.cs"); @@ -12,7 +14,7 @@ var version = EnvironmentVariable ("APPVEYOR_BUILD_VERSION") ?? Argument("versio ////////////////////////////////////////////////////////////////////// // Define directories. -var buildDir = Directory("./Microsoft.Bcl.Build.Symbols/bin") + Directory(configuration); +var buildDir = Directory("../Build/" + configuration); ////////////////////////////////////////////////////////////////////// // TASKS @@ -28,7 +30,7 @@ Task("Restore-NuGet-Packages") .IsDependentOn("Clean") .Does(() => { - NuGetRestore("./Microsoft.Bcl.Build.Symbols.sln"); + NuGetRestore(solution); }); Task("Build") @@ -39,29 +41,52 @@ Task("Build") if(IsRunningOnWindows()) { var settings = new MSBuildSettings() + .WithProperty("OutputPath", buildDir) .WithProperty("PackageVersion", version) .WithProperty("BuildSymbolsPackage", "false"); settings.SetConfiguration(configuration); // Use MSBuild - MSBuild("./Microsoft.Bcl.Build.Symbols.sln", settings); + MSBuild(solution, settings); } else { var settings = new XBuildSettings() + .WithProperty("OutputPath", buildDir) .WithProperty("PackageVersion", version) .WithProperty("BuildSymbolsPackage", "false"); settings.SetConfiguration(configuration); // Use XBuild - XBuild("./Microsoft.Bcl.Build.Symbols.sln", settings); + XBuild(solution, settings); } }); +Task("Build-NuGet-Packages") + .IsDependentOn("Build") + .Does(() => + { + var nuGetPackSettings = new NuGetPackSettings() + { + OutputDirectory = "Build/" + configuration, + IncludeReferencedProjects = false, + Id = assemblyInfo.Title, + Version = version, + Authors = new [] {assemblyInfo.Company}, + Summary = assemblyInfo.Description, + Copyright = assemblyInfo.Copyright, + Properties = new Dictionary() + { + { "Configuration", configuration } + } + }; + NuGetPack(nuspec, nuGetPackSettings); + }); + ////////////////////////////////////////////////////////////////////// // TASK TARGETS ////////////////////////////////////////////////////////////////////// Task("Default") - .IsDependentOn("Build"); + .IsDependentOn("Build-NuGet-Packages"); ////////////////////////////////////////////////////////////////////// // EXECUTION