How to change a Visual Studio project type?

后端 未结 5 1200
爱一瞬间的悲伤
爱一瞬间的悲伤 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:49

    You can modify it in the .csproj file to change the project type, for instance from .Net Core to .Net Standard. Just by changing the content of blabla you are done with the changes.

    
    
      
        netstandard2.0
        ...
        ...
      
    
    
    

    But you should take note if you use some external packages, the packages might not be compatible with the new project type. So, you may need to get the compatible packages.

提交回复
热议问题