How-to migrate Wpf projects to the new VS2017 format

后端 未结 6 465
耶瑟儿~
耶瑟儿~ 2020-12-08 03:18

I\'m migrating my projects to the new visual studio 2017 format which is working nicely for all standard libraries only now I run into problems with my UI libraries where I

6条回答
  •  天涯浪人
    2020-12-08 03:25

    The above solution works for Wpf dll's, but I reverted it because Resharper and the Visual Studio designer where not functional anymore after this change. Mainly because they couldn't pair the xaml and the code-behind at design time. But the project compiles and works.

    For a wpf executable you need to do the following:

    
      
        $(MSBuildExtensionsPath)\$(VisualStudioVersion)\Bin\Microsoft.CSharp.targets
        net451
        WinExe
        MyNamespace
        MyExe
        MyExe.ico
        app.manifest
        MyNamespace.App
      
    
      
        
        
        
        
      
    
      
        
        
    
        
        
    
        
        
        
    
        
        
      
    
      
    
    

提交回复
热议问题