-
Notifications
You must be signed in to change notification settings - Fork 863
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 fails with CS9057 error due to analyzer version compiler conflict #2989
Comments
Confirmed not an issue with the following package versions:
|
Same issue here, our automatic minor/patch version updates for NuGet packages triggered the following error in our builds: |
Same error here in |
I think the recent upgrade of Here's a mapping of the versions to VS versions to give an idea of where best to target: |
Last week I changed the code analysis projects to target While we work on a fix (selecting the minimal version of |
Update: I have an internal PR downgrading the Before:
After (
Most of our team was off today due to the 4th of July, I'll follow up in the morning so that we can get this released as soon as possible. |
And these would be patch versions. These kinds of changes would indicate a new minor version. We've been impacted twice in the last week by AWSSDK changes released as prerelease/patch changes that should arguably have been minor versions. Worth keeping an eye on |
@oshea00 That's a good call out, this change should've been at least mentioned in the changelog (which we are doing for the fix). What were the other changes that impacted you? |
After talking to the team this morning, we decided to revert that previous commit (20ca969) to prevent further impact (and to make sure there are no framework / analyzer combinations we missed). We'll revisit this change soon (we're going trough updating the build internals used by the SDK), but will coordinate better by making it visible in the changelog and updating the package versions appropriately. I ran the same test I mentioned in my comment yesterday with the new version,
Apologies again for the inconvenience. |
|
@dscpinheiro Thank you. Actually that other issue was related to a patch change in the java SDK for DynamoDb that was posted 1.12.498. In this case the change resulted in an error added to check AWS credential format where none had previously existed. This broke code using that dependency - as dummy credential slugs with underscores "CHANGE_TO_MY_AWSCREDS" were suddenly non-conforming. Adding a new error to working code s/b a minor release change. :) |
@oshea00 I asked the Java team and they recommended opening a new issue in their repo: https://github.com/aws/aws-sdk-java/issues/new/choose Could you do that? They'll take a look. |
Describe the bug
We have an internal scaffolder template we use to create new .NET applications. This template regularly updates the versions of its dependencies it uses and when a new application is scaffolded it dynamically takes the latest AWS SDK patch versions from NuGet.
This morning as part of a dependabot update and subsequent test of the generator for .NET 6, the build now fails with the following error:
I've not seen this in applications targeting .NET 7 (or at least, not yet).
The last successful CI was 20 hours ago, suggesting the versions published overnight have introduced this issue.
Expected Behavior
The application compiles.
Current Behavior
The application does not compile.
Reproduction Steps
Compile an application targeting .NET 6 with the
6.0.411
SDK which references theAWSSDK.SecurityToken
andAWSSDK.SimpleSystemsManagement
NuGet packages.Possible Solution
Downgrade the dependency used to build the
.CodeAnalysis
packages to be compatible with the C# compiler that ships with the .NET 6 SDK.Additional Information/Context
No response
AWS .NET SDK and/or Package version used
Targeted .NET Platform
.NET SDK 6.0.411 and net6.0
Operating System and version
Linux
The text was updated successfully, but these errors were encountered: