Skip to content

Commit 5eb8e37

Browse files
authored
Added source link (#12)
1 parent a1cdc7c commit 5eb8e37

File tree

2 files changed

+43
-3
lines changed

2 files changed

+43
-3
lines changed

src/Dbosoft.Functional/Dbosoft.Functional.csproj

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,31 @@
1313
<RepositoryUrl>https://github.com/dbosoft/Dbosoft.Functional</RepositoryUrl>
1414
<PackageId>Dbosoft.Functional</PackageId>
1515
<Description>Functional helper library based on language.ext.</Description>
16+
17+
<!-- Declare that the Repository URL can be published to NuSpec -->
18+
<PublishRepositoryUrl>true</PublishRepositoryUrl>
19+
<!-- Embed source files that are not tracked by the source control manager to the PDB -->
20+
<EmbedUntrackedSources>true</EmbedUntrackedSources>
21+
<!-- Include PDB in the built .nupkg -->
22+
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
23+
24+
<GenerateDocumentationFile>true</GenerateDocumentationFile>
25+
</PropertyGroup>
26+
27+
<PropertyGroup>
28+
<ContinuousIntegrationBuild Condition="'$(TF_BUILD)' == 'true'">True</ContinuousIntegrationBuild>
29+
<ContinuousIntegrationBuild Condition="'$(GITHUB_ACTIONS)' == 'true'">True</ContinuousIntegrationBuild>
1630
</PropertyGroup>
1731

1832
<ItemGroup>
19-
<PackageReference Include="GitVersion.MsBuild" Version="5.12.0">
33+
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.*" PrivateAssets="All"/>
34+
35+
<PackageReference Include="GitVersion.MsBuild" Version="5.*">
2036
<PrivateAssets>all</PrivateAssets>
2137
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2238
</PackageReference>
23-
<PackageReference Include="LanguageExt.Core" Version="4.4.2" />
24-
<PackageReference Include="System.Threading.Tasks.Dataflow" Version="5.0.0" />
39+
<PackageReference Include="LanguageExt.Core" Version="4.4.*" />
40+
<PackageReference Include="System.Threading.Tasks.Dataflow" Version="[5,)" />
2541
</ItemGroup>
2642

2743
</Project>

src/Directory.Build.props

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
2+
<Project>
3+
<PropertyGroup>
4+
<!-- Declare that the Repository URL can be published to NuSpec -->
5+
<PublishRepositoryUrl>true</PublishRepositoryUrl>
6+
<!-- Embed source files that are not tracked by the source control manager to the PDB -->
7+
<EmbedUntrackedSources>true</EmbedUntrackedSources>
8+
<!-- Include PDB in the built .nupkg -->
9+
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
10+
11+
<GenerateDocumentationFile>true</GenerateDocumentationFile>
12+
13+
</PropertyGroup>
14+
15+
16+
<PropertyGroup>
17+
<ContinuousIntegrationBuild Condition="'$(TF_BUILD)' == 'true'">True</ContinuousIntegrationBuild>
18+
<ContinuousIntegrationBuild Condition="'$(GITHUB_ACTIONS)' == 'true'">True</ContinuousIntegrationBuild>
19+
</PropertyGroup>
20+
21+
<ItemGroup>
22+
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.*" PrivateAssets="All"/>
23+
</ItemGroup>
24+
</Project>

0 commit comments

Comments
 (0)