Quantcast
Channel: RazorGenerator Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 525

Commented Unassigned: An item with the same key has already been added. [132]

$
0
0
I have view that starts with:

@*

Foo.cshtml: Description
Foo2.cshtml: Description2

*@

That causes the MsBuild target to throw a dictionary exception from DirectivesParser.ParseKeyValueDirectives().

I guess it finds two keys (cshtml) with the values (Description, Description2) and it will fail to add that to the dictionary.

Current source have a TODO so I guess this is a work in progress. However, it would be nice to know which file is causing the error and perhaps treat it as a warning instead of an error.


Comments: It's using some complex regex that somehow ends up using "cshtml" as the key in your case above, which is clearly bogus. Agreed that the code needs to recover from this...

Viewing all articles
Browse latest Browse all 525

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>