adsense

Sunday, July 21, 2024

: The imported project Microsoft.TextTemplating.targets" was not found

 When building Visual studio you might encounter the error MSB4019: The imported project Microsoft.TextTemplating.targets" was not found.


To fix this error

  • Open the csproj in editor
  • Find following 
        <Import Project="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v16.0\TextTemplating\Microsoft.TextTemplating.targets" />

  • Change it to following and save
"$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v$(VisualStudioVersion)\TextTemplating\Microsoft.TextTemplating.targets"

  • Reload the project and build

Cheers,
Samitha

No comments:

Post a Comment