Skip to content
This repository was archived by the owner on Jun 18, 2022. It is now read-only.

Commit ab9f71c

Browse files
committed
Enable deterministic builds
1 parent 6df06b7 commit ab9f71c

1 file changed

Lines changed: 19 additions & 4 deletions

File tree

src/Telegram.Bot.Extensions.Polling/Telegram.Bot.Extensions.Polling.csproj

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@
33
<PropertyGroup>
44
<OutputType>Library</OutputType>
55
<TargetFrameworks>netstandard2.0;netcoreapp3.1</TargetFrameworks>
6-
<LangVersion>9.0</LangVersion>
7-
<NullableContextOptions>enable</NullableContextOptions>
8-
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
9-
<GenerateDocumentationFile>True</GenerateDocumentationFile>
106
<Version>1.0.0-alpha.1</Version>
117
<Authors>MihaZupan,tuscen,TelegramBots</Authors>
128
<Copyright>Copyright © Telegram Bots 2021</Copyright>
@@ -17,7 +13,25 @@
1713
<Description>Provides ITelegramBotClient extensions for polling updates.</Description>
1814
<PackageIcon>package-icon.png</PackageIcon>
1915
<Company>TelegramBots</Company>
16+
<LangVersion>9.0</LangVersion>
17+
<NullableContextOptions>enable</NullableContextOptions>
2018
<Nullable>enable</Nullable>
19+
<PublishRepositoryUrl>true</PublishRepositoryUrl>
20+
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
21+
<GenerateDocumentationFile>True</GenerateDocumentationFile>
22+
<IncludeSymbols>true</IncludeSymbols>
23+
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
24+
<EmbedUntrackedSources>true</EmbedUntrackedSources>
25+
<AllowedOutputExtensionsInPackageBuildOutputFolder>
26+
$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb
27+
</AllowedOutputExtensionsInPackageBuildOutputFolder>
28+
</PropertyGroup>
29+
30+
<!-- Make build deterministic only in CI environment to make local development easier with non-trimmed paths -->
31+
<!-- CI is a predefined variable in Github Actions -->
32+
<PropertyGroup Condition="'$(CI)' == 'true'">
33+
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
34+
<Deterministic>true</Deterministic>
2135
</PropertyGroup>
2236

2337
<ItemGroup>
@@ -30,6 +44,7 @@
3044
<ItemGroup>
3145
<PackageReference Include="System.Threading.Channels" Version="5.0.0" />
3246
<PackageReference Include="Telegram.Bot" Version="17.0.0-alpha.1" />
47+
<PackageReference Include="Microsoft.SourceLink.Github" Version="1.0.0" PrivateAssets="All" />
3348
</ItemGroup>
3449

3550
</Project>

0 commit comments

Comments
 (0)