Skip to content

Commit 71798f2

Browse files
committed
Fixed up the patching and packing of pdbs
1 parent 0124477 commit 71798f2

File tree

3 files changed

+7
-18
lines changed

3 files changed

+7
-18
lines changed

build.cake

+6-2
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,12 @@ Task("Pack")
9191
.IsDependentOn("Test")
9292
.Does(() =>
9393
{
94-
GitLink3("./source/Halibut/bin/Release/net45/Halibut.pdb");
95-
GitLink3("./source/Halibut/bin/Release/netstandard1.5/Halibut.pdb");
94+
var pdbs = GetFiles($"./source/Halibut/bin/{configuration}/**/Halibut.pdb");
95+
foreach(var pdb in pdbs)
96+
{
97+
GitLink3(pdb);
98+
}
99+
96100
DotNetCorePack("./source/Halibut", new DotNetCorePackSettings
97101
{
98102
Configuration = configuration,

global.json

-5
This file was deleted.

source/Halibut/Halibut.csproj

+1-11
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
<PackageProjectUrl>https://github.com/OctopusDeploy/Halibut/</PackageProjectUrl>
1313
<PackageLicenseUrl>https://github.com/OctopusDeploy/Halibut/blob/master/LICENSE</PackageLicenseUrl>
1414
<GenerateAssemblyTitleAttribute>false</GenerateAssemblyTitleAttribute>
15+
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
1516
</PropertyGroup>
1617
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
1718
<Optimize>True</Optimize>
@@ -41,15 +42,4 @@
4142
<DefineConstants>$(DefineConstants);NET40;HAS_REAL_PROXY;SUPPORTS_WEB_SOCKET_CLIENT</DefineConstants>
4243
</PropertyGroup>
4344

44-
<ItemGroup>
45-
<Content Include="$(OutputPath)\net45\Halibut.pdb">
46-
<Pack>true</Pack>
47-
<PackagePath>lib\net45\</PackagePath>
48-
</Content>
49-
<Content Include="$(OutputPath)\netstandard1.5\Halibut.pdb">
50-
<Pack>true</Pack>
51-
<PackagePath>lib\netstandard1.5\</PackagePath>
52-
</Content>
53-
</ItemGroup>
54-
5545
</Project>

0 commit comments

Comments
 (0)