Why can't I add certain file types to VS2010 projects?

前端 未结 3 1419
被撕碎了的回忆
被撕碎了的回忆 2020-12-28 14:51

I\'m trying to add a WPF ResourceDictionary to a C# project that was created a while ago. The project was not originally a WPF project, but now I need to include some WPF re

3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-28 15:36

    I think your best bet is to create a new WPF project and copy everything across. If it is a very large project (and you are feeling adventurous) you might open the XML of the project files (Unload the project, then edit the original csproj file in XML)

    enter image description here

    Then copy across the ItemGroup sections, and ensure the corresponding source files exist under the new project directory. Good luck!

提交回复
热议问题