Hi Dimitar Kapitanov,
Thank you. That worked correctly locally after I adjusted it to be a relative path using the variable.
<OpenAccessInstallDir>$(SolutionDir)\..\tools\Telerik</OpenAccessInstallDir>
However, the build server is still getting an error I believe having to do with the lack of OpenAccess being installed on that machine.
I receive the following error from MSBuild.
The command ""F:\MySolutionDir\..\util\Telerik\venhance.exe" -verboseMode:1 "-assembly:F:\MySolutionDir\OpenAccessData\bin\Debug\MyProject.OpenAccessData.dll"" exited with code -532459699.
When running that command manually in a command prompt window I get this more descriptive error.
Unhandled Exception: System.TypeInitializationException: The type initializer for 'Telerik.OpenAccess.Tools.Enhancer' threw an exception. ---> System.IO.FileNotFoundException: Could not load file or assembly 'Telerik.OpenAccess, Version=2009.2.701.5, Culture=neutral, PublicKeyToken=7ce17eeaf1d59342' or one of its dependencies. The system cannot find the file specified.
File name: 'Telerik.OpenAccess, Version=2009.2.701.5, Culture=neutral, PublicKeyToken=7ce17eeaf1d59342'
at Telerik.OpenAccess.Tools.Enhancer..cctor()
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
--- End of inner exception stack trace ---
at Telerik.OpenAccess.Tools.Enhancer.Main(String[] args)
Brendan