Skip to content

Commit a1c452f

Browse files
authored
Merge pull request #875 from drewnoakes/source-link
Enable SourceLink, deterministic builds, embedded icon and project file clean up
2 parents 4c59e26 + 024d42c commit a1c452f

File tree

7 files changed

+28
-13
lines changed

7 files changed

+28
-13
lines changed

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ before_build:
99

1010
build_script:
1111
- dotnet restore src/NetMQ.sln
12-
- dotnet build src/NetMQ.sln /p:Configuration=Release /p:PackageVersion=%APPVEYOR_BUILD_VERSION%-pre /p:Version=%APPVEYOR_BUILD_VERSION% /verbosity:minimal
12+
- dotnet build src/NetMQ.sln /p:Configuration=Release /p:PackageVersion=%APPVEYOR_BUILD_VERSION%-pre /p:Version=%APPVEYOR_BUILD_VERSION% /P:ContinuousIntegrationBuild=true /verbosity:minimal
1313
- dotnet pack src/NetMQ/NetMQ.csproj -c Release --no-build /p:PackageVersion=%APPVEYOR_BUILD_VERSION%-pre /p:Version=%APPVEYOR_BUILD_VERSION%
1414

1515
test_script:

img/NetMQLogoSquare-256px.png

8.88 KB
Loading

img/NetMQLogoSquare-400px.png

-6.37 KB
Loading

src/Directory.Build.targets

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<Project>
2+
<!-- Workaround for https://github.com/dotnet/sourcelink/issues/572 -->
3+
<PropertyGroup>
4+
<TargetFrameworkMonikerAssemblyAttributesPath>$([System.IO.Path]::Combine('$(IntermediateOutputPath)','$(TargetFrameworkMoniker).AssemblyAttributes$(DefaultLanguageSourceExtension)'))</TargetFrameworkMonikerAssemblyAttributesPath>
5+
</PropertyGroup>
6+
<ItemGroup>
7+
<EmbeddedFiles Include="$(GeneratedAssemblyInfoFile)"/>
8+
</ItemGroup>
9+
</Project>

src/NetMQ.Tests/NetMQ.Tests.csproj

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@
22

33
<PropertyGroup>
44
<DebugType>portable</DebugType>
5-
<AssemblyName>NetMQ.Tests</AssemblyName>
65
<AssemblyOriginatorKeyFile>../NetMQ/NetMQ.snk</AssemblyOriginatorKeyFile>
76
<SignAssembly>true</SignAssembly>
87
<PublicSign Condition=" '$(OS)' != 'Windows_NT' ">true</PublicSign>
9-
<PackageId>NetMQ.Tests</PackageId>
108
<GenerateRuntimeConfigurationFiles>true</GenerateRuntimeConfigurationFiles>
119
<PackageTargetFallback Condition=" '$(TargetFramework)' == 'netcoreapp1.0' ">$(PackageTargetFallback);netcoreapp1.0;portable-net45+win8</PackageTargetFallback>
1210
<IsTestProject>true</IsTestProject>

src/NetMQ.sln

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
3-
# Visual Studio 15
4-
VisualStudioVersion = 15.0.26228.9
3+
# Visual Studio Version 16
4+
VisualStudioVersion = 16.0.30104.148
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Performance", "Performance", "{1D49A4C6-C03C-4F72-9A27-42C8E5219BBA}"
77
EndProject
@@ -12,13 +12,15 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
1212
..\.travis.yml = ..\.travis.yml
1313
..\appveyor.yml = ..\appveyor.yml
1414
..\COPYING.LESSER = ..\COPYING.LESSER
15+
Directory.Build.targets = Directory.Build.targets
1516
..\mkdocs.yml = ..\mkdocs.yml
1617
..\README.md = ..\README.md
1718
EndProjectSection
1819
EndProject
1920
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Docs", "Docs", "{FF13931E-D7A0-489E-9530-0F972DAE1167}"
2021
ProjectSection(SolutionItems) = preProject
2122
..\docs\actor.md = ..\docs\actor.md
23+
..\docs\async-await.md = ..\docs\async-await.md
2224
..\docs\beacon.md = ..\docs\beacon.md
2325
..\docs\cleanup.md = ..\docs\cleanup.md
2426
..\docs\devices.md = ..\docs\devices.md
@@ -39,7 +41,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Docs", "Docs", "{FF13931E-D
3941
..\docs\timer.md = ..\docs\timer.md
4042
..\docs\transports.md = ..\docs\transports.md
4143
..\docs\xpub-xsub.md = ..\docs\xpub-xsub.md
42-
..\docs\async-await.md = ..\docs\async-await.md
4344
EndProjectSection
4445
EndProject
4546
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NetMQ", "NetMQ\NetMQ.csproj", "{49C06317-631D-435F-BE51-A26618FBC2C1}"

src/NetMQ/NetMQ.csproj

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,35 +2,42 @@
22

33
<PropertyGroup>
44
<Description>A 100% native C# port of the lightweight high performance messaging library ZeroMQ</Description>
5-
<AssemblyTitle>NetMQ</AssemblyTitle>
65
<Version>4.0.0.0</Version>
7-
<PackageVersion>4.0.0.0</PackageVersion>
86
<LangVersion>8.0</LangVersion>
97
<TargetFrameworks>net45;net47;netstandard2.0;netstandard2.1</TargetFrameworks>
108
<DebugType>portable</DebugType>
11-
<AssemblyName>NetMQ</AssemblyName>
129
<AssemblyOriginatorKeyFile>./NetMQ.snk</AssemblyOriginatorKeyFile>
1310
<SignAssembly>true</SignAssembly>
1411
<PublicSign Condition=" '$(OS)' != 'Windows_NT' ">true</PublicSign>
15-
<PackageId>NetMQ</PackageId>
1612
<PackageTags>ZeroMQ;0MQ;CLRZMQ;NetMQ;Messaging;ZMQ;transport;distributed</PackageTags>
17-
<PackageIconUrl>https://raw.githubusercontent.com/zeromq/netmq/master/img/NetMQ.ico</PackageIconUrl>
13+
<PackageIcon>NetMQLogoSquare-256px.png</PackageIcon>
1814
<PackageProjectUrl>https://github.com/zeromq/netmq</PackageProjectUrl>
1915
<PackageLicenseUrl>https://github.com/zeromq/netmq/blob/master/COPYING.LESSER</PackageLicenseUrl>
2016
<RepositoryType>git</RepositoryType>
21-
<RepositoryUrl>https://github.com/zeromq/netmq</RepositoryUrl>
22-
<IncludeSymbols>true</IncludeSymbols>
17+
<RepositoryUrl>https://github.com/zeromq/netmq.git</RepositoryUrl>
18+
<PublishRepositoryUrl>true</PublishRepositoryUrl>
19+
<Deterministic>true</Deterministic>
20+
<DeterministicSourcePaths>true</DeterministicSourcePaths>
2321
<IncludeSource>true</IncludeSource>
22+
<EmbedUntrackedSources>true</EmbedUntrackedSources>
23+
<IncludeSymbols>true</IncludeSymbols>
24+
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
2425
<GenerateDocumentationFile>true</GenerateDocumentationFile>
2526
</PropertyGroup>
2627

2728
<PropertyGroup Condition=" '$(TargetFramework)' != 'netstandard2.1' ">
2829
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
2930
</PropertyGroup>
3031

32+
<ItemGroup>
33+
<!-- Include the logo in the nupkg file -->
34+
<None Include="$(MSBuildThisFileDirectory)\..\..\img\NetMQLogoSquare-256px.png" Pack="true" PackagePath="\" />
35+
</ItemGroup>
36+
3137
<ItemGroup>
3238
<PackageReference Include="AsyncIO" Version="0.1.69" />
3339
<PackageReference Include="JetBrains.Annotations" Version="10.4.0" PrivateAssets="All" />
40+
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All" />
3441
<PackageReference Include="NaCl.Net" Version="0.1.6-pre" />
3542
</ItemGroup>
3643

0 commit comments

Comments
 (0)