-
Notifications
You must be signed in to change notification settings - Fork 163
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
Package analysis failed #836
Comments
@sunandabalu Can you take a look at this? Looks to be in the analysis feature |
@ryanliang88 Could you attach the log file and / or the csproj you are seeing this issue for? |
@ryanliang88 I don't see the |
Any update to this bug? |
@ryanliang88 Is this bug blocking your ability to use UA for upgrade / analyze ? Unfortunately no progress on this yet due to other competing priorities, if this is blocking then we can consider re-prioritizing work on this bug. |
It's not completely blocking, but it's blocking the "Update NuGet Packages" step which I've attempted to migrate manually. I was hoping to have this fixed and confirm that I've migrated correctly but it's fine to leave as is for the meantime. Thanks for the update |
@ryanliang88 Adding a simple fix to unblock you - #850 |
Lovely, thank you. Do I just wait for PR approval and then rerun the following?: I'm not totally sure how to get this new update (not sure how to build since I tried building locally but lots of things weren't working) |
Once the PR is merged, you will need to pick the tool update from the public AzDO feed like |
I'll give it a shot. Thanks again! |
I ran the following twice and it says that: Tool 'upgrade-assistant' was reinstalled with the latest stable version (version '0.3.246302'). What is the version for the PR that was just completed and how do I get it? |
I just merged the PR, we need to wait for the CI to pick the commit and push to the feed. I'll let you know when the process completes. |
Great to hear. Thank you! |
@ryanliang88 The change is pushed to nuget, you can pick the version 0.3.246501 to get the change. |
The bug itself can be considered fully resolved. I'm now unfortunately running into the following issue which is exactly what I had to try to do. Is there anything we can do about this? Line 142 in 9814e64
|
@mjrousos could you provide some guidance here? |
The PackageUpdaterStep runs dependency analyzers repeatedly until it stops finding things that need to be updated. This is done so that if a later analyzer makes a change previous analyzers have an opportunity to react to it. Hitting this error is almost certainly a UA bug, but I can't think of why @sunandabalu's recent fix would have triggered it. @ryanliang88, are you able to share the csproj file that is running into this so that we can step through it in a debugger and figure out where the issue is? |
I will get back to you ASAP as it's a potential privacy concern that may require review. |
I'm getting the following error as well: [21:20:08 INF] Applying upgrade step Clean up NuGet package references Is there any way to manually get around this? |
upgrade-assistant.clef
that is produced in the working directoryDescribe the bug
A clear and concise description of what the bug is.
Bug believed to be here
upgrade-assistant/src/extensions/default/Microsoft.DotNet.UpgradeAssistant.Steps.Packages/Analyzers/TargetCompatibilityReferenceAnalyzer.cs
Line 45 in 0973105
upgrade-assistant/src/extensions/default/Microsoft.DotNet.UpgradeAssistant.Steps.Packages/Analyzers/TargetCompatibilityReferenceAnalyzer.cs
Line 88 in 0973105
Exceptions (if any)
Likely
System.InvalidOperationException
Further technical details
systeminfo | findstr /B /C:"OS Name" /C:"OS Version"
OS Name: Microsoft Windows 10 Pro
OS Version: 10.0.19043 N/A Build 19043
upgrade-assistant --version
0.2.241603+99dc6c7bf12364ae199f7acd8d0d42c631508de0
dotnet --list-sdks
2.2.207 [C:\Program Files\dotnet\sdk]
3.1.101 [C:\Program Files\dotnet\sdk]
3.1.401 [C:\Program Files\dotnet\sdk]
5.0.302 [C:\Program Files\dotnet\sdk]
5.0.400 [C:\Program Files\dotnet\sdk]
The text was updated successfully, but these errors were encountered: