Skip to content

[V4] Remove and adjust unused targets NET35 and NET45 from codebase. #3636

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: development
Choose a base branch
from

Conversation

boblodgett
Copy link
Contributor

@boblodgett boblodgett commented Feb 4, 2025

Description

  • Cleaned up references to net35 by removing the code.
  • Changed net45 to net472 where needed
  • Removed net45 and net35 csproj cleanup no longer needed
  • Updated solution files to netframework.csproj where still pointing to missing net45.csproj

NOTE: The docgenerator\AWSSDKDocSamples project still has a reference to AWSSDK v2 and is using net35. This solution/project does not build or run. Attempted to update to net8 but the project has many build errors and will not compile without fixing the generated sample code. This is a larger effort that will need to be addressed as another task.

Motivation and Context

This is a cleanup task to ensure we have removed net45 and net35 targets.

SIM: DOTNET-7610

Testing

Original DryRun (Succeeded - 2025-07-01): DRY_RUN-9c27101a-ddb8-4f7d-a4bb-8cbda5c1f43b

Latest PS5 dry run (Running): DRY_RUN-16f54f95-22a2-458f-864f-dc6863b4f94b
Latest .NETv4 dry run (Running): DRY_RUN-647d35d4-be6f-4408-bbb1-00e6832540e2

Screenshots (if appropriate)

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • My code follows the code style of this project
  • My change requires a change to the documentation
  • I have updated the documentation accordingly
  • I have read the README document
  • I have added tests to cover my changes
  • All new and existing tests passed

License

  • I confirm that this pull request can be released under the Apache 2 license

Comment on lines +4 to 5
$dllpath = "..\lib\net472\AWSSDK.Core.dll"
$sdkassembly = [System.Reflection.Assembly]::LoadFrom($dllpath)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@normj do you know why this is here? The script doesn't even use $sdkassembly but I figured you added this long ago for some kind of preloading that is needed from AWSSDK.Core.dll for the script to work. Second I am not certain we even need this script anymore.

@boblodgett boblodgett marked this pull request as draft February 7, 2025 15:53
@boblodgett boblodgett force-pushed the boblod-v4clean-net35-net45 branch from 80e7990 to 6da806e Compare July 2, 2025 05:39
@boblodgett boblodgett marked this pull request as ready for review July 2, 2025 15:12
@boblodgett boblodgett requested a review from dscpinheiro July 2, 2025 15:13
@sankettangade sankettangade requested a review from AlexDaines July 2, 2025 17:36
@@ -384,17 +384,11 @@ public static string FromValueTypeList<T>(List<T> values) where T : struct
}
// See https://datatracker.ietf.org/doc/html/rfc7231.html#section-7.1.1.1
// FromDateTimeToRFC822 is compatible with IMF-fixdate
#if NET35
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are a few places where we use BCL35: https://github.com/search?q=repo%3Aaws%2Faws-sdk-net%20BCL35&type=code

Should we remove them too?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I didn't search for that string but that is a good find. I will clean that up.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Latest code cleaned up BCL35 and also AWS_ASYNC_API (manual changes only in this PR). DryRuns in progress.

@boblodgett boblodgett force-pushed the boblod-v4clean-net35-net45 branch from 6da806e to e661de2 Compare July 4, 2025 03:37
Copy link
Contributor

@AlexDaines AlexDaines left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clean and thorough, LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants