Always running as x86 process when packaging as exe

Ok. I have reproduced this an this is certainly a bug with packaging the AzureAD module in VS. The problem is that MSBuild is running x86 inside VS so it’s failing to import the module and look up the information so that packaging is failing.

I’ll open an issue and get this resolved for our next build. You can work around this by packaging in VS Code or using Merge-Script from the PowerShell Pro Tools module since both of those will run x64 while packaging.

I’ll look forward to the next build then :slight_smile:

In the mean time I’ll package it through VS Code.