Quantcast
Channel: Visual Studio General Questions forum
Viewing all articles
Browse latest Browse all 21115

Silverlight 5 Projects does not build in TFS 2018

$
0
0

I used Visual Studio 2015 to open an exsiting Silverlight project. Installed Silverlight 5 SDk and Silverlight 5 developer runtime.

On local Vissual studio the projects runs with no errors.

 i added the project to an existing solutions with other projects. The other projects are of target framework 4.6.1.

I have created a build template in TFS 2018 with path to the solution that has the Silverligjht projects with other projects.

But the build task fails at the Silvrlight project with below error.

Error MSB4226: The imported project "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Microsoft\Silverlight\v5.0\Microsoft.Silverlight.CSharp.targets" was not found. Also, tried to find "Microsoft\Silverlight\v5.0\Microsoft.Silverlight.CSharp.targets" in the fallback search path(s) for $(MSBuildExtensionsPath32) - "C:\Program Files (x86)\MSBuild" . These search paths are defined in "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\msbuild.exe.Config". Confirm that the path in the <Import> declaration is correct, and that the file exists on disk in one of the search paths.

But the path of "Microsoft.Silverlight.CSharp.targets" on my system is C:\Program Files (x86)\MSBuild\Microsoft\Silverlight\

v5.0\Microsoft.Silverlight.CSharp.targets

and the import element in the .csproj of the Silerlight project looks like this

<Import Project="$(MSBuildExtensionsPath32)\Microsoft\Silverlight\$(SilverlightVersion)\Microsoft.Silverlight.CSharp.targets" />

  



Viewing all articles
Browse latest Browse all 21115

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>