martasp / BlazorLiveReload

BlazorLiveReload
143 stars 14 forks source link

Key already in list error #14

Open karayakar opened 4 years ago

karayakar commented 4 years ago

https://github.com/martasp/BlazorLiveReload/blob/aab433f962187c78eb77c1f675be5b0efc7dc7f4/src/RazorComponentsPreview/Razor/TestRazorProjectFileSystem.cs#L29

Fix should be. if (!_lookup.ContainsKey(item.CombinedPath)) { _lookup.Add(item.FilePath, item); }