OfficeDev / generator-office

Yeoman generator for building Microsoft Office related projects.
https://www.npmjs.com/package/generator-office
MIT License
815 stars 207 forks source link

Changing accounts for generator offoice #819

Closed ngacho closed 2 months ago

ngacho commented 3 months ago

Apologies if this isn't the right forum (and please point me to the right forum for these questions), but I just started building add ons and I'm massively confused.

  1. How does one change the account that npm start uses. I have two accounts and one of them isn't authorised to be building add ons (which, conveniently, is the one office authorized) but I can't find an easy way to switch.
  2. Where is the manifest.xml? While sideloading apps, I can only upload xml files, but the generator office comes prepackaged with manifest.json. If there isn't any, where can I find tools that seamlessly convert the provided json to xml. I can probably write a script, but I would rather not reinvent the wheel if it exists.
millerds commented 3 months ago

Which template did you select when running "yo office"?

The new unified manifest is json based and projects created using that specific preview template don't include an xml manifest and you don't need one. Running 'npm start' will start up webpack and do the sideloading for you using a service call (that is why the account is needed in the first place).

The unified manifest project includes a couple of npm scripts to help in managing the account used to sideload. If you execute 'npm run logout' your cached credentials will be removed. After that you either run 'npm run login' or 'npm start' to trigger an auth flow involving the browser to enter the credentials you want to use.

If you are not read for the unified manifest project and want to stick to xml then choose one of the other templates and you will get an xml manifest. Note that for Outlook 'npm start' will still require the account to sideload for you.

Rick-Kirkham commented 3 months ago

[like] Ricky Kirkham reacted to your message:


From: Darren Miller @.> Sent: Wednesday, April 3, 2024 3:54:15 PM To: OfficeDev/generator-office @.> Cc: Subscribed @.***> Subject: Re: [OfficeDev/generator-office] Changing accounts for generator offoice (Issue #819)

Which template did you select when running "yo office"?

The new unified manifest is json based and projects created using that specific preview template don't include an xml manifest and you don't need one. Running 'npm start' will start up webpack and do the sideloading for you using a service call (that is why the account is needed in the first place).

The unified manifest project includes a couple of npm scripts to help in managing the account used to sideload. If you execute 'npm run logout' your cached credentials will be removed. After that you either run 'npm run login' or 'npm start' to trigger an auth flow involving the browser to enter the credentials you want to use.

If you are not read for the unified manifest project and want to stick to xml then choose one of the other templates and you will get an xml manifest. Note that for Outlook 'npm start' will still require the account to sideload for you.

— Reply to this email directly, view it on GitHubhttps://github.com/OfficeDev/generator-office/issues/819#issuecomment-2034989462 or unsubscribehttps://github.com/notifications/unsubscribe-auth/ACFKYODBRIGKD7X74UB2N6TY3QQ2RBFKMF2HI4TJMJ2XIZLTSOBKK5TBNR2WLJDUOJ2WLJDOMFWWLO3UNBZGKYLEL5YGC4TUNFRWS4DBNZ2F6YLDORUXM2LUPGBKK5TBNR2WLJDUOJ2WLJDOMFWWLLTXMF2GG2C7MFRXI2LWNF2HTAVFOZQWY5LFUVUXG43VMWSG4YLNMWVXI2DSMVQWIX3UPFYGLLDTOVRGUZLDORPXI6LQMWWES43TOVSUG33NNVSW45FGORXXA2LDOOJIFJDUPFYGLKTSMVYG643JORXXE6NFOZQWY5LFVA2DCMJXGU2DGN4CUR2HS4DFUVUXG43VMWSXMYLMOVS2UMRSGIYTMMRVGY2TJJ3UOJUWOZ3FOKTGG4TFMF2GK. You are receiving this email because you are subscribed to this thread.

Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.