WCF compilation error on CI server: Microsoft.VisualStudio.ServiceModel.targets not found

前端 未结 7 1538
隐瞒了意图╮
隐瞒了意图╮ 2021-02-12 13:39

I am getting this error on my CI server:

error MSB4019: The imported project \"C:\\Program Files (x86)\\MSBuild\\Microsoft\\VisualStudio\\WCF\\Microsoft.V

7条回答
  •  遥遥无期
    2021-02-12 13:58

    Can still happen on vs2019

    error MSB4019: The imported project "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Microsoft\VisualStudio\v16.0\WCF\Microsoft.VisualStudio.ServiceModel.targets" was not found. Confirm that the path in the declaration is correct, and that the file exists on disk.

    WCF is not installed by default as part of 'ASP.NET and web development' workload. To fix this,

    On visual studio installer > modify > individual components tab, search for wcf, check, modify - the .targets file gets now installed, msbuild builds ok.

    MSBuild auto-detection: using msbuild version '16.3.2.50909' from 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Current\bin'

提交回复
热议问题