Skip to content
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

Build of a project referencing AWSSDK.S3 fails with Error CS8032 after an update #2990

Closed
PeterBenko opened this issue Jul 4, 2023 · 5 comments
Labels
bug This issue is a bug. p2 This is a standard priority issue s3

Comments

@PeterBenko
Copy link

PeterBenko commented Jul 4, 2023

Describe the bug

After updating AWSSDK.S3 from 3.7.107 to 3.7.107.1 the build suddenly fails.

Expected Behavior

The build should still work after the update.

Current Behavior

After updating AWSSDK.S3 from 3.7.107 to 3.7.107.1 the build suddenly fails with the following error message:

CSC : error CS8032: An instance of analyzer Amazon.S3.CodeAnalysis.PropertyValueAssignmentAnalyzer cannot be created from C:\Users\peter.benko\.nuget\packages\awssdk.s3\3.7.107.1\analyzers\dotnet\cs\AWSSDK.S3.CodeAnalysis.dll : Could not load file or assembly 'Microsoft.CodeAnalysis, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

Upon reverting to 3.7.107 the build works again.
The project in question is net48 class library, built for x86.

Reproduction Steps

Minimal repro solution -> all is fine if you downgrade to 3.7.107

Possible Solution

No response

Additional Information/Context

AWS .NET SDK and/or Package version used

AWSSDK.S3 3.7.107.1

Targeted .NET Platform

.NET Framework 4.8

Operating System and version

Windows 10

@PeterBenko PeterBenko added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Jul 4, 2023
@dscpinheiro
Copy link
Contributor

Thanks for reporting @PeterBenko, it's the same problem as the other issue.
I'll close this one and continue the investigation / resolution there.

@github-actions
Copy link

github-actions bot commented Jul 4, 2023

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

@dscpinheiro
Copy link
Contributor

@PeterBenko I wanted to ask a follow-up question to this issue: What version of Visual Studio were you using for that reproduction repository (https://github.com/PeterBenko/aws-sdk-net-issues-2990)?

@PeterBenko
Copy link
Author

PeterBenko commented Jul 7, 2023 via email

@dscpinheiro
Copy link
Contributor

Got it, thanks for the answer. We're thinking about changing the analyzer to target netstandard again, but will probably use a lower version of the Microsoft.CodeAnalysis package (as recommended on the other issue).

I haven't tested with Rider, will take a look.

@ashishdhingra ashishdhingra added s3 p2 This is a standard priority issue and removed needs-triage This issue or PR still needs to be triaged. labels Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a bug. p2 This is a standard priority issue s3
Projects
None yet
Development

No branches or pull requests

3 participants