Looking for tf.exe commands to include in my PowerShell script, and the reference in http://msdn.microsoft.com/en-US/library/1yft8zkw(v=vs.80).aspx is quite helpful.
I'll update this post with the exact commands later on :)
*joychua97
Showing posts with label TFS 2010. Show all posts
Showing posts with label TFS 2010. Show all posts
Wednesday, February 15, 2012
Tuesday, February 7, 2012
Microsoft.Silverlight.CSharp.targets was not found
Here is the error that I was mentioning in my previous post.
The imported project "C:\Program Files\MSBuild\Microsoft\Silverlight\v4.0\Microsoft.Silverlight.CSharp.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.
Resolution:
1) If there are multiple build servers, determine which server is being used. You can do this by queueing a new build with Logging Verbosity set to "Diagnostic". This will also show the values of the MSBuild variables.
MSBuildExtensionsPath32 = C:\Program Files (x86)\MSBuild
MSBuildExtensionsPath64 = C:\Program Files\MSBuild
MSBuildExtensionsPath = C:\Program Files (x86)\MSBuild
COMPUTERNAME = <computer name>
2) Check which variable is defined in the project (example line below) and verify if the file exists. Also check if Silverlight 4 SDK is installed in the build server.
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\Silverlight\$(SilverlightVersi on)\Microsoft.Silverlight.CSharp.targets" />
3) If the file doesn't exist, install Silverlight 4 SDK in the build server, and that should solve it. Note that the build server doesn't have Visual Studio, and the Silverlight SDK installed without problems.
*joychua97
The imported project "C:\Program Files\MSBuild\Microsoft\Silverlight\v4.0\Microsoft.Silverlight.CSharp.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.
Resolution:
1) If there are multiple build servers, determine which server is being used. You can do this by queueing a new build with Logging Verbosity set to "Diagnostic". This will also show the values of the MSBuild variables.
MSBuildExtensionsPath32 = C:\Program Files (x86)\MSBuild
MSBuildExtensionsPath64 = C:\Program Files\MSBuild
MSBuildExtensionsPath = C:\Program Files (x86)\MSBuild
COMPUTERNAME = <computer name>
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\Silverlight\$(SilverlightVersi
3) If the file doesn't exist, install Silverlight 4 SDK in the build server, and that should solve it. Note that the build server doesn't have Visual Studio, and the Silverlight SDK installed without problems.
*joychua97
Fixing "The Silverlight 4 SDK is not installed" error
I need to troubleshoot a build error (will have a different post once I resolve that one), so I created a sample Silverlight application. It built and ran successfully in my machine, although I got the following error when I ran a build. Note that the build server already has Silverlight 4 SDK installed.
C:\Program Files (x86)\MSBuild\Microsoft\Silverlight\v4.0\Microsoft.Silverlight.Common.targets (104): The Silverlight 4 SDK is not installed.
Looking around, they said that "Silverlight projects cannot be built by 64-bit MSBuild."
To resolve this:
1) Edit your Build Definition, and go to the Process tab
2) Expand the "3. Advanced" section and set the "MSBuild Platform" value to "x86"
3) Save the Build Definition.
Reference: http://social.msdn.microsoft.com/Forums/en/msbuild/thread/20a742a1-b99c-4638-8590-9a9d6a95fb69
Now I can move on to the original build error that I need to work on :)
*joychua97
C:\Program Files (x86)\MSBuild\Microsoft\Silverlight\v4.0\Microsoft.Silverlight.Common.targets (104): The Silverlight 4 SDK is not installed.
Looking around, they said that "Silverlight projects cannot be built by 64-bit MSBuild."
To resolve this:
1) Edit your Build Definition, and go to the Process tab
2) Expand the "3. Advanced" section and set the "MSBuild Platform" value to "x86"
3) Save the Build Definition.
![]() |
| Changing the MSBuild Platform to x86 |
Reference: http://social.msdn.microsoft.com/Forums/en/msbuild/thread/20a742a1-b99c-4638-8590-9a9d6a95fb69
Now I can move on to the original build error that I need to work on :)
*joychua97
Subscribe to:
Posts (Atom)
