MSBuild 15.0 (Visual Studio 2017) error MSB4067 for SSDT (SSRS and SSAS) projects: “The element beneath element is unrecognized”

后端 未结 2 720
余生分开走
余生分开走 2021-02-05 20:04

MSBuild 14.0 (the version included with Visual Studio 2015) logs warnings (MSB4078) when building a solution which contains SSDT projects (rptproj or dwproj projects). For examp

2条回答
  •  太阳男子
    2021-02-05 20:56

    Update (October 2017)

    The latest version of Microsoft Reporting Services Projects for Visual Studio (1.18) adds MSBuild support for SSRS projects. With this installed, SSRS projects can be updated to a format supported by MSBuild, which prevents this problem from happening.


    Original Answer

    This is a bug in MSBuild 15, labelled for fix in "foundation update 2".

    A workaround as given in the GitHub issue thread by one of the MSBuild maintainers is:

    Place a file with these contents next to your .sln file with the special name:

    after.{yoursolutionname}.sln.targets

    
     
      
      
       
      
     
    
    

    This seems to work provided that there are no Project Dependencies from other .csproj projects to the .rptproj projects.

提交回复
热议问题