microsoft / AL

Home of the Dynamics 365 Business Central AL Language extension for Visual Studio Code. Used to track issues regarding the latest version of the AL compiler and developer tools available in the Visual Studio Code Marketplace or as part of the AL Developer Preview builds for Dynamics 365 Business Central.
MIT License
744 stars 245 forks source link

The compilation target is set to 'OnPrem', but it must be set to 'Cloud' or 'Extension'. > Fails in Multiroot workspace #6130

Closed fvet closed 3 years ago

fvet commented 4 years ago

Describe the bug When working with multiroot workspaces, with a mixed set of extensions (having both OnPrem and Cloud/Extension apps and different CodeCops), rules of Cloud apps are (wonrgfully) applied to OnPrem apps.

This blocks us in making full use of the workspace features, since part of our apps have been build for AppSource, where other apps have not yet / will not be targetted for AppSource, although all our apps should be able to be managed from within one workspace.

To Reproduce Steps and to reproduce the behavior:

Expected behavior The CodeCops set in the settings.json of the apps / folder, should only apply to the scope of the app / folder and not to other apps when opened via a multiroot workspace.

Screenshots

image

Sample project enclosed Demo.zip

5. Versions:

image

qutreson commented 4 years ago

@fvet, thank you for reporting this issue, I was able to reproduce it following your repro steps

thloke commented 3 years ago

Closing as this has been fixed.