Skip to content

Commit 33fbc4b

Browse files
committed
重新整理打包文件
1 parent ccf7d72 commit 33fbc4b

14 files changed

Lines changed: 38 additions & 332 deletions

File tree

Directory.Build.props

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
-->
1414
<NoWarn>$(NoWarn);NETSDK1138;NU5100</NoWarn>
1515

16-
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
1716
<PackageOutputPath>$(MSBuildThisFileDirectory)bin\$(Configuration)</PackageOutputPath>
1817
<Company>dotnet campus(.NET 职业技术学院)</Company>
1918
<Authors>dotnet-campus</Authors>

src/dotnetCampus.IsExternalInit.Source/dotnetCampus.IsExternalInit.Source.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
<PropertyGroup>
44
<TargetFrameworks>net5.0;netcoreapp3.0;netstandard1.0;net40</TargetFrameworks>
55
<RootNamespace>System.Diagnostics.CodeAnalysis</RootNamespace>
6-
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
76
<PackageId>dotnetCampus.IsExternalInit</PackageId>
87
<Description>If you use C# 9.0 or later and want to use record types, this '.Source' library adds internal IsExternalInit attribute support to your project. This confines the new language feature to the project itself without affecting other projects that reference it.</Description>
98
</PropertyGroup>

src/dotnetCampus.IsExternalInit/IsExternalInit.cs

Lines changed: 0 additions & 19 deletions
This file was deleted.

src/dotnetCampus.IsExternalInit/dotnetCampus.IsExternalInit.csproj

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,23 @@
22

33
<PropertyGroup>
44
<TargetFrameworks>net5.0;netcoreapp3.0;netstandard1.0;net40</TargetFrameworks>
5+
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
56
<RootNamespace>System.Diagnostics.CodeAnalysis</RootNamespace>
67
<Description>If you use C# 9.0 or later and want to use record types, this library adds public IsExternalInit attribute support for your project, allowing the new language feature to be propagated to other projects that reference this one.</Description>
8+
<DefineConstants>$(DefineConstants);USE_PUBLIC_LATEST_CSHARP_FEATURES</DefineConstants>
9+
</PropertyGroup>
10+
11+
<PropertyGroup Condition="'$(TargetFramework)'=='net5.0'">
712
<IncludeBuildOutput>false</IncludeBuildOutput>
813
</PropertyGroup>
914

15+
<ItemGroup>
16+
<Compile Include="..\dotnetCampus.IsExternalInit.Source\*.cs" Link="%(RecursiveDir)\%(FileName)%(Extension)" />
17+
</ItemGroup>
18+
1019
<Target Name="IncludeAllDependencies" BeforeTargets="_GetPackageFiles">
1120
<ItemGroup>
1221
<None Include="_._" Pack="True" PackagePath="lib\net5.0" />
13-
<None Include="$(OutputPath)\netcoreapp3.0\$(PackageId).dll" Pack="True" PackagePath="lib\netcoreapp3.0" />
14-
<None Include="$(OutputPath)\netcoreapp3.0\$(PackageId).pdb" Pack="True" PackagePath="lib\netcoreapp3.0" />
15-
<None Include="$(OutputPath)\netcoreapp3.0\$(PackageId).xml" Pack="True" PackagePath="lib\netcoreapp3.0" />
16-
<None Include="$(OutputPath)\netstandard1.0\$(PackageId).dll" Pack="True" PackagePath="lib\netstandard1.0" />
17-
<None Include="$(OutputPath)\netstandard1.0\$(PackageId).pdb" Pack="True" PackagePath="lib\netstandard1.0" />
18-
<None Include="$(OutputPath)\netstandard1.0\$(PackageId).xml" Pack="True" PackagePath="lib\netstandard1.0" />
19-
<None Include="$(OutputPath)\net40\$(PackageId).dll" Pack="True" PackagePath="lib\net40" />
20-
<None Include="$(OutputPath)\net40\$(PackageId).pdb" Pack="True" PackagePath="lib\net40" />
21-
<None Include="$(OutputPath)\net40\$(PackageId).xml" Pack="True" PackagePath="lib\net40" />
2222
</ItemGroup>
2323
</Target>
2424

src/dotnetCampus.LatestCSharpFeatures.Analyzer/dotnetCampus.LatestCSharpFeatures.Analyzer.csproj

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

1011
<ItemGroup>

src/dotnetCampus.LatestCSharpFeatures.Source/dotnetCampus.LatestCSharpFeatures.Source.csproj

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

33
<PropertyGroup>
44
<TargetFrameworks>net5.0;netcoreapp3.0;netstandard1.0;net40</TargetFrameworks>
5+
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
56
<RootNamespace>System.Diagnostics.CodeAnalysis</RootNamespace>
67
<Description>This comprehensive package provides support for the latest C# language features in your project, enabling older .NET projects to use newer C# language constructs. Currently includes support for 'nullable', 'init', and 'required' keywords. The types introduced are internal, confining these features to the project itself without affecting other projects that reference it. By installing this package, you get all the newest C# features in one place, eliminating the need to install separate packages for each feature. Future updates will include more new features as they are released.</Description>
78
<IncludeBuildOutput>false</IncludeBuildOutput>

src/dotnetCampus.LatestCSharpFeatures/dotnetCampus.LatestCSharpFeatures.csproj

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,12 @@
22

33
<PropertyGroup>
44
<TargetFrameworks>net7.0;net5.0;netcoreapp3.0;netstandard1.0;net40</TargetFrameworks>
5+
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
56
<RootNamespace>System.Diagnostics.CodeAnalysis</RootNamespace>
67
<Description>This comprehensive package provides support for the latest C# language features in your project, enabling older .NET projects to use newer C# language constructs. Currently includes support for 'nullable', 'init', and 'required' keywords. The types introduced are public, allowing these features to propagate to other projects that reference this one. By installing this package, you get all the newest C# features in one place, eliminating the need to install separate packages for each feature. Future updates will include more new features as they are released.</Description>
8+
</PropertyGroup>
9+
10+
<PropertyGroup Condition="'$(TargetFramework)'=='net7.0'">
711
<IncludeBuildOutput>false</IncludeBuildOutput>
812
</PropertyGroup>
913

@@ -16,18 +20,6 @@
1620
<Target Name="IncludeAllDependencies" BeforeTargets="_GetPackageFiles">
1721
<ItemGroup>
1822
<None Include="_._" Pack="True" PackagePath="lib\net7.0" />
19-
<None Include="$(OutputPath)\net5.0\$(PackageId).dll" Pack="True" PackagePath="lib\net5.0" />
20-
<None Include="$(OutputPath)\net5.0\$(PackageId).pdb" Pack="True" PackagePath="lib\net5.0" />
21-
<None Include="$(OutputPath)\net5.0\$(PackageId).xml" Pack="True" PackagePath="lib\net5.0" />
22-
<None Include="$(OutputPath)\netcoreapp3.0\$(PackageId).dll" Pack="True" PackagePath="lib\netcoreapp3.0" />
23-
<None Include="$(OutputPath)\netcoreapp3.0\$(PackageId).pdb" Pack="True" PackagePath="lib\netcoreapp3.0" />
24-
<None Include="$(OutputPath)\netcoreapp3.0\$(PackageId).xml" Pack="True" PackagePath="lib\netcoreapp3.0" />
25-
<None Include="$(OutputPath)\netstandard1.0\$(PackageId).dll" Pack="True" PackagePath="lib\netstandard1.0" />
26-
<None Include="$(OutputPath)\netstandard1.0\$(PackageId).pdb" Pack="True" PackagePath="lib\netstandard1.0" />
27-
<None Include="$(OutputPath)\netstandard1.0\$(PackageId).xml" Pack="True" PackagePath="lib\netstandard1.0" />
28-
<None Include="$(OutputPath)\net40\$(PackageId).dll" Pack="True" PackagePath="lib\net40" />
29-
<None Include="$(OutputPath)\net40\$(PackageId).pdb" Pack="True" PackagePath="lib\net40" />
30-
<None Include="$(OutputPath)\net40\$(PackageId).xml" Pack="True" PackagePath="lib\net40" />
3123
</ItemGroup>
3224
</Target>
3325

src/dotnetCampus.Nullable.Source/dotnetCampus.Nullable.Source.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
<PropertyGroup>
44
<TargetFrameworks>net5.0;netcoreapp3.0;netstandard1.0;net40</TargetFrameworks>
55
<RootNamespace>System.Diagnostics.CodeAnalysis</RootNamespace>
6-
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
76
<PackageId>dotnetCampus.Nullable</PackageId>
87
<Description>If you use C# 8.0 or later and enable the nullable types, this '.Source' library adds internal nullable reference attributes to your project. This confines the new language feature to the project itself without affecting other projects that reference it.</Description>
98
</PropertyGroup>

src/dotnetCampus.Nullable/Nullable.cs

Lines changed: 0 additions & 198 deletions
This file was deleted.

src/dotnetCampus.Nullable/dotnetCampus.Nullable.csproj

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,23 @@
22

33
<PropertyGroup>
44
<TargetFrameworks>net5.0;netcoreapp3.0;netstandard1.0;net40</TargetFrameworks>
5+
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
56
<RootNamespace>System.Diagnostics.CodeAnalysis</RootNamespace>
67
<Description>If you use C# 8.0 or later and enable the nullable types, this library adds public nullable reference attributes to your project, allowing the new language feature to be propagated to other projects that reference this one.</Description>
8+
<DefineConstants>$(DefineConstants);USE_PUBLIC_LATEST_CSHARP_FEATURES</DefineConstants>
9+
</PropertyGroup>
10+
11+
<PropertyGroup Condition="'$(TargetFramework)'=='net5.0'">
712
<IncludeBuildOutput>false</IncludeBuildOutput>
813
</PropertyGroup>
914

15+
<ItemGroup>
16+
<Compile Include="..\dotnetCampus.Nullable.Source\*.cs" Link="%(RecursiveDir)\%(FileName)%(Extension)" />
17+
</ItemGroup>
18+
1019
<Target Name="IncludeAllDependencies" BeforeTargets="_GetPackageFiles">
1120
<ItemGroup>
1221
<None Include="_._" Pack="True" PackagePath="lib\net5.0" />
13-
<None Include="$(OutputPath)\netcoreapp3.0\$(PackageId).dll" Pack="True" PackagePath="lib\netcoreapp3.0" />
14-
<None Include="$(OutputPath)\netcoreapp3.0\$(PackageId).pdb" Pack="True" PackagePath="lib\netcoreapp3.0" />
15-
<None Include="$(OutputPath)\netcoreapp3.0\$(PackageId).xml" Pack="True" PackagePath="lib\netcoreapp3.0" />
16-
<None Include="$(OutputPath)\netstandard1.0\$(PackageId).dll" Pack="True" PackagePath="lib\netstandard1.0" />
17-
<None Include="$(OutputPath)\netstandard1.0\$(PackageId).pdb" Pack="True" PackagePath="lib\netstandard1.0" />
18-
<None Include="$(OutputPath)\netstandard1.0\$(PackageId).xml" Pack="True" PackagePath="lib\netstandard1.0" />
19-
<None Include="$(OutputPath)\net40\$(PackageId).dll" Pack="True" PackagePath="lib\net40" />
20-
<None Include="$(OutputPath)\net40\$(PackageId).pdb" Pack="True" PackagePath="lib\net40" />
21-
<None Include="$(OutputPath)\net40\$(PackageId).xml" Pack="True" PackagePath="lib\net40" />
2222
</ItemGroup>
2323
</Target>
2424

0 commit comments

Comments
 (0)