Skip to content

Commit

Permalink
Fixed up the patching and packing of pdbs
Browse files Browse the repository at this point in the history
  • Loading branch information
droyad committed Dec 21, 2017
1 parent 0124477 commit 71798f2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 18 deletions.
8 changes: 6 additions & 2 deletions build.cake
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,12 @@ Task("Pack")
.IsDependentOn("Test")
.Does(() =>
{
GitLink3("./source/Halibut/bin/Release/net45/Halibut.pdb");
GitLink3("./source/Halibut/bin/Release/netstandard1.5/Halibut.pdb");
var pdbs = GetFiles($"./source/Halibut/bin/{configuration}/**/Halibut.pdb");
foreach(var pdb in pdbs)
{
GitLink3(pdb);
}
DotNetCorePack("./source/Halibut", new DotNetCorePackSettings
{
Configuration = configuration,
Expand Down
5 changes: 0 additions & 5 deletions global.json

This file was deleted.

12 changes: 1 addition & 11 deletions source/Halibut/Halibut.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<PackageProjectUrl>https://github.com/OctopusDeploy/Halibut/</PackageProjectUrl>
<PackageLicenseUrl>https://github.com/OctopusDeploy/Halibut/blob/master/LICENSE</PackageLicenseUrl>
<GenerateAssemblyTitleAttribute>false</GenerateAssemblyTitleAttribute>
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<Optimize>True</Optimize>
Expand Down Expand Up @@ -41,15 +42,4 @@
<DefineConstants>$(DefineConstants);NET40;HAS_REAL_PROXY;SUPPORTS_WEB_SOCKET_CLIENT</DefineConstants>
</PropertyGroup>

<ItemGroup>
<Content Include="$(OutputPath)\net45\Halibut.pdb">
<Pack>true</Pack>
<PackagePath>lib\net45\</PackagePath>
</Content>
<Content Include="$(OutputPath)\netstandard1.5\Halibut.pdb">
<Pack>true</Pack>
<PackagePath>lib\netstandard1.5\</PackagePath>
</Content>
</ItemGroup>

</Project>

0 comments on commit 71798f2

Please sign in to comment.