R
Rajab Nisha
Guest
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" />
Continue reading...
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" />
Continue reading...