Skip to content

Commit 9bf3ba4

Browse files
authored
Merge pull request #115 from Cysharp/feature/nuget
chore: Specify IsPackable=false on Directory.Build.props, explicitly true for target packages.
2 parents 878efb6 + 235c162 commit 9bf3ba4

File tree

3 files changed

+36
-26
lines changed

3 files changed

+36
-26
lines changed

Directory.Build.props

Lines changed: 27 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,29 @@
11
<Project>
2-
<PropertyGroup>
3-
<LangVersion>latest</LangVersion>
4-
<Nullable>enable</Nullable>
5-
<GenerateDocumentationFile>true</GenerateDocumentationFile>
6-
<NoWarn>$(NoWarn);CS1591</NoWarn>
7-
<SignAssembly>true</SignAssembly>
8-
<AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)opensource.snk</AssemblyOriginatorKeyFile>
2+
<PropertyGroup>
3+
<LangVersion>latest</LangVersion>
4+
<Nullable>enable</Nullable>
5+
<GenerateDocumentationFile>true</GenerateDocumentationFile>
6+
<NoWarn>$(NoWarn);CS1591</NoWarn>
7+
<SignAssembly>true</SignAssembly>
8+
<AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)opensource.snk</AssemblyOriginatorKeyFile>
99

10-
<!-- NuGet Packaging -->
11-
<PackageVersion>$(Version)</PackageVersion>
12-
<Company>Cysharp</Company>
13-
<Authors>Cysharp</Authors>
14-
<Copyright>© Cysharp, Inc.</Copyright>
15-
<PackageProjectUrl>https://github.com/Cysharp/csbindgen</PackageProjectUrl>
16-
<RepositoryUrl>$(PackageProjectUrl)</RepositoryUrl>
17-
<RepositoryType>git</RepositoryType>
18-
<PackageLicenseExpression>MIT</PackageLicenseExpression>
19-
<PackageIcon>Icon.png</PackageIcon>
20-
<AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)opensource.snk</AssemblyOriginatorKeyFile>
21-
</PropertyGroup>
22-
</Project>
10+
<!-- NuGet Packaging -->
11+
<IsPackable>false</IsPackable>
12+
<PackageVersion>$(Version)</PackageVersion>
13+
<Company>Cysharp</Company>
14+
<Authors>Cysharp</Authors>
15+
<Copyright>© Cysharp, Inc.</Copyright>
16+
<PackageProjectUrl>https://github.com/Cysharp/csbindgen</PackageProjectUrl>
17+
<RepositoryUrl>$(PackageProjectUrl)</RepositoryUrl>
18+
<RepositoryType>git</RepositoryType>
19+
<PackageLicenseExpression>MIT</PackageLicenseExpression>
20+
<PackageIcon>Icon.png</PackageIcon>
21+
<AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)opensource.snk</AssemblyOriginatorKeyFile>
22+
</PropertyGroup>
23+
24+
<ItemGroup>
25+
<None Include="$(MSBuildThisFileDirectory)Icon.png" Pack="true" PackagePath="\" />
26+
<None Include="$(MSBuildThisFileDirectory)README.md" Pack="true" PackagePath="\" />
27+
<EmbeddedResource Include="$(MSBuildThisFileDirectory)LICENSE" />
28+
</ItemGroup>
29+
</Project>

GroupedNativeMethodsGenerator/GroupedNativeMethodsGenerator.csproj

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,19 @@
77
<LangVersion>11</LangVersion>
88
<IsRoslynComponent>true</IsRoslynComponent>
99
<AnalyzerLanguage>cs</AnalyzerLanguage>
10-
<TargetsForTfmSpecificContentInPackage>$(TargetsForTfmSpecificContentInPackage);PackBuildOutputs</TargetsForTfmSpecificContentInPackage>
10+
11+
<!-- this is analyzer only package, does not need runtime self -->
1112
<IncludeBuildOutput>false</IncludeBuildOutput>
12-
<DevelopmentDependency>true</DevelopmentDependency>
1313
<IncludeSymbols>false</IncludeSymbols>
14-
<SuppressDependenciesWhenPacking>true</SuppressDependenciesWhenPacking>
15-
<PackageTags>interop</PackageTags>
14+
<DevelopmentDependency>true</DevelopmentDependency>
15+
<TargetsForTfmSpecificContentInPackage>$(TargetsForTfmSpecificContentInPackage);PackBuildOutputs</TargetsForTfmSpecificContentInPackage>
1616

17+
<!-- NuGet -->
18+
<IsPackable>true</IsPackable>
1719
<PackageId>csbindgen</PackageId>
1820
<Description>Code generator for csbindgen.</Description>
21+
<PackageTags>interop</PackageTags>
22+
<SuppressDependenciesWhenPacking>true</SuppressDependenciesWhenPacking>
1923
</PropertyGroup>
2024

2125
<ItemGroup>
@@ -32,4 +36,4 @@
3236
</ItemGroup>
3337
</Target>
3438

35-
</Project>
39+
</Project>

dotnet-sandbox/CsbindgenDotnetConsoleApp.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
<ImplicitUsings>enable</ImplicitUsings>
77
<Nullable>enable</Nullable>
88
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
9-
<IsPackable>false</IsPackable>
109
</PropertyGroup>
1110

1211
<ItemGroup>

0 commit comments

Comments
 (0)