diff --git a/dotnetCampus.LatestCSharpFeatures.sln b/dotnetCampus.LatestCSharpFeatures.sln index 2a98057..c1d0bb8 100644 --- a/dotnetCampus.LatestCSharpFeatures.sln +++ b/dotnetCampus.LatestCSharpFeatures.sln @@ -27,10 +27,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "dotnetCampus.LatestCSharpFe EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "dotnetCampus.Nullable.Source", "src\dotnetCampus.Nullable.Source\dotnetCampus.Nullable.Source.csproj", "{72163C73-CBC5-4CB5-BDDF-769B7AFD6FAB}" EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "samples", "samples", "{19AD69CA-F593-4789-A51F-9E547033147D}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "InternalUsageLibrary", "samples\InternalUsageLibrary\InternalUsageLibrary.csproj", "{DF937968-A710-4079-86D2-B2483FF3D81F}" -EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "dotnetCampus.LatestCSharpFeatures.Source", "src\dotnetCampus.LatestCSharpFeatures.Source\dotnetCampus.LatestCSharpFeatures.Source.csproj", "{16D75C29-3176-4CFD-A1B5-B5F24876B038}" EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "IsExternalInit", "IsExternalInit", "{4E06689B-E73A-4A04-AAA0-7959A6EC06E6}" @@ -43,7 +39,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{CAB44C21-D58 EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tests", "tests", "{878C1D77-0A77-44BD-847E-164188B10677}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "dotnetCampus.LatestCSharpFeatures.Tests", "tests\dotnetCampus.LatestCSharpFeatures.Tests\dotnetCampus.LatestCSharpFeatures.Tests.csproj", "{D10BF09A-FDF3-43F0-BD54-49A73554CDAB}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "dotnetCampus.LatestCSharpFeatures.Tests", "tests\dotnetCampus.LatestCSharpFeatures.Tests\dotnetCampus.LatestCSharpFeatures.Tests.csproj", "{D10BF09A-FDF3-43F0-BD54-49A73554CDAB}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "dotnetCampus.LatestCSharpFeatures.Analyzer", "src\dotnetCampus.LatestCSharpFeatures.Analyzer\dotnetCampus.LatestCSharpFeatures.Analyzer.csproj", "{642FA0CA-E827-4D96-9358-D596CD87DAF4}" EndProject @@ -81,10 +77,6 @@ Global {72163C73-CBC5-4CB5-BDDF-769B7AFD6FAB}.Debug|Any CPU.Build.0 = Debug|Any CPU {72163C73-CBC5-4CB5-BDDF-769B7AFD6FAB}.Release|Any CPU.ActiveCfg = Release|Any CPU {72163C73-CBC5-4CB5-BDDF-769B7AFD6FAB}.Release|Any CPU.Build.0 = Release|Any CPU - {DF937968-A710-4079-86D2-B2483FF3D81F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {DF937968-A710-4079-86D2-B2483FF3D81F}.Debug|Any CPU.Build.0 = Debug|Any CPU - {DF937968-A710-4079-86D2-B2483FF3D81F}.Release|Any CPU.ActiveCfg = Release|Any CPU - {DF937968-A710-4079-86D2-B2483FF3D81F}.Release|Any CPU.Build.0 = Release|Any CPU {16D75C29-3176-4CFD-A1B5-B5F24876B038}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {16D75C29-3176-4CFD-A1B5-B5F24876B038}.Debug|Any CPU.Build.0 = Debug|Any CPU {16D75C29-3176-4CFD-A1B5-B5F24876B038}.Release|Any CPU.ActiveCfg = Release|Any CPU @@ -108,7 +100,6 @@ Global {6ED76C7A-A16A-45A5-BC1F-91A880839C31} = {F0CBB519-BB38-4104-B840-4076BB206E36} {4EBF62CB-613E-4496-B890-B1F433ED7581} = {F0CBB519-BB38-4104-B840-4076BB206E36} {72163C73-CBC5-4CB5-BDDF-769B7AFD6FAB} = {CCAAE7A8-1879-4F67-98AA-D837C80227A2} - {DF937968-A710-4079-86D2-B2483FF3D81F} = {19AD69CA-F593-4789-A51F-9E547033147D} {4E06689B-E73A-4A04-AAA0-7959A6EC06E6} = {CAB44C21-D58C-4732-B9D8-60B1DAE82BEF} {CCAAE7A8-1879-4F67-98AA-D837C80227A2} = {CAB44C21-D58C-4732-B9D8-60B1DAE82BEF} {F0CBB519-BB38-4104-B840-4076BB206E36} = {CAB44C21-D58C-4732-B9D8-60B1DAE82BEF} diff --git a/samples/InternalUsageLibrary/InternalUsageLibrary.csproj b/samples/InternalUsageLibrary/InternalUsageLibrary.csproj deleted file mode 100644 index ef293f2..0000000 --- a/samples/InternalUsageLibrary/InternalUsageLibrary.csproj +++ /dev/null @@ -1,8 +0,0 @@ - - - - net7.0;net6.0;net5.0;netcoreapp3.1;netstandard2.0;net48 - enable - - - diff --git a/src/dotnetCampus.IsExternalInit.Source/dotnetCampus.IsExternalInit.Source.csproj b/src/dotnetCampus.IsExternalInit.Source/dotnetCampus.IsExternalInit.Source.csproj index 8590b51..5d8588f 100644 --- a/src/dotnetCampus.IsExternalInit.Source/dotnetCampus.IsExternalInit.Source.csproj +++ b/src/dotnetCampus.IsExternalInit.Source/dotnetCampus.IsExternalInit.Source.csproj @@ -1,7 +1,7 @@  - net5.0;netcoreapp3.0;netstandard1.0;net40 + net5.0;netcoreapp3.0;netstandard2.0;net40 System.Diagnostics.CodeAnalysis dotnetCampus.IsExternalInit 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. diff --git a/src/dotnetCampus.IsExternalInit/dotnetCampus.IsExternalInit.csproj b/src/dotnetCampus.IsExternalInit/dotnetCampus.IsExternalInit.csproj index 131a944..6d8be72 100644 --- a/src/dotnetCampus.IsExternalInit/dotnetCampus.IsExternalInit.csproj +++ b/src/dotnetCampus.IsExternalInit/dotnetCampus.IsExternalInit.csproj @@ -1,7 +1,7 @@  - net5.0;netcoreapp3.0;netstandard1.0;net40 + net5.0;netcoreapp3.0;netstandard2.0;net40 true System.Diagnostics.CodeAnalysis 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. diff --git a/src/dotnetCampus.LatestCSharpFeatures.Source/dotnetCampus.LatestCSharpFeatures.Source.csproj b/src/dotnetCampus.LatestCSharpFeatures.Source/dotnetCampus.LatestCSharpFeatures.Source.csproj index ec7cac5..a44e7c6 100644 --- a/src/dotnetCampus.LatestCSharpFeatures.Source/dotnetCampus.LatestCSharpFeatures.Source.csproj +++ b/src/dotnetCampus.LatestCSharpFeatures.Source/dotnetCampus.LatestCSharpFeatures.Source.csproj @@ -1,7 +1,7 @@ - net5.0;netcoreapp3.0;netstandard1.0;net40 + net5.0;netcoreapp3.0;netstandard2.0;net40 true System.Diagnostics.CodeAnalysis 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. diff --git a/src/dotnetCampus.LatestCSharpFeatures/dotnetCampus.LatestCSharpFeatures.csproj b/src/dotnetCampus.LatestCSharpFeatures/dotnetCampus.LatestCSharpFeatures.csproj index 97f4d84..015acc3 100644 --- a/src/dotnetCampus.LatestCSharpFeatures/dotnetCampus.LatestCSharpFeatures.csproj +++ b/src/dotnetCampus.LatestCSharpFeatures/dotnetCampus.LatestCSharpFeatures.csproj @@ -1,7 +1,7 @@  - net7.0;net5.0;netcoreapp3.0;netstandard1.0;net40 + net7.0;net5.0;netcoreapp3.0;netstandard2.0;net40 true System.Diagnostics.CodeAnalysis 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. @@ -12,9 +12,9 @@ - - - + + + diff --git a/src/dotnetCampus.Nullable.Source/dotnetCampus.Nullable.Source.csproj b/src/dotnetCampus.Nullable.Source/dotnetCampus.Nullable.Source.csproj index f021584..f358221 100644 --- a/src/dotnetCampus.Nullable.Source/dotnetCampus.Nullable.Source.csproj +++ b/src/dotnetCampus.Nullable.Source/dotnetCampus.Nullable.Source.csproj @@ -1,7 +1,7 @@ - net5.0;netcoreapp3.0;netstandard1.0;net40 + net5.0;netcoreapp3.0;netstandard2.0;net40 System.Diagnostics.CodeAnalysis dotnetCampus.Nullable 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. diff --git a/src/dotnetCampus.Nullable/dotnetCampus.Nullable.csproj b/src/dotnetCampus.Nullable/dotnetCampus.Nullable.csproj index b91acf4..13c7890 100644 --- a/src/dotnetCampus.Nullable/dotnetCampus.Nullable.csproj +++ b/src/dotnetCampus.Nullable/dotnetCampus.Nullable.csproj @@ -1,7 +1,7 @@  - net5.0;netcoreapp3.0;netstandard1.0;net40 + net5.0;netcoreapp3.0;netstandard2.0;net40 true System.Diagnostics.CodeAnalysis 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. diff --git a/src/dotnetCampus.Required.Source/dotnetCampus.Required.Source.csproj b/src/dotnetCampus.Required.Source/dotnetCampus.Required.Source.csproj index 978640e..30e8a6c 100644 --- a/src/dotnetCampus.Required.Source/dotnetCampus.Required.Source.csproj +++ b/src/dotnetCampus.Required.Source/dotnetCampus.Required.Source.csproj @@ -1,7 +1,7 @@  - net7.0;netcoreapp3.0;netstandard1.0;net40 + net7.0;netcoreapp3.0;netstandard2.0;net40 System.Diagnostics.CodeAnalysis dotnetCampus.Required For C# 11.0 and newer. This package adds support for the 'required' keyword in your project, enforcing that fields or properties are initialized during object initialization. The types introduced are internal, meaning the 'required' functionality is limited to this project and won't propagate to referencing projects. diff --git a/src/dotnetCampus.Required/dotnetCampus.Required.csproj b/src/dotnetCampus.Required/dotnetCampus.Required.csproj index 881debb..f353856 100644 --- a/src/dotnetCampus.Required/dotnetCampus.Required.csproj +++ b/src/dotnetCampus.Required/dotnetCampus.Required.csproj @@ -1,7 +1,7 @@  - net7.0;net5.0;netcoreapp3.0;netstandard1.0;net40 + net7.0;net5.0;netcoreapp3.0;netstandard2.0;net40 true System.Diagnostics.CodeAnalysis 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. diff --git a/tests/dotnetCampus.LatestCSharpFeatures.Tests/IsExternalInitTest.cs b/tests/dotnetCampus.LatestCSharpFeatures.Tests/IsExternalInitTest.cs index 6b9d269..ccdb84b 100644 --- a/tests/dotnetCampus.LatestCSharpFeatures.Tests/IsExternalInitTest.cs +++ b/tests/dotnetCampus.LatestCSharpFeatures.Tests/IsExternalInitTest.cs @@ -2,10 +2,8 @@ namespace dotnetCampus.LatestCSharpFeatures.Tests; -[TestClass] public class IsExternalInitTest { - [TestMethod] public void CanBeCompiled() { } diff --git a/tests/dotnetCampus.LatestCSharpFeatures.Tests/NullableTest.cs b/tests/dotnetCampus.LatestCSharpFeatures.Tests/NullableTest.cs index e2712f8..d139b1c 100644 --- a/tests/dotnetCampus.LatestCSharpFeatures.Tests/NullableTest.cs +++ b/tests/dotnetCampus.LatestCSharpFeatures.Tests/NullableTest.cs @@ -2,10 +2,8 @@ namespace dotnetCampus.LatestCSharpFeatures.Tests; -[TestClass] public class NullableTest { - [TestMethod] public void CanBeCompiled() { MemberNotNull(); diff --git a/tests/dotnetCampus.LatestCSharpFeatures.Tests/Properties/Usings.cs b/tests/dotnetCampus.LatestCSharpFeatures.Tests/Properties/Usings.cs deleted file mode 100644 index ab67c7e..0000000 --- a/tests/dotnetCampus.LatestCSharpFeatures.Tests/Properties/Usings.cs +++ /dev/null @@ -1 +0,0 @@ -global using Microsoft.VisualStudio.TestTools.UnitTesting; \ No newline at end of file diff --git a/tests/dotnetCampus.LatestCSharpFeatures.Tests/RequiredTest.cs b/tests/dotnetCampus.LatestCSharpFeatures.Tests/RequiredTest.cs index b399c9b..5f9db25 100644 --- a/tests/dotnetCampus.LatestCSharpFeatures.Tests/RequiredTest.cs +++ b/tests/dotnetCampus.LatestCSharpFeatures.Tests/RequiredTest.cs @@ -1,9 +1,7 @@ namespace dotnetCampus.LatestCSharpFeatures.Tests; -[TestClass] public class RequiredTest { - [TestMethod] public void CanBeCompiled() { } diff --git a/tests/dotnetCampus.LatestCSharpFeatures.Tests/dotnetCampus.LatestCSharpFeatures.Tests.csproj b/tests/dotnetCampus.LatestCSharpFeatures.Tests/dotnetCampus.LatestCSharpFeatures.Tests.csproj index a57ce4c..d2d03ce 100644 --- a/tests/dotnetCampus.LatestCSharpFeatures.Tests/dotnetCampus.LatestCSharpFeatures.Tests.csproj +++ b/tests/dotnetCampus.LatestCSharpFeatures.Tests/dotnetCampus.LatestCSharpFeatures.Tests.csproj @@ -1,22 +1,16 @@  - net7.0;net6.0;net5.0;netcoreapp3.1;net48 - enable + net7.0;net6.0;net5.0;netcoreapp3.1;netcoreapp3.0;netstandard2.0;net48;net472;net471;net47;net462;net461;net46;net452;net451;net45;net40 + disable enable false true - - - - - - - - + +