Comments
4 comments
-
Thanks for your post. Unfortunately we cannot tell from this information if it's MSBUILD not finding SmartAssembly, SmartAssembly unable to load the project, or something else, like a crypto key that can't be found.
Have you check that you have SmartAssembly.MSBuild.Tasks version 6.0.0.0 in your GAC? -
I have checked this and, the msbuild dll is present in the gac. I now fixed this by executing smart assembly using the command line interface.
-
On 64-bit there are 2 msbuild.exe:
1) c:\windows\Microsoft.NET\Framework64\v4.0.30319\msbuild.exe
fails with
Smartassembly failes with The system cannot find the file specified. (Exception from HRESULT: 0x80070002)
2) c:\windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe
Works! -
This problem exists because the SmartAssembly setup does not write the install path to the 64bit portion of the registry - therefore when running under the 64bit msbuild process the smartassembly msbuild task cannot find the location of smartassembly.com.
You can fix this particular problem by setting this value manually:
HKEY_LOCAL_MACHINE\SOFTWARE\Red Gate\SmartAssembly 6\Path="C:\Program Files\Red Gate\SmartAssembly 6\"
Add comment
Please sign in to leave a comment.
When i try to build my project using tfs I receive the folowing error.
C:\Builds\....\: error : SmartAssembly build failed:
C:\Builds\....\ : The system cannot find the file specified. (Exception from HRESULT: 0x80070002)
Here you can find the c# project file
Here you can find the smart assembly project file