Skip to content

Commit e0512f4

Browse files
pirrmannpierre-irrmann
and
pierre-irrmann
authored
[C#] Read NuGet package version from version file (#1061)
Co-authored-by: pierre-irrmann <[email protected]>
1 parent aab60b0 commit e0512f4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

csharp/sbe-dll/sbe-dll.csproj

+3-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
<RepositoryUrl>https://github.com/aeron-io/simple-binary-encoding</RepositoryUrl>
1414
<PackageTags>SBE;Marshaling;Low;Latency;Simple;Binary;Encoding</PackageTags>
1515
<PackageId>sbe-tool</PackageId>
16-
<PackageVersion>1.23.1.1</PackageVersion>
16+
<VersionFile>$(MSBuildProjectDirectory)\..\..\version.txt</VersionFile>
17+
<PackageVersion>$([System.IO.File]::ReadAllText($(VersionFile)).TrimEnd())</PackageVersion>
1718
<Title>Simple Binary Encoding for .NET</Title>
1819
<Description>This package contains all you need to define SBE messages and generate C# encoders and decoders. See https://github.com/aeron-io/simple-binary-encoding for more detailed instructions</Description>
1920
<RepositoryType>git</RepositoryType>
@@ -31,7 +32,7 @@
3132
<Pack>true</Pack>
3233
<PackagePath>tools/sbe-tool.sh</PackagePath>
3334
</None>
34-
<None Include="../../sbe-all/build/libs/sbe-all-*-SNAPSHOT.jar">
35+
<None Include="../../sbe-all/build/libs/sbe-all-*.jar">
3536
<Pack>true</Pack>
3637
<PackagePath>tools/sbe-tool-all.jar</PackagePath>
3738
</None>

0 commit comments

Comments
 (0)