question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

the given key was not present in the dictionary

See original GitHub issue

Steps to reproduce

dotnet run

Expected behavior

Actual behavior

the given key was not present in the dictionary

Environment data

dotnet --info output:

.NET Command Line Tools (1.0.0-rc2-002543)

Product Information: Version: 1.0.0-rc2-002543 Commit Sha: 38d0c28a1e

Runtime Environment: OS Name: Windows OS Version: 10.0.10586 OS Platform: Windows RID: win10-x64

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
guardrexcommented, May 2, 2016

@dmpx You probably don’t have a default NuGet config in your user profile (e.g., C:\Users\<USER>\AppData\Roaming\NuGet\NuGet.Config). Add a NuGet.config file to the project …

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <packageSources>
    <clear />
    <add key="AspNetCI" value="https://www.myget.org/F/aspnetcirelease/api/v3/index.json" />
    <add key="NuGet.org" value="https://api.nuget.org/v3/index.json" />
  </packageSources>
</configuration>

Also … change compilationOptions to buildOptions … that was just updated but it hasn’t hit dotnet new outputs yet.

0reactions
liciniomendescommented, Oct 3, 2016

Tried the fix @GuardRex and did not work. My projects were working ok until last windows update, maybe something changed.

λ dotnet build
Project XXXX.Yyyyy.Api (.NETCoreApp,Version=v1.0) will be compiled because expected outputs are missing
Compiling XXXX.Yyyyy.Api for .NETCoreApp,Version=v1.0
The given key was not present in the dictionary.

λ dotnet --info
.NET Command Line Tools (1.0.0-preview2-003131)

Product Information:
 Version:            1.0.0-preview2-003131
 Commit SHA-1 hash:  635cf40e58

Runtime Environment:
 OS Name:     Windows
 OS Version:  10.0.14393
 OS Platform: Windows
 RID:         win10-x64
Read more comments on GitHub >

github_iconTop Results From Across the Web

The given key was not present in the dictionary. Which key?
If the key is not present, it simply returns a null value. Share.
Read more >
Solved: The given key was not present in the dictionary
Solved: Hello, I am having a refresh problem and I need help, Currently, I am using Power BI Desktop (January 2021), after applying...
Read more >
The given Key was not present in the dictionary
To fix this issue, re-create the Group Policy and registry settings. However, while you are using the registry browser to select values in...
Read more >
"The given key was not present in the dictionary." Error
To fix the problem of "The provided key wasn't found in the dictionary," attempt verifying whether all essential keys are outlined within the ......
Read more >
[Solved] The given key was not present in the dictionary
Solution 1​​ Hi, Actually this exception occur when you are accessing Dictionary for Incorrect value. Here i have created one code snippet for ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found