Skip to content

Commit c805cdf

Browse files
committed
修复不应该发布包的内容被打包
1 parent 3ba1390 commit c805cdf

9 files changed

Lines changed: 29 additions & 2 deletions

File tree

‎.github/workflows/nuget-tag-publish.yml‎

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,16 @@ jobs:
1111
runs-on: windows-latest
1212

1313
steps:
14-
- uses: actions/checkout@v1
14+
- uses: actions/checkout@v6
15+
- name: Setup .NET
16+
uses: actions/setup-dotnet@v5
17+
with:
18+
dotnet-version: |
19+
3.1.x
20+
6.0.x
21+
8.0.x
22+
9.0.x
23+
10.0.x
1524
1625
- name: Set tag to version
1726
run: dnx DotNetCampus.TagToVersion -t ${{ github.ref }}

‎Build/Version.props‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<Project>
2+
<PropertyGroup>
3+
<Version>0.0.1</Version>
4+
</PropertyGroup>
5+
</Project>

‎Demos/LightTextEditorPlus.SkiaDemo/LightTextEditorPlus.SkiaDemo.csproj‎

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

1011
<ItemGroup>

‎Directory.Build.props‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<Project>
2-
2+
3+
<Import Project="Build\Version.props" />
4+
35
<PropertyGroup>
46
<UseArtifactsOutput Condition="'$(UseArtifactsOutput)' == ''">true</UseArtifactsOutput>
57
<ArtifactsPath Condition="'$(ArtifactsPath)' == ''">$(MSBuildThisFileDirectory)artifacts</ArtifactsPath>

‎LightTextEditorPlus.Core/LightTextEditorPlus.Core.csproj‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
<BanAttributeAPI>TextEditorPublicAPIAttribute</BanAttributeAPI>
1010
<UseUIFramework>Standard</UseUIFramework>
1111
<IsTrimmable>true</IsTrimmable>
12+
<IsPackable>false</IsPackable>
1213
</PropertyGroup>
1314

1415
<ItemGroup>

‎LightTextEditorPlus.MauiGraphics/LightTextEditorPlus.MauiGraphics.csproj‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
<Nullable>enable</Nullable>
66
<UseUIFramework>MauiGraphics</UseUIFramework>
77
<RootNamespace>LightTextEditorPlus</RootNamespace>
8+
<!-- 不发布的原因: 尚未完成 -->
9+
<IsPackable>false</IsPackable>
810
</PropertyGroup>
911
<ItemGroup>
1012
<PackageReference Include="Microsoft.Maui.Graphics" Version="6.0.403" />

‎LightTextEditorPlus.Skia.AotLayer/LightTextEditorPlus.Skia.AotLayer.csproj‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
<AssemblyName>LightTextEditorPlus</AssemblyName>
1515

1616
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
17+
<IsPackable>false</IsPackable>
1718
</PropertyGroup>
1819

1920
<ItemGroup>

‎LightTextEditorPlus.slnx‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,14 @@
88
<Project Path="Analyzers/TextEditorInternalAnalyzer/TextEditorInternalAnalyzer.csproj" />
99
</Folder>
1010
<Folder Name="/Build/">
11+
<File Path="Build/Version.props" />
1112
<File Path="Directory.Build.props" />
1213
<File Path="Directory.Build.targets" />
1314
</Folder>
15+
<Folder Name="/Build/GitHub Actions/">
16+
<File Path=".github/workflows/LightTextEditorPlusBuild.yml" />
17+
<File Path=".github/workflows/nuget-tag-publish.yml" />
18+
</Folder>
1419
<Folder Name="/Demos/">
1520
<Project Path="Demos/AvaloniaDemo/LightTextEditorPlus.AvaloniaDemo.csproj" />
1621
<Project Path="Demos/LightTextEditorPlus.Demo/LightTextEditorPlus.Demo.csproj" />

‎Tests/TextVisionComparer/TextVisionComparer.csproj‎

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

1011
<ItemGroup>

0 commit comments

Comments
 (0)