Why can't I create Shared Project in Visual Studio 2015?

前端 未结 4 420
一向
一向 2020-12-15 04:12

I downloaded visual studio community 2015. I tried to create a Shared Project and am getting an error:

Content from Microsoft.Windows.UI.Xaml.CSharp.targets

4条回答
  •  难免孤独
    2020-12-15 04:19

    One workaround is to make the following edits:

    Open the file %ProgramFiles(x86)%\MSBuild\Microsoft\VisualStudio\v14.0\CodeSharing\Microsoft.CodeSharing.CSharp.targets (for Visual Basic the file is Microsoft.CodeSharing.VisualBasic.targets) and look for the following entries around line 8 -

    
        
    

    Change these lines to the following -

    
    
    

    Basically, undo the conditional import of the Xaml based shared projects.

    This is (believe it or not) the advice I received from MS for this issue. I think it's related to an unclean upgrade of the RC (or earlier) versions to RTM and the selection of different options during install.


    (Insert usual caveats about editing files that don't "belong" to you, take backups, and if you're not confident to make such edits, don't)

提交回复
热议问题