Skip to content

Commit 8997e81

Browse files
authored
Merge pull request #423 from Cysharp/feature/nuget
chore: Specify IsPackable=false on Directory.Build.props, explicitly true for target packages.
2 parents 0e82db3 + 3a5f7a6 commit 8997e81

File tree

17 files changed

+33
-28
lines changed

17 files changed

+33
-28
lines changed

.gitignore

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,19 @@ publish
7777
*.Publish.xml
7878

7979
# NuGet Packages Directory
80+
*.nupkg
81+
# NuGet Symbol Packages
82+
*.snupkg
83+
# The packages folder can be ignored because of Package Restore
8084
# packages # upm pacakge will use Packages
85+
# **/[Pp]ackages/*
86+
# except build/, which is used as an MSBuild target.
87+
# !**/[Pp]ackages/build/
88+
# Uncomment if necessary however generally it will be regenerated when needed
89+
#!**/[Pp]ackages/repositories.config
90+
# NuGet v3's project.json files produces more ignorable files
91+
*.nuget.props
92+
*.nuget.targets
8193

8294
# Windows Azure Build Output
8395
csx
@@ -107,9 +119,6 @@ UpgradeLog*.XML
107119
.vs/config/applicationhost.config
108120
.vs/restore.dg
109121

110-
nuget/tools/*
111-
nuget/*.nupkg
112-
nuget/*.unitypackage
113122
.vs/
114123

115124
# Jetbrains Rider

Directory.Build.props

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
<AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)opensource.snk</AssemblyOriginatorKeyFile>
99

1010
<!-- NuGet Packaging -->
11+
<IsPackable>false</IsPackable>
1112
<PackageVersion>$(Version)</PackageVersion>
1213
<Company>Cysharp</Company>
1314
<Authors>Cysharp</Authors>
@@ -18,10 +19,11 @@
1819
<RepositoryType>git</RepositoryType>
1920
<PackageLicenseExpression>MIT</PackageLicenseExpression>
2021
<PackageIcon>Icon.png</PackageIcon>
21-
<AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)opensource.snk</AssemblyOriginatorKeyFile>
2222
</PropertyGroup>
2323

2424
<ItemGroup>
25+
<None Include="$(MSBuildThisFileDirectory)Icon.png" Pack="true" PackagePath="\" />
2526
<None Include="$(MSBuildThisFileDirectory)README.md" Pack="true" PackagePath="\" />
27+
<EmbeddedResource Include="$(MSBuildThisFileDirectory)LICENSE" />
2628
</ItemGroup>
2729
</Project>
File renamed without changes.

sandbox/Benchmark/Benchmark.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
88
<Nullable>enable</Nullable>
99
<TieredPGO>true</TieredPGO>
10-
<IsPackable>false</IsPackable>
1110
</PropertyGroup>
1211

1312
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">

sandbox/ClassLibrary/ClassLibrary.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
<ImplicitUsings>enable</ImplicitUsings>
66
<LangVersion>11.0</LangVersion>
77
<Nullable>enable</Nullable>
8-
<IsPackable>false</IsPackable>
98
</PropertyGroup>
109

1110
<ItemGroup>

sandbox/NativeAot/NativeAot.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
<TargetFramework>net8.0</TargetFramework>
66
<ImplicitUsings>enable</ImplicitUsings>
77
<Nullable>enable</Nullable>
8-
<IsPackable>false</IsPackable>
98

109
<!-- AOT Options -->
1110
<!-- https://learn.microsoft.com/ja-jp/dotnet/core/deploying/native-aot/ -->

sandbox/Net6VsNet7/Net6VsNet7.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
<TargetFrameworks>net7.0;net6.0</TargetFrameworks>
66
<ImplicitUsings>enable</ImplicitUsings>
77
<Nullable>enable</Nullable>
8-
<IsPackable>false</IsPackable>
98
</PropertyGroup>
109

1110
<ItemGroup>

sandbox/SandboxConsoleApp/SandboxConsoleApp.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
<TargetFramework>net8.0</TargetFramework>
66
<ImplicitUsings>disable</ImplicitUsings>
77
<Nullable>enable</Nullable>
8-
<IsPackable>false</IsPackable>
98
<!-- <PublishAot>true</PublishAot> -->
109
</PropertyGroup>
1110

sandbox/SandboxNet6/SandboxNet6.csproj

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

1211
<ItemGroup>

sandbox/SandboxWebApp/SandboxWebApp.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
<TargetFramework>net7.0</TargetFramework>
55
<Nullable>enable</Nullable>
66
<ImplicitUsings>enable</ImplicitUsings>
7-
<IsPackable>false</IsPackable>
87
</PropertyGroup>
98

109
<ItemGroup>

0 commit comments

Comments
 (0)