Closed billyzkid closed 6 years ago
@billyzkid. Thanks for reporting. I will change the behavior to ignore projects that fail to load (some console output will still show up to warn you that subs were not generated for these projects).
Hmm second thought.. I should be able to pass the build architecture down to simplestubs to make sure that roslyn load all projects using the specified architecture.
But what if I need stubs for these projects? Why is SimpleStubs trying to build this project in "Any CPU" when my build config/architecture is set to x64 for all projects?
Edit: just saw your 2nd comment. So we should be good to go once that's fixed then?
We need to pass down the $(Platform) to MSBuildWorkspace the same way we did for $(Configuration) here.
@billyzkid You're welcome to send a PR for this if it's clear to you what needs to be done. Otherwise, I'll try to do it as soon as I find some time.
Thanks. It seems pretty straightforward, but unfortunately I can't afford the time to setup the necessary dev environment and properly test at the moment. For now, I'm reverting to the previous version, but am happy to test/confirm the next one as soon as the fix is released for this.
@billyzkid 2.4.3 published, please give it a try!
@nehmebilal It works! Thanks!
Glad to hear!
Even though I have specified the x64 build configuration for my solution and in my Tests project settings, SimpleStubs appears to force one of my project references to compile using "Any CPU" which will not work as this project includes native dependencies (ADBMobile) and can only target x86, x64, or ARM. If I unload the Tests project, the solution builds fine.
This did not occur in the previous version of SimpleStubs.
Here is the relevant error output: