Skip to content

Commit 1861128

Browse files
committed
加上 dotnetCampus.LatestCsharpFeatures
1 parent 88dfeeb commit 1861128

File tree

20 files changed

+87
-56
lines changed

20 files changed

+87
-56
lines changed

build/Version.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<Project>
22
<PropertyGroup>
3-
<Version>1.0.0</Version>
3+
<Version>0.0.0-alpha01</Version>
44
</PropertyGroup>
55
</Project>

dotnetCampus.LatestCsharpFeatures.sln

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ VisualStudioVersion = 17.6.33712.159
55
MinimumVisualStudioVersion = 15.0.26124.0
66
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "dotnetCampus.Nullable", "src\dotnetCampus.Nullable\dotnetCampus.Nullable.csproj", "{2ECF1CEB-070E-4933-93C4-F7FD42D8693C}"
77
EndProject
8-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "dotnetCampus.Nullable.Source", "dotnetCampus.Nullable.Source\dotnetCampus.Nullable.Source.csproj", "{9A7C6595-ED09-42E6-B05F-3F8EEC29BCD5}"
9-
EndProject
108
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "解决方案项", "解决方案项", "{8A6F61D3-076F-4B75-80A1-FF377AC69D73}"
119
ProjectSection(SolutionItems) = preProject
1210
.gitattributes = .gitattributes
@@ -25,6 +23,12 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "dotnetCampus.Required", "sr
2523
EndProject
2624
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "dotnetCampus.Required.Source", "src\dotnetCampus.Required.Source\dotnetCampus.Required.Source.csproj", "{4EBF62CB-613E-4496-B890-B1F433ED7581}"
2725
EndProject
26+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "dotnetCampus.LatestCsharpFeatures", "src\dotnetCampus.LatestCsharpFeatures\dotnetCampus.LatestCsharpFeatures.csproj", "{D0B0F7EB-3C81-45C4-BB47-5DCB16F2EA55}"
27+
EndProject
28+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "dotnetCampus.Nullable.Source", "src\dotnetCampus.Nullable.Source\dotnetCampus.Nullable.Source.csproj", "{72163C73-CBC5-4CB5-BDDF-769B7AFD6FAB}"
29+
EndProject
30+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "dotnetCampus.LatestCsharpFeatures.Source", "src\dotnetCampus.LatestCsharpFeatures.Source\dotnetCampus.LatestCsharpFeatures.Source.csproj", "{C907433B-19CB-4216-9002-C3C9AC2A8633}"
31+
EndProject
2832
Global
2933
GlobalSection(SolutionConfigurationPlatforms) = preSolution
3034
Debug|Any CPU = Debug|Any CPU
@@ -35,10 +39,6 @@ Global
3539
{2ECF1CEB-070E-4933-93C4-F7FD42D8693C}.Debug|Any CPU.Build.0 = Debug|Any CPU
3640
{2ECF1CEB-070E-4933-93C4-F7FD42D8693C}.Release|Any CPU.ActiveCfg = Release|Any CPU
3741
{2ECF1CEB-070E-4933-93C4-F7FD42D8693C}.Release|Any CPU.Build.0 = Release|Any CPU
38-
{9A7C6595-ED09-42E6-B05F-3F8EEC29BCD5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
39-
{9A7C6595-ED09-42E6-B05F-3F8EEC29BCD5}.Debug|Any CPU.Build.0 = Debug|Any CPU
40-
{9A7C6595-ED09-42E6-B05F-3F8EEC29BCD5}.Release|Any CPU.ActiveCfg = Release|Any CPU
41-
{9A7C6595-ED09-42E6-B05F-3F8EEC29BCD5}.Release|Any CPU.Build.0 = Release|Any CPU
4242
{0DDC38EF-851E-49E7-B72A-DF46E44E3586}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
4343
{0DDC38EF-851E-49E7-B72A-DF46E44E3586}.Debug|Any CPU.Build.0 = Debug|Any CPU
4444
{0DDC38EF-851E-49E7-B72A-DF46E44E3586}.Release|Any CPU.ActiveCfg = Release|Any CPU
@@ -55,6 +55,18 @@ Global
5555
{4EBF62CB-613E-4496-B890-B1F433ED7581}.Debug|Any CPU.Build.0 = Debug|Any CPU
5656
{4EBF62CB-613E-4496-B890-B1F433ED7581}.Release|Any CPU.ActiveCfg = Release|Any CPU
5757
{4EBF62CB-613E-4496-B890-B1F433ED7581}.Release|Any CPU.Build.0 = Release|Any CPU
58+
{D0B0F7EB-3C81-45C4-BB47-5DCB16F2EA55}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
59+
{D0B0F7EB-3C81-45C4-BB47-5DCB16F2EA55}.Debug|Any CPU.Build.0 = Debug|Any CPU
60+
{D0B0F7EB-3C81-45C4-BB47-5DCB16F2EA55}.Release|Any CPU.ActiveCfg = Release|Any CPU
61+
{D0B0F7EB-3C81-45C4-BB47-5DCB16F2EA55}.Release|Any CPU.Build.0 = Release|Any CPU
62+
{72163C73-CBC5-4CB5-BDDF-769B7AFD6FAB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
63+
{72163C73-CBC5-4CB5-BDDF-769B7AFD6FAB}.Debug|Any CPU.Build.0 = Debug|Any CPU
64+
{72163C73-CBC5-4CB5-BDDF-769B7AFD6FAB}.Release|Any CPU.ActiveCfg = Release|Any CPU
65+
{72163C73-CBC5-4CB5-BDDF-769B7AFD6FAB}.Release|Any CPU.Build.0 = Release|Any CPU
66+
{C907433B-19CB-4216-9002-C3C9AC2A8633}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
67+
{C907433B-19CB-4216-9002-C3C9AC2A8633}.Debug|Any CPU.Build.0 = Debug|Any CPU
68+
{C907433B-19CB-4216-9002-C3C9AC2A8633}.Release|Any CPU.ActiveCfg = Release|Any CPU
69+
{C907433B-19CB-4216-9002-C3C9AC2A8633}.Release|Any CPU.Build.0 = Release|Any CPU
5870
EndGlobalSection
5971
GlobalSection(SolutionProperties) = preSolution
6072
HideSolutionNode = FALSE

src/dotnetCampus.IsExternalInit/_._

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
namespace dotnetCampus.LatestCsharpFeatures.Source;
2+
public class Class1
3+
{
4+
5+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<TargetFrameworks>net5.0;netcoreapp3.0;netstandard1.0;net40</TargetFrameworks>
5+
<RootNamespace>System.Diagnostics.CodeAnalysis</RootNamespace>
6+
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
7+
<PackageId>dotnetCampus.LatestCsharpFeatures</PackageId>
8+
<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>
9+
</PropertyGroup>
10+
11+
<ItemGroup>
12+
<PackageReference Include="dotnetCampus.SourceYard" Version="1.0.0-alpha01" PrivateAssets="all" />
13+
</ItemGroup>
14+
15+
</Project>

src/dotnetCampus.LatestCsharpFeatures/Class1.cs

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

src/dotnetCampus.LatestCsharpFeatures/_._

Whitespace-only changes.
Lines changed: 31 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,34 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
2-
3-
<PropertyGroup>
4-
<TargetFrameworks>netcoreapp3.1;net6.0;net45</TargetFrameworks>
5-
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
6-
7-
<GenerateDocumentationFile>true</GenerateDocumentationFile>
8-
</PropertyGroup>
9-
10-
<!-- 在 GitHub 的 Action 构建会添加 GITHUB_ACTIONS 变量 -->
11-
<!-- 下面进行自动构建,自动添加源代码链接等 -->
12-
<!-- 详细请看 https://github.com/dotnet/sourcelink -->
13-
<PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'">
14-
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
15-
16-
<!-- Optional: Publish the repository URL in the built .nupkg (in the NuSpec <Repository> element) -->
17-
<PublishRepositoryUrl>true</PublishRepositoryUrl>
18-
19-
<!-- 只有在 GitHub 的 Action 构建才能使用源代码链接 -->
20-
<!-- 源代码链接需要使用 commit 号,而在 GitHub 的 Action 构建的 commit 才是对的 -->
21-
<!-- 本地构建,也许没有记得 commit 就构建,此时的 nuget 包的源代码是不对的,上传上去会让调试诡异 -->
22-
<!-- Optional: Embed source files that are not tracked by the source control manager in the PDB -->
23-
<EmbedUntrackedSources>true</EmbedUntrackedSources>
24-
25-
<!-- 本地等不需要创建符号文件 -->
26-
<!-- Optional: Build symbol package (.snupkg) to distribute the PDB containing Source Link -->
27-
<IncludeSymbols>true</IncludeSymbols>
28-
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
29-
</PropertyGroup>
30-
31-
<ItemGroup Condition="'$(GITHUB_ACTIONS)' == 'true'">
32-
<!-- 链接源代码到 GitHub 仓库,方便调试 -->
33-
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All"/>
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<TargetFrameworks>net7.0;net5.0;netcoreapp3.0;netstandard1.0;net40</TargetFrameworks>
5+
<RootNamespace>System.Diagnostics.CodeAnalysis</RootNamespace>
6+
<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>
7+
<BuildOutputTargetFolder>Miscellaneous</BuildOutputTargetFolder>
8+
</PropertyGroup>
9+
10+
<ItemGroup>
11+
<Compile Include="..\dotnetCampus.Nullable\**\*.cs" Exclude="..\dotnetCampus.Nullable\**\obj\**\*.cs;..\dotnetCampus.Nullable\**\bin\**\*.cs" />
12+
<Compile Include="..\dotnetCampus.IsExternalInit\**\*.cs" Exclude="..\dotnetCampus.IsExternalInit\**\obj\**\*.cs;..\dotnetCampus.IsExternalInit\**\bin\**\*.cs" />
13+
<Compile Include="..\dotnetCampus.Required\**\*.cs" Exclude="..\dotnetCampus.Required\**\obj\**\*.cs;..\dotnetCampus.Required\**\bin\**\*.cs" />
14+
</ItemGroup>
15+
16+
<Target Name="IncludeAllDependencies" BeforeTargets="_GetPackageFiles">
17+
<ItemGroup>
18+
<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" />
3431
</ItemGroup>
32+
</Target>
3533

3634
</Project>

0 commit comments

Comments
 (0)