Intermittent Paket.Restore.props error in 5.181.1 - Index was outside the bounds of the array
See original GitHub issueDescription
After upgrading Paket to 5.181.1 from 5.173.1 I get an intermittent build error in Paket.Restore.props.
Repro steps
- Run
.paket\paket.exe restore
- Run
dotnet.exe restore MyProject.csproj --no-dependencies
Expected behavior
Packages are restored
Actual behavior
Checking Paket version (version 5.181.1 requested)...
Paket.exe 5.181.1 is up to date.
Paket version 5.181.1
The last restore is still up to date. Nothing left to do.
Performance:
- Runtime: 104 milliseconds
C:\path\to\project\.paket\Paket.Restore.targets(147,5): error MSB4184: The expression ""System.String[]".GetValue(5)" cannot be evaluated. Index was outside the bounds of the array.
Known workarounds
Delete all un-source-controlled files and rebuild.
Issue Analytics
- State:
- Created 5 years ago
- Comments:20 (18 by maintainers)
Top Results From Across the Web
"Index was outside the bounds of the array" error while ...
I have a simple .NET Web application that works fine when I run it on my local machine. However, when I try to...
Read more >Index was outside the bounds of the array.
When I run this project on unity it keeps doing this error: IndexOutOfRangeException: Index was outside the bounds of the array.
Read more >Index was outside the bounds of the array.
I try to open Assembly then it show that error "// Assembly Exam#
Read more >Paket and the .NET SDK / .NET Core CLI tools (dotnet CLI ...
For example, if you open a Paket-enabled solution in Visual Studio 2017 then Visual Studio's background build will restore Paket dependencies automatically.
Read more >Error "Index was outside the bounds of the array" when ...
When importing a return package in SDL Trados Studio the following error message displays: Index was outside the bounds of the array.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
That is actually a good point. I fucked up here. Let me try to fix it myself.
Am Mi., 7. Nov. 2018, 08:11 hat Yaakov notifications@github.com geschrieben:
It seems to be reliably trigger-able by a dirty workspace.
In my case,
Project\obj\Project.csproj.netstandard2.0.paket.resolved
,Project\obj\Project.csproj.net46.paket.resolved
and similar are CSV files with only 5 columns, not 6.e.g.
I assume that either: