Skip to content

Commit 9fbf0cd

Browse files
authored
Merge pull request #65 from Cysharp/ci/nuget_readme
chore: add README.md to nuget package
2 parents 73e5863 + d60073c commit 9fbf0cd

File tree

5 files changed

+29
-18
lines changed

5 files changed

+29
-18
lines changed

.github/workflows/build-debug.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,5 @@ jobs:
1717
steps:
1818
- uses: Cysharp/Actions/.github/actions/checkout@main
1919
- uses: Cysharp/Actions/.github/actions/setup-dotnet@main
20-
- run: dotnet build -c Debug
20+
- run: dotnet build -c Release
21+
- run: dotnet pack -c Release --no-build -p:IncludeSymbols=true -o $GITHUB_WORKSPACE/artifacts

Directory.Build.props

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<PropertyGroup>
4+
<LangVersion>13</LangVersion>
5+
6+
<!-- NuGet Package Information -->
7+
<PackageVersion>$(Version)</PackageVersion>
8+
<Company>Cysharp</Company>
9+
<Authors>Cysharp</Authors>
10+
<Copyright>© Cysharp, Inc.</Copyright>
11+
<PackageTags>sourcegenerator;valueobject</PackageTags>
12+
<PackageProjectUrl>https://github.com/Cysharp/UnitGenerator</PackageProjectUrl>
13+
<PackageReadmeFile>README.md</PackageReadmeFile>
14+
<RepositoryUrl>$(PackageProjectUrl)</RepositoryUrl>
15+
<RepositoryType>git</RepositoryType>
16+
<PackageLicenseExpression>MIT</PackageLicenseExpression>
17+
<PackageIcon>Icon.png</PackageIcon>
18+
</PropertyGroup>
19+
20+
<ItemGroup>
21+
<None Include="$(MSBuildThisFileDirectory)README.md" Pack="true" PackagePath="\" />
22+
<None Include="$(MSBuildThisFileDirectory)Icon.png" Pack="true" PackagePath="\" />
23+
</ItemGroup>
24+
</Project>
File renamed without changes.

src/EntityFrameworkApp/EntityFrameworkApp.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<TargetFramework>net7.0</TargetFramework>
66
<ImplicitUsings>enable</ImplicitUsings>
77
<Nullable>enable</Nullable>
8+
<IsPackable>false</IsPackable>
89
</PropertyGroup>
910

1011
<ItemGroup>

src/UnitGenerator/UnitGenerator.csproj

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,12 @@
1010
<!-- does not need runtime self -->
1111
<IncludeBuildOutput>false</IncludeBuildOutput>
1212
<SuppressDependenciesWhenPacking>true</SuppressDependenciesWhenPacking>
13-
<IncludeSymbols>false</IncludeSymbols>
14-
<DevelopmentDependency>true</DevelopmentDependency>
13+
<IncludeSymbols>false</IncludeSymbols>
14+
<DevelopmentDependency>true</DevelopmentDependency>
1515

1616
<!-- NuGet -->
1717
<PackageId>UnitGenerator</PackageId>
1818
<Description>C# Source Generator to create value-object, inspired by units of measure.</Description>
19-
20-
<PackageVersion>$(Version)</PackageVersion>
21-
<Company>Cysharp</Company>
22-
<Authors>Cysharp</Authors>
23-
<Copyright>© Cysharp, Inc.</Copyright>
24-
<PackageTags>sourcegenerator;valueobject</PackageTags>
25-
<PackageProjectUrl>https://github.com/Cysharp/UnitGenerator</PackageProjectUrl>
26-
<RepositoryUrl>$(PackageProjectUrl)</RepositoryUrl>
27-
<RepositoryType>git</RepositoryType>
28-
<PackageLicenseExpression>MIT</PackageLicenseExpression>
29-
<PackageIcon>Icon.png</PackageIcon>
3019
<IsPackable>true</IsPackable>
3120
</PropertyGroup>
3221

@@ -39,10 +28,6 @@
3928
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.3.0" PrivateAssets="all" />
4029
</ItemGroup>
4130

42-
<ItemGroup>
43-
<None Include="Icon.png" Pack="true" PackagePath="/" />
44-
</ItemGroup>
45-
4631
<ItemGroup>
4732
<Service Include="{508349b6-6b84-4df5-91f0-309beebad82d}" />
4833
</ItemGroup>

0 commit comments

Comments
 (0)