dotnet/roslyn

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

Open

#4,655 opened on Aug 19, 2015

View on GitHub
 (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
 (Avg merge 6d 17h) (256 merged PRs in 30d)

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