Skip to content

Commit beb3947

Browse files
Merge pull request #98 from fle-bach/FixPathNupkg
Generate .snupkg for get .pdb file
2 parents afc7b21 + 449186a commit beb3947

File tree

3 files changed

+29
-7
lines changed

3 files changed

+29
-7
lines changed

ReactiveXComponent/ReactiveXComponent.csproj

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<PackageProjectUrl>https://github.com/xcomponent/ReactiveXComponent.Net</PackageProjectUrl>
1212
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
1313
<PackageId>ReactiveXComponent.Net</PackageId>
14-
<Version>2.0.0</Version>
14+
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
1515
</PropertyGroup>
1616

1717
<ItemGroup>
@@ -21,13 +21,24 @@
2121
</ItemGroup>
2222

2323
<ItemGroup>
24-
<PackageReference Include="ILRepack.MSBuild.Task" Version="2.0.13" />
24+
<PackageReference Include="ILRepack.MSBuild.Task" Version="2.0.13">
25+
<PrivateAssets>all</PrivateAssets>
26+
</PackageReference>
27+
<PackageReference Include="SuperSocket.ClientEngine" Version="0.10.0">
28+
<PrivateAssets>all</PrivateAssets>
29+
</PackageReference>
30+
<PackageReference Include="System.Reactive.Core" Version="3.1.1">
31+
<PrivateAssets>all</PrivateAssets>
32+
</PackageReference>
33+
<PackageReference Include="System.Reactive.Interfaces" Version="3.1.1">
34+
<PrivateAssets>all</PrivateAssets>
35+
</PackageReference>
36+
<PackageReference Include="System.Reactive.Linq" Version="3.1.1">
37+
<PrivateAssets>all</PrivateAssets>
38+
<ExcludeAssets>runtime</ExcludeAssets>
39+
</PackageReference>
2540
<PackageReference Include="Newtonsoft.Json" Version="12.0.1" />
2641
<PackageReference Include="RabbitMQ.Client" Version="4.1.3" />
27-
<PackageReference Include="SuperSocket.ClientEngine" Version="0.10.0" />
28-
<PackageReference Include="System.Reactive.Core" Version="3.1.1" />
29-
<PackageReference Include="System.Reactive.Interfaces" Version="3.1.1" />
30-
<PackageReference Include="System.Reactive.Linq" Version="3.1.1" />
3142
<PackageReference Include="WebSocket4Net" Version="0.15.2" />
3243
</ItemGroup>
3344

@@ -36,7 +47,13 @@
3647
<PropertyGroup>
3748
<WorkingDirectory>$(MSBuildThisFileDirectory)$(OutputPath)</WorkingDirectory>
3849
</PropertyGroup>
50+
<ItemGroup>
51+
<InputAssemblies Include="$(WorkingDirectory)\ReactiveXComponent.dll" />
52+
<InputAssemblies Include="$(WorkingDirectory)\Newtonsoft.Json.dll" />
53+
<InputAssemblies Include="$(WorkingDirectory)\RabbitMQ.Client.dll" />
54+
<InputAssemblies Include="$(WorkingDirectory)\WebSocket4Net.dll" />
55+
</ItemGroup>
3956

40-
<ILRepack OutputType="$(OutputType)" MainAssembly="$(AssemblyName).dll" OutputAssembly="$(MSBuildThisFileDirectory)\..\packaging\$(AssemblyName).dll" InputAssemblies="$(WorkingDirectory)\*.dll" WilcardInputAssemblies="true" Internalize="true" WorkingDirectory="$(WorkingDirectory)" />
57+
<ILRepack OutputType="$(OutputType)" MainAssembly="$(AssemblyName).dll" OutputAssembly="$(MSBuildThisFileDirectory)\..\packaging\$(AssemblyName).dll" InputAssemblies="@(InputAssemblies)" WilcardInputAssemblies="true" Internalize="true" WorkingDirectory="$(WorkingDirectory)" />
4158
</Target>
4259
</Project>

ReactiveXComponentTest/ReactiveXComponentTest.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
<PackageReference Include="NUnit" Version="3.11.0" />
1212
<PackageReference Include="NUnit3TestAdapter" Version="3.12.0" />
1313
<PackageReference Include="System.Configuration.ConfigurationManager" Version="4.5.0" />
14+
<PackageReference Include="System.Reactive.Linq" Version="3.1.1" />
1415
</ItemGroup>
1516

1617
<ItemGroup>

build.cake

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ Task("Build")
3939
"ReactiveXComponent.sln",
4040
new DotNetCoreBuildSettings {
4141
Configuration = buildConfiguration,
42+
VersionSuffix = version,
43+
MSBuildSettings = new DotNetCoreMSBuildSettings{}.SetVersion(version),
4244
});
4345
});
4446

@@ -64,6 +66,8 @@ Task("CreatePackage")
6466
"ReactiveXComponent/ReactiveXComponent.csproj",
6567
new DotNetCorePackSettings {
6668
Configuration = buildConfiguration,
69+
IncludeSymbols = true,
70+
NoBuild = true,
6771
OutputDirectory = @"nuget",
6872
VersionSuffix = version,
6973
MSBuildSettings = new DotNetCoreMSBuildSettings{}.SetVersion(version),

0 commit comments

Comments
 (0)