Skip to content

Commit

Permalink
fix: pdb file missing in netstandard2.0 projects
Browse files Browse the repository at this point in the history
  • Loading branch information
dtanglr committed Nov 19, 2023
1 parent c5ddf56 commit 26a6456
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Primitively" Version="1.4.8-beta" PrivateAssets="All" />
<PackageReference Include="Primitively" Version="1.4.12-beta" PrivateAssets="All" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Primitively" Version="1.4.9-beta" PrivateAssets="all">
<PackageReference Include="Primitively" Version="1.4.12-beta" PrivateAssets="all">
<ExcludeAssets>compile;runtime</ExcludeAssets>
<TreatAsUsed>true</TreatAsUsed>
<IncludeAssets>build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Primitively.Abstractions" Version="1.4.9-beta">
<PackageReference Include="Primitively.Abstractions" Version="1.4.12-beta">
<TreatAsUsed>true</TreatAsUsed>
</PackageReference>
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
<ItemGroup>
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.19.5" />
<PackageReference Include="MongoDB.Driver" Version="2.22.0" />
<PackageReference Include="Primitively.AspNetCore.Mvc" Version="1.4.9-beta" />
<PackageReference Include="Primitively.AspNetCore.SwaggerGen" Version="1.4.9-beta" />
<PackageReference Include="Primitively.MongoDB.Bson" Version="1.4.9-beta" />
<PackageReference Include="Primitively.AspNetCore.Mvc" Version="1.4.12-beta" />
<PackageReference Include="Primitively.AspNetCore.SwaggerGen" Version="1.4.12-beta" />
<PackageReference Include="Primitively.MongoDB.Bson" Version="1.4.12-beta" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.5.0" />
</ItemGroup>

Expand Down
18 changes: 17 additions & 1 deletion src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,28 @@
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<IncludeSource>true</IncludeSource>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<NoWarn>$(NoWarn);CS1591</NoWarn>
<EnablePackageValidation>true</EnablePackageValidation>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<PublishDocumentationFiles>true</PublishDocumentationFiles>
<PublishReferencesDocumentationFiles>true</PublishReferencesDocumentationFiles>
</PropertyGroup>

<PropertyGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
<DebugType>pdbonly</DebugType>
</PropertyGroup>

<PropertyGroup Condition="'$(TargetFramework)' == 'net6.0'">
<DebugType>embedded</DebugType>
</PropertyGroup>

<PropertyGroup Condition="'$(TargetFramework)' == 'net7.0'">
<DebugType>embedded</DebugType>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)' == 'Debug'">
<PackageOutputPath>$(MSBuildThisFileDirectory)..\artifacts</PackageOutputPath>
<version>1.4.11-alpha.2</version>
<version>1.4.13-alpha</version>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit 26a6456

Please sign in to comment.