Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.

If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!

.NET : Unable to build 'X86' and 'Any CPU' projects together



  • Hi,

    I am evaluating BM for my team and having no way to get through this.

    I build a exe. project (using Build .NET Project action or MSBuild action) and this is set up as an X86 project (Target Platforms - X86)since it contains some references to unmanaged code and does some Pinvoke stuff. This project refers to other projects which are built with 'Any Cpu' settings. (Target Platform- Any Cpu).

    When I build this X86 executable project, I get an eror as 'Output path is not defined for all configruations in the the 'Any Cpu' project. No output path for Release and X86' in the referenced project. '

    It works fine when I build the solution in VS. But with BM, again, I cannot build solution because I just cannot set bin\debug of all projects as the target dirs of respective projects and hence all the projects' output to a fixed single target dir folder. Hence, I had to go with building projects that need to be deployed but in this case stuck up with this output path issue !

    How do I get around this. I am really stuck up having tried several options to build this project !

    Any help is appreciated.



  • I think the problem may have to do with your project/solution configuration (i.e. .sln and .vbproj/.csproj files).

    In the action's execution log, you can see the exact command run by the Action. I would suggest to run that command at your desktop, and then try to see what specific project is missing the output path... and then tweak the project files.



Inedo Website HomeSupport HomeCode of ConductForums GuideDocumentation