Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request modernizes the build and test infrastructure for the project, updates dependencies, and cleans up code for consistency and maintainability. The main focus is on upgrading to .NET 8.0 and 9.0, updating package references, and making minor code improvements for clarity and compatibility.
Target framework and dependency updates:
Upgraded both
Cake.IISandCake.IIS.Testsprojects to target onlynet8.0andnet9.0, dropping support for older frameworks likenet461,netstandard2.0, andnet5.0. Updated all related package references to their latest compatible versions, includingCake.Core,System.ServiceProcess.ServiceController,xunit, and others. [1] [2] [3] [4]Updated the
.nuspecpackaging to only includenet8.0andnet9.0builds, added a dependency onSystem.Net.Http, and includedREADME.mdin the package.Build and configuration improvements:
Updated the
appveyor.ymlconfiguration to usetest: falseinstead oftest: offfor clarity.Adjusted the logic in
CakeHelper.CreateWebConfigto handle only the new supported frameworks (net8.0,net9.0).Test and sample configuration enhancements:
Added
<system.webServer><directoryBrowse ... /></system.webServer>sections to all testweb.configfiles to explicitly set directory browsing settings for test clarity. [1] [2]Updated test code to use explicit
null!values for nullable parameters, improving nullability handling and code clarity. [1] [2]Code consistency and cleanup:
Standardized usage of
string.Emptyinstead of""and improved null/empty checks by usingstring.IsNullOrEmpty(instead ofString.IsNullOrEmpty). [1] [2] [3] [4] [5] [6] [7]Cleaned up unnecessary blank lines, improved using directives, and made constructors protected where appropriate for better code organization and encapsulation. [1] [2] [3] [4] [5] [6] [7] [8] [9]
These changes collectively update the project for modern .NET development, improve maintainability, and ensure compatibility with current dependencies.