Skip to content

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

Closed
@PeterBenko

Description

@PeterBenko

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis issue is a bug.p2This is a standard priority issues3

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions