Skip to content

Commit 1cc8780

Browse files
committed
[构建] 更新 Directory.Build.props,增加 ImplicitUsings/Nullable 设置和 PackageTags
# Conflicts: # Directory.Build.props
1 parent 5eb5656 commit 1cc8780

1 file changed

Lines changed: 62 additions & 62 deletions

File tree

Directory.Build.props

Lines changed: 62 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -1,67 +1,67 @@
11
<Project>
2-
<PropertyGroup>
3-
<TargetFramework>net8.0</TargetFramework>
4-
<LangVersion>10.0</LangVersion>
5-
<ImplicitUsings>enable</ImplicitUsings>
6-
<Nullable>disable</Nullable>
7-
<GenerateDocumentationFile>true</GenerateDocumentationFile>
8-
</PropertyGroup>
9-
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU' and '$(OutputPath)'==''">
10-
<OutputPath>$(MSBuildThisFileDirectory)bin/app_debug/</OutputPath>
11-
</PropertyGroup>
12-
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU' and '$(OutputPath)'==''">
13-
<OutputPath>$(MSBuildThisFileDirectory)bin/app/</OutputPath>
14-
</PropertyGroup>
2+
<PropertyGroup>
3+
<TargetFramework>net8.0</TargetFramework>
4+
<LangVersion>10.0</LangVersion>
5+
<ImplicitUsings>enable</ImplicitUsings>
6+
<Nullable>disable</Nullable>
7+
<GenerateDocumentationFile>true</GenerateDocumentationFile>
8+
</PropertyGroup>
9+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU' and '$(OutputPath)'==''">
10+
<OutputPath>$(MSBuildThisFileDirectory)bin/app_debug/</OutputPath>
11+
</PropertyGroup>
12+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU' and '$(OutputPath)'==''">
13+
<OutputPath>$(MSBuildThisFileDirectory)bin/app/</OutputPath>
14+
</PropertyGroup>
1515

16-
<PropertyGroup>
17-
<PackageProjectUrl>https://github.com/alianblank/GameFrameX.supersocket</PackageProjectUrl>
18-
<RepositoryUrl>https://github.com/alianblank/GameFrameX.SuperSocket.git</RepositoryUrl>
19-
<RepositoryType>git</RepositoryType>
20-
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
21-
<PackageTags>GameFrameX,Lib,Extension,Server,GameServer,SuperSocket</PackageTags>
22-
<PackageReleaseNotes>https://gameframex.doc.alianblank.com/</PackageReleaseNotes>
23-
<PackageReadmeFile>README.md</PackageReadmeFile>
24-
<IsPackable>true</IsPackable>
25-
<PackageIcon>logo.png</PackageIcon>
26-
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
27-
<GenerateDocumentationFile>true</GenerateDocumentationFile>
28-
<PackageId>$(AssemblyName)</PackageId>
29-
<GenerateAssemblyInfo>true</GenerateAssemblyInfo>
30-
<PublishRepositoryUrl>true</PublishRepositoryUrl>
31-
<IncludeSymbols>true</IncludeSymbols>
32-
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
33-
<IncludeSource>true</IncludeSource>
34-
<Authors>Kerry Jiang and other contributors;AlianBlank</Authors>
35-
<Owners>Kerry Jiang;AlianBlank</Owners>
36-
<Copyright>Kerry Jiang;AlianBlank;GameFrameX;Blank</Copyright>
37-
<Title>$(AssemblyName)</Title>
38-
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
39-
<AssemblyOriginatorKeyFile>../../gameframex.key.snk</AssemblyOriginatorKeyFile>
40-
</PropertyGroup>
16+
<PropertyGroup>
17+
<PackageProjectUrl>https://github.com/alianblank/GameFrameX.supersocket</PackageProjectUrl>
18+
<RepositoryUrl>https://github.com/alianblank/GameFrameX.SuperSocket.git</RepositoryUrl>
19+
<RepositoryType>git</RepositoryType>
20+
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
21+
<PackageTags>GameFrameX,Lib,Extension,Server,GameServer,SuperSocket</PackageTags>
22+
<PackageReleaseNotes>https://gameframex.doc.alianblank.com/</PackageReleaseNotes>
23+
<PackageReadmeFile>README.md</PackageReadmeFile>
24+
<IsPackable>true</IsPackable>
25+
<PackageIcon>logo.png</PackageIcon>
26+
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
27+
<GenerateDocumentationFile>true</GenerateDocumentationFile>
28+
<PackageId>$(AssemblyName)</PackageId>
29+
<GenerateAssemblyInfo>true</GenerateAssemblyInfo>
30+
<PublishRepositoryUrl>true</PublishRepositoryUrl>
31+
<IncludeSymbols>true</IncludeSymbols>
32+
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
33+
<IncludeSource>true</IncludeSource>
34+
<Authors>Kerry Jiang and other contributors;AlianBlank</Authors>
35+
<Owners>Kerry Jiang;AlianBlank</Owners>
36+
<Copyright>Kerry Jiang;AlianBlank;GameFrameX;Blank</Copyright>
37+
<Title>$(AssemblyName)</Title>
38+
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
39+
<AssemblyOriginatorKeyFile>../../gameframex.key.snk</AssemblyOriginatorKeyFile>
40+
</PropertyGroup>
4141

42-
<PropertyGroup Condition="'$(IncludeReleaseNotes)' == 'true'">
43-
<PackageReadmeFile>v$(PackageVersion).md</PackageReadmeFile>
44-
</PropertyGroup>
45-
<ItemGroup Condition="'$(IncludeReleaseNotes)' == 'true'">
46-
<None Include="../../releaseNotes/v$(PackageVersion).md" Pack="true" PackagePath="/" />
47-
</ItemGroup>
48-
<ItemGroup>
49-
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All" />
50-
</ItemGroup>
51-
<ItemGroup Condition="$(IsPackable) != False AND '$(OutputType)' != 'Exe'">
52-
<Compile Include="..\..\InternalsVisibleTo.cs" />
53-
</ItemGroup>
42+
<PropertyGroup Condition="'$(IncludeReleaseNotes)' == 'true'">
43+
<PackageReadmeFile>v$(PackageVersion).md</PackageReadmeFile>
44+
</PropertyGroup>
45+
<ItemGroup Condition="'$(IncludeReleaseNotes)' == 'true'">
46+
<None Include="../../releaseNotes/v$(PackageVersion).md" Pack="true" PackagePath="/"/>
47+
</ItemGroup>
48+
<ItemGroup>
49+
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All"/>
50+
</ItemGroup>
51+
<ItemGroup Condition="$(IsPackable) != False AND '$(OutputType)' != 'Exe'">
52+
<Compile Include="..\..\InternalsVisibleTo.cs"/>
53+
</ItemGroup>
5454

55-
<ItemGroup>
56-
<None Include="../../logo.png">
57-
<Pack>True</Pack>
58-
<PackagePath>\</PackagePath>
59-
<Link>logo.png</Link>
60-
</None>
61-
<None Include="../../README.md">
62-
<Pack>True</Pack>
63-
<PackagePath>\</PackagePath>
64-
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
65-
</None>
66-
</ItemGroup>
55+
<ItemGroup>
56+
<None Include="../../logo.png">
57+
<Pack>True</Pack>
58+
<PackagePath>\</PackagePath>
59+
<Link>logo.png</Link>
60+
</None>
61+
<None Include="../../README.md">
62+
<Pack>True</Pack>
63+
<PackagePath>\</PackagePath>
64+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
65+
</None>
66+
</ItemGroup>
6767
</Project>

0 commit comments

Comments
 (0)