How to change a Visual Studio project type?

后端 未结 5 1196
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-10 10:18

I finally figured out that Visual Studio keeps track of how you create a project (in other words which project template you select initially) and filters your options later

5条回答
  •  情深已故
    2020-12-10 10:52

    I needed to add WPF support to a project of type "Class Library (.NET CORE)" in this way:

    • edit YourProject.csproj (double click on it) and modify to
    • add true in the group
    • rebuild YourProject

    Now you can add a WPF Window

提交回复
热议问题