dotnet/roslyn

Solution.AddAdditionalDocument does not add a new file with AdditionalFiles item type

Open

#4,655 opened on Aug 19, 2015

 (31 comments) (9 reactions) (1 assignee)C# (4,257 forks)batch import
Area-IDEBugConcept-APIhelp wanted

Repository metrics

Stars
 (20,414 stars)
PR merge metrics
 (PR metrics pending)

Description

When adding a new file to a solution from within a codefix provider using the Solution.AddAdditionalDocument method, the file gets added with an item type of None where an item type of AdditionalFiles is expected.

This issue was observed using VS2015 RTM with roslyn 1.0.0

Contributor guide