diff --git a/.gitignore b/.gitignore index 0bc215fba..6dbeb44f6 100644 --- a/.gitignore +++ b/.gitignore @@ -12,7 +12,7 @@ TestResults *.orig Help/* release/* -/_ReSharper.* +_ReSharper.* *.pidb *.userprefs packages diff --git a/YamlDotNet/YamlDotNet.csproj b/YamlDotNet/YamlDotNet.csproj index edb389d2e..516721292 100644 --- a/YamlDotNet/YamlDotNet.csproj +++ b/YamlDotNet/YamlDotNet.csproj @@ -21,6 +21,10 @@ false $(TargetFramework) + + true + true + snupkg @@ -49,6 +53,7 @@ + @@ -58,37 +63,28 @@ $(DefineConstants);RELEASE;TRACE;SIGNED - false - portable - true true + true + + - - 4.3.0 - - - 4.3.0 - - - 4.3.0 - + + + - - - diff --git a/YamlDotNet/YamlDotNet.nuspec b/YamlDotNet/YamlDotNet.nuspec index 5426a697f..4c922a3de 100644 --- a/YamlDotNet/YamlDotNet.nuspec +++ b/YamlDotNet/YamlDotNet.nuspec @@ -13,6 +13,7 @@ images/yamldotnet.png yaml parser development library serialization + README.md @@ -24,23 +25,30 @@ + + + + + + + diff --git a/appveyor.yml b/appveyor.yml index ed09649cf..2ea55a634 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -45,3 +45,4 @@ artifacts: name: Release-Net80 - path: YamlDotNet\bin\*.nupkg + - path: YamlDotNet\bin\*.snupkg diff --git a/tools/build/BuildDefinition.cs b/tools/build/BuildDefinition.cs index 415a4470b..a409e0881 100644 --- a/tools/build/BuildDefinition.cs +++ b/tools/build/BuildDefinition.cs @@ -125,7 +125,7 @@ public static Task SetMetadata(GitVersion version) public static Task Build(Options options, MetadataSet _) { var verbosity = options.Verbose ? "detailed" : "minimal"; - Run("dotnet", $"build YamlDotNet.sln --configuration Release --verbosity {verbosity}", BasePath); + Run("dotnet", $"build YamlDotNet.sln --configuration Release --verbosity {verbosity} -p:ContinuousIntegrationBuild=true", BasePath); return Task.FromResult(new SuccessfulBuild()); } @@ -143,14 +143,14 @@ public static Task> Pack(Options options, GitVersion version, var result = new List(); var verbosity = options.Verbose ? "detailed" : "minimal"; var buildDir = Path.Combine(BasePath, "YamlDotNet"); - Run("nuget", $"pack YamlDotNet.nuspec -Version {version.NuGetVersion} -OutputDirectory bin", buildDir); + Run("nuget", $"pack YamlDotNet.nuspec -Version {version.NuGetVersion} -OutputDirectory bin -Symbols -SymbolPackageFormat snupkg", buildDir); var packagePath = Path.Combine(buildDir, "bin", $"YamlDotNet.{version.NuGetVersion}.nupkg"); result.Add(new NuGetPackage(packagePath, "YamlDotNet")); if (PushSerializer) { buildDir = Path.Combine(BasePath, "YamlDotNet.Analyzers.StaticGenerator"); - Run("nuget", $"pack YamlDotNet.Analyzers.StaticGenerator.nuspec -Version {version.NuGetVersion} -OutputDirectory bin", buildDir); + Run("nuget", $"pack YamlDotNet.Analyzers.StaticGenerator.nuspec -Version {version.NuGetVersion} -OutputDirectory bin -Symbols -SymbolPackageFormat snupkg", buildDir); packagePath = Path.Combine(buildDir, "bin", $"YamlDotNet.Analyzers.StaticGenerator.{version.NuGetVersion}.nupkg"); result.Add(new NuGetPackage(packagePath, "YamlDotNet.Analyzers.StaticGenerator")); }