Skip to content

Commit 6c6444b

Browse files
authored
Merge pull request #104 from Cysharp/feature/nuget
chore: Specify IsPackable=false on Directory.Build.props, explicitly true for target packages.
2 parents edd4cdd + f093d6b commit 6c6444b

File tree

18 files changed

+95
-135
lines changed

18 files changed

+95
-135
lines changed

Directory.Build.props

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,11 @@
33
<GenerateDocumentationFile>true</GenerateDocumentationFile>
44
<LangVersion>7.3</LangVersion>
55
<NoWarn>$(NoWarn);CS1591</NoWarn>
6+
<SignAssembly>true</SignAssembly>
7+
<AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)release.snk</AssemblyOriginatorKeyFile>
68

79
<!-- NuGet Packaging -->
10+
<IsPackable>false</IsPackable>
811
<PackageVersion>$(Version)</PackageVersion>
912
<Company>Cysharp</Company>
1013
<Authors>Cysharp</Authors>
@@ -19,6 +22,8 @@
1922
</PropertyGroup>
2023

2124
<ItemGroup>
25+
<None Include="$(MSBuildThisFileDirectory)Icon.png" Pack="true" PackagePath="\" />
2226
<None Include="$(MSBuildThisFileDirectory)README.md" Pack="true" PackagePath="\" />
27+
<EmbeddedResource Include="$(MSBuildThisFileDirectory)LICENSE" />
2328
</ItemGroup>
2429
</Project>
File renamed without changes.

benchmark/PerfBenchmark/PerfBenchmark.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
55
<TargetFramework>net7.0</TargetFramework>
6-
<IsPackable>false</IsPackable>
76
</PropertyGroup>
87

98
<ItemGroup>

sandbox/BlazorWasm/BlazorWasm.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
<PropertyGroup>
44
<TargetFramework>net7.0</TargetFramework>
5-
<IsPackable>false</IsPackable>
65
</PropertyGroup>
76

87
<ItemGroup>

sandbox/TryUlid/TryUlid.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
55
<TargetFramework>net7.0</TargetFramework>
6-
<IsPackable>false</IsPackable>
76
</PropertyGroup>
87

98
<ItemGroup>

src/Ulid.Cli/Ulid.Cli.csproj

Lines changed: 22 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,31 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

3-
<ItemGroup>
4-
<ProjectReference Include="..\Ulid\Ulid.csproj" />
5-
</ItemGroup>
3+
<PropertyGroup>
4+
<OutputType>Exe</OutputType>
5+
<TargetFrameworks>net6.0;net8.0</TargetFrameworks>
6+
<LangVersion>7.3</LangVersion>
67

7-
<ItemGroup>
8-
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleTo">
9-
<_Parameter1>Ulid.Cli.Tests</_Parameter1>
10-
</AssemblyAttribute>
11-
</ItemGroup>
8+
<!-- Allow running on whatever latest version users have. See https://docs.microsoft.com/en-us/dotnet/core/versions/selection#framework-dependent-apps-roll-forward -->
9+
<RollForward>LatestMajor</RollForward>
1210

13-
<PropertyGroup>
14-
<OutputType>Exe</OutputType>
15-
<TargetFrameworks>net6.0;net8.0</TargetFrameworks>
16-
<ToolCommandName>dotnet-ulid</ToolCommandName>
17-
<PackAsTool>true</PackAsTool>
18-
<LangVersion>7.3</LangVersion>
19-
<IsPackable>true</IsPackable>
20-
<!-- Allow running on whatever latest version users have. See https://docs.microsoft.com/en-us/dotnet/core/versions/selection#framework-dependent-apps-roll-forward -->
21-
<RollForward>LatestMajor</RollForward>
22-
</PropertyGroup>
11+
<!-- NuGet -->
12+
<IsPackable>true</IsPackable>
13+
<PackageId>Ulid-Cli</PackageId>
14+
<Description>ULID commandline utility</Description>
15+
<PackAsTool>true</PackAsTool>
16+
<ToolCommandName>dotnet-ulid</ToolCommandName>
17+
</PropertyGroup>
2318

24-
<ItemGroup>
25-
<None Include="..\Ulid\Icon.png" Pack="true" PackagePath="/" />
26-
</ItemGroup>
19+
<ItemGroup>
20+
<PackageReference Include="ConsoleAppFramework" Version="2.1.0" />
21+
</ItemGroup>
2722

28-
<ItemGroup>
29-
<PackageReference Include="ConsoleAppFramework" Version="2.1.0" />
30-
</ItemGroup>
23+
<ItemGroup>
24+
<InternalsVisibleTo Include="Ulid.Cli.Tests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100c55536314d92aaeae8e98e95e4d77c1423811f31971931916031ae58d274b60e580b48b8d093b70afae5d4efedbdcdef6d77a44ccc32df02a0f59bbf99cb8c9241edbacbee6ccf1a8fe53feafc4308923ed56b11dc84860f72e30bbd319cd534ca0aa39af623a4eeedda4a0e4b79d04fd5ede02d248d023dabb6ab0c23d4cdb2" />
25+
</ItemGroup>
3126

32-
<!-- NuGet informations -->
33-
<PropertyGroup>
34-
<PackageId>Ulid-Cli</PackageId>
35-
<PackageVersion>$(Version)</PackageVersion>
36-
<Authors>Cysharp</Authors>
37-
<Copyright>Cysharp</Copyright>
38-
<Description>ULID commandline utility</Description>
39-
<PackageProjectUrl>https://github.com/Cysharp/Ulid</PackageProjectUrl>
40-
<RepositoryUrl>$(PackageProjectUrl)</RepositoryUrl>
41-
<RepositoryType>git</RepositoryType>
42-
<PackageTags>guid</PackageTags>
43-
<PackageIcon>Icon.png</PackageIcon>
44-
</PropertyGroup>
27+
<ItemGroup>
28+
<ProjectReference Include="..\Ulid\Ulid.csproj" />
29+
</ItemGroup>
4530

4631
</Project>
Lines changed: 14 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,21 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

3-
<PropertyGroup>
4-
<TargetFrameworks>netstandard2.0;netstandard2.1</TargetFrameworks>
5-
<SignAssembly>true</SignAssembly>
6-
<AssemblyOriginatorKeyFile>release.snk</AssemblyOriginatorKeyFile>
7-
<GenerateDocumentationFile>true</GenerateDocumentationFile>
3+
<PropertyGroup>
4+
<TargetFrameworks>netstandard2.0;netstandard2.1</TargetFrameworks>
5+
<GenerateDocumentationFile>true</GenerateDocumentationFile>
86

9-
<!-- NuGet -->
10-
<PackageId>Ulid.MessagePack</PackageId>
11-
<Description>Ulid MessagePack Formatter.</Description>
12-
<IsPackable>true</IsPackable>
13-
</PropertyGroup>
7+
<!-- NuGet -->
8+
<IsPackable>true</IsPackable>
9+
<PackageId>Ulid.MessagePack</PackageId>
10+
<Description>Ulid MessagePack Formatter.</Description>
11+
</PropertyGroup>
1412

15-
<ItemGroup>
16-
<PackageReference Include="MessagePack" Version="2.1.90" />
17-
</ItemGroup>
13+
<ItemGroup>
14+
<PackageReference Include="MessagePack" Version="2.1.90" />
15+
</ItemGroup>
1816

19-
<ItemGroup>
20-
<ProjectReference Include="..\Ulid\Ulid.csproj" />
21-
</ItemGroup>
22-
23-
<ItemGroup>
24-
<None Include="..\Ulid\Icon.png" Pack="true" PackagePath="/" />
25-
</ItemGroup>
17+
<ItemGroup>
18+
<ProjectReference Include="..\Ulid\Ulid.csproj" />
19+
</ItemGroup>
2620

2721
</Project>
Lines changed: 18 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,26 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

3-
<PropertyGroup>
4-
<TargetFrameworks>netstandard2.0;netstandard2.1</TargetFrameworks>
5-
<DefineConstants>SYSTEM_TEXT_JSON</DefineConstants>
6-
<SignAssembly>true</SignAssembly>
7-
<AssemblyOriginatorKeyFile>release.snk</AssemblyOriginatorKeyFile>
8-
<GenerateDocumentationFile>true</GenerateDocumentationFile>
3+
<PropertyGroup>
4+
<TargetFrameworks>netstandard2.0;netstandard2.1</TargetFrameworks>
5+
<DefineConstants>SYSTEM_TEXT_JSON</DefineConstants>
6+
<GenerateDocumentationFile>true</GenerateDocumentationFile>
97

10-
<!-- NuGet -->
11-
<PackageId>Ulid.SystemTextJson</PackageId>
12-
<Description>Ulid System.Text.Json Converter.</Description>
13-
<IsPackable>true</IsPackable>
14-
</PropertyGroup>
8+
<!-- NuGet -->
9+
<IsPackable>true</IsPackable>
10+
<PackageId>Ulid.SystemTextJson</PackageId>
11+
<Description>Ulid System.Text.Json Converter.</Description>
12+
</PropertyGroup>
1513

16-
<ItemGroup>
17-
<Compile Include="..\Ulid\UlidJsonConverter.cs" Link="UlidJsonConverter.cs" />
18-
</ItemGroup>
14+
<ItemGroup>
15+
<Compile Include="..\Ulid\UlidJsonConverter.cs" Link="UlidJsonConverter.cs" />
16+
</ItemGroup>
1917

20-
<ItemGroup>
21-
<PackageReference Include="System.Text.Json" Version="8.0.4" />
22-
</ItemGroup>
18+
<ItemGroup>
19+
<PackageReference Include="System.Text.Json" Version="8.0.4" />
20+
</ItemGroup>
2321

24-
<ItemGroup>
25-
<ProjectReference Include="..\Ulid\Ulid.csproj" />
26-
</ItemGroup>
27-
28-
<ItemGroup>
29-
<None Include="..\Ulid\Icon.png" Pack="true" PackagePath="/" />
30-
</ItemGroup>
22+
<ItemGroup>
23+
<ProjectReference Include="..\Ulid\Ulid.csproj" />
24+
</ItemGroup>
3125

3226
</Project>
-596 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)