This project is read-only.
1
Vote

ilasm error when rebuild under MSV2010/2013 express

description

Hi,
I try to rebuild the source code under MS visual 2010/2012. Please help me to solve it. Many thanks.

The error message is as below:
"Error: The command ""C:\Windows\Microsoft.NET\Framework\v2.0.50727\ilasm" D:\My Projects\2014\AUTO_TEST_PROJECT\UIverify\uiautomationverify-94877\UIAVerify\UIATestLibrary\..\UIAComWrapper\UIAComWrapper\CustomInterop.UIAutomationClient.il /dll /output=D:\My Projects\2014\AUTO_TEST_PROJECT\UIverify\uiautomationverify-94877\UIAVerify\bin\debug\Interop.UIAutomationClient.dll" exited with code 1."

comments

eelliott999 wrote Nov 2, 2015 at 10:15 PM

Old post but I also experienced this problem with the source code which I found on the web on 20151102 (not a CodePlex download). (The Date Modified on the downloaded .sln file was 20131123.) After unsuccessfully trying various changes to the Project Properties > Build Event > Pre-build event command line for the UIAComWrapper and UIATestLibrary projects, I decided to build the required dll manually:

(1) opened a CMD session at:
 C:\Users\<yourusername>\Documents\Visual Studio 2010\Projects\UIAVerify\UIAVerify\UIAComWrapper\UIAComWrapper>

           Obviously that needs to be tweaked to your installation with the important point being:
               ...\UIAVerify\UIAVerify\UIAComWrapper\UIAComWrapper
(2) Entered the following command which was successfully executed:
C:\Windows\Microsoft.NET\Framework\v2.0.50727\\ilasm CustomInterop.UIAutomationClient.il /dll /output=bin\debug\Interop.UIAutomationClient.dll
(3) Deleted the pre-build events from both of the projects listed above.

The Solution then compiled cleanly.

One possibility is that ilasm has a problem with the path lengths. Both yours and mine seem fairly long.

You've probably moved on from this problem but others might experience the build problem. I was having problems with both UISpy and the Windows 10 SDK VisualUIAVerify throwing an exception on a VB6 dialog box, which could only be recognized with Ctrl in Hover mode. My downloaded VisualUIAVerify initially seemed to have a similar problem but then started working (no code or setting changes; it's a mystery to me) so that the VB6 dialog box was fully mapped in the UIAVerify interface.

eelliott999 wrote Nov 2, 2015 at 10:16 PM

Old post but I also experienced this problem with the source code which I found on the web on 20151102 (not a CodePlex download). (The Date Modified on the downloaded .sln file was 20131123.) After unsuccessfully trying various changes to the Project Properties > Build Event > Pre-build event command line for the UIAComWrapper and UIATestLibrary projects, I decided to build the required dll manually:

(1) opened a CMD session at:
 C:\Users\<yourusername>\Documents\Visual Studio 2010\Projects\UIAVerify\UIAVerify\UIAComWrapper\UIAComWrapper>

           Obviously that needs to be tweaked to your installation with the important point being:
               ...\UIAVerify\UIAVerify\UIAComWrapper\UIAComWrapper
(2) Entered the following command which was successfully executed:
C:\Windows\Microsoft.NET\Framework\v2.0.50727\\ilasm CustomInterop.UIAutomationClient.il /dll /output=bin\debug\Interop.UIAutomationClient.dll
(3) Deleted the pre-build events from both of the projects listed above.

The Solution then compiled cleanly.

One possibility is that ilasm has a problem with the path lengths. Both yours and mine seem fairly long.

You've probably moved on from this problem but others might experience the build problem. I was having problems with both UISpy and the Windows 10 SDK VisualUIAVerify throwing an exception on a VB6 dialog box, which could only be recognized with Ctrl in Hover mode. My downloaded VisualUIAVerify initially seemed to have a similar problem but then started working (no code or setting changes; it's a mystery to me) so that the VB6 dialog box was fully mapped in the UIAVerify interface.