Can't compile a .NET CF project containing design-time attributes without Visual Studio?
I am working on .NET Compact Framework 3.5. I have an automated build machine that doesn't have Visual Studio installed and everything was fine.
I am trying to create a new solution containing control projects with DesignTimeAttributes.xmta files. MsBuild cannot find the file on the build machine, C: \ Program Files \ Microsoft Visual Studio 9.0 \ SDK \ v3.5 \ Bin \ genasm.exe.
I have tried manually adding this directory and its contents from my developer window to the build machine, but now I get
c: \ WINDOWS \ Microsoft.NET \ Framework \ v3.5 \ Microsoft.CompactFramework.Common.targets (67,9): error: genasm.exe (1): error There were read errors. Could not load file or assembly 'Microsoft.CompactFramework.Build.Tasks, Version = 9.0.0.0, Culture = neutral, PublicKeyToken = b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. The task "BuildAsmmeta" has been executed - FAILED.
Before continuing to wrestle with this, I thought I would ask if anyone else has a CompactFramework project with design-time attributes on a machine without Visual Studio?
a source to share
You think you need to install the Windows .NET Framework SDK on your build machine in order to get the tools that come with Visual Studio.
Update
Since you stated that you have installed all the SDKs, you can check % ProgramFiles% \ Microsoft SDK \ Windows \ v6.1 \ Bin \ SetEnv.cmd for any quirks in your PATH . I found some inconsistencies for the x64 environment.
a source to share
Filburt: I have already installed Windows SDK, .NET SDK and CF SDK. Now I understand that “everything was fine” in the original question doesn't make it clear.
None of the SDKs installed anything in the Microsoft Visual Studio 9.0 directory.
I gave up and installed VS for now, but thanks for the answer.
a source to share