Skip to content

Commit 965337d

Browse files
committed
build(csproj): 禁用非发布项目的 NuGet 打包
为应用程序、代码生成器、热更新等非库项目设置 IsPackable=false, 防止这些项目被意外打包为 NuGet 包。
1 parent 50d4860 commit 965337d

7 files changed

Lines changed: 10 additions & 0 deletions

File tree

GameFrameX.Apps/GameFrameX.Apps.csproj

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

33
<PropertyGroup>
44
<ImplicitUsings>disable</ImplicitUsings>
5+
<IsPackable>false</IsPackable>
56
</PropertyGroup>
67

78
<ItemGroup>

GameFrameX.Client/GameFrameX.Client.csproj

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

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5+
<IsPackable>false</IsPackable>
56
</PropertyGroup>
67

78
<PropertyGroup Condition="'$(Configuration)' == 'Debug'">

GameFrameX.CodeGenerator/GameFrameX.CodeGenerator.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

3+
<PropertyGroup>
4+
<IsPackable>false</IsPackable>
5+
</PropertyGroup>
6+
37
<ItemGroup>
48
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="3.11.0">
59
<PrivateAssets>all</PrivateAssets>

GameFrameX.Config/GameFrameX.Config.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<ImplicitUsings>enable</ImplicitUsings>
55
<Nullable>disable</Nullable>
66
<LangVersion>10</LangVersion>
7+
<IsPackable>false</IsPackable>
78
</PropertyGroup>
89

910
<ItemGroup>

GameFrameX.Hotfix/GameFrameX.Hotfix.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<PropertyGroup>
44
<ApplicationIcon />
55
<StartupObject />
6+
<IsPackable>false</IsPackable>
67
</PropertyGroup>
78

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

GameFrameX.Launcher/GameFrameX.Launcher.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
66
<ApplicationIcon/>
77
<StartupObject/>
8+
<IsPackable>false</IsPackable>
89
</PropertyGroup>
910

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

GameFrameX.Proto/GameFrameX.Proto.csproj

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

33
<PropertyGroup>
44
<LangVersion>10</LangVersion>
5+
<IsPackable>false</IsPackable>
56
</PropertyGroup>
67

78
<ItemGroup>

0 commit comments

Comments
 (0)