-
-
Notifications
You must be signed in to change notification settings - Fork 19
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
3.2.4: System.Exception: Invalid dotnet list output. Run dotnet restore
then build again.
#180
Comments
I've seen that a few times since early in 3.x. typically rerunning the build success, but I'm not sure yet why the dotnet list is failing when we already run a dotnet restore in our CI beforehand. If this is easily reproducable I'll try to get some logging together to see what it's getting from dotnet list that's problematic. |
I tried rebuilding first, the result was the same. Note that our linux builds were fine. Can't test Windows due to #95 :). I'll be happy to collect more logs if you tell me how. |
I'll put some logging together tonight. We have only run into this on Windows so that's at least some helpful info. There's a unit test I use to make sure past issues with dotnet list parsing don't reocur. If it's not intermittent, you could try running one with the output from |
On first attempt, it failed with this error:
Then I added a
|
yeah, failed after I bumped to 3.2.4. |
Version 3.2.4.1-issue180 should log out the output of Give that a try and share that part of the build log if you can. If you can't, details about the first 3-4 lines may be enough to figure out what's happening. |
this is all I could find:
|
That makes me think it didn't get any output from the command. Interesting... I'll dig more into this after work today. I may need to rework how it's running dotnet list and getting the output. |
If you're ok with ignoring transitive dependencies I can put a build up that ignores that error until I have a better idea of why it's not reading the output of the command properly. |
We could stay at 3.2.3 for now I think. So there is no rush. But thanks. |
I've had a few unexpected issues with trying to parse dotnet list. I'm going to try parsing the project.assets.json file instead and deprecate this method. With any luck that will be a much easier to debug as well. |
I'll have a release soon that I believe will fix this. If not I'll reopen it. |
Haven't had time to test it in our CI yet. Hoping to get to that tomorrow. |
2nd prerelease out and a stable version with an improvement for the dotnet list parsing that should improve reliabiltiy a little. I apparently forgot about F# and VB.Net for a moment when I coded that. |
that seems to have solved the problem. Thank you! |
Describe the bug
Upgrading from 3.2.3 to 3.2.4 breaks a couple of our builds with the following message:
..................csproj : error : Encountered a fatal exception while checking for Dependencies in .......csproj. Exception: System.Exception: Invalid dotnet list output. Run
dotnet restore
then build again..NET Version: 8.0.202
OS:
The text was updated successfully, but these errors were encountered: