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
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:
Create one App with target 'Cloud' and CodeCop 'AppSourceCop' enabled.
Create one dependend App with target 'OnPrem' and CodeCop 'AppSourceCop' not enabled.
Create a code-workspace file with CodeAnalysis enabled
Open the workspace
The second app will fail on "The compilation target is set to 'OnPrem', but it must be set to 'Cloud' or 'Extension'." since it seems like the AppSourceCop of the first app is wongfully applied to the second app as well.
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.
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
Sample project enclosed Demo.zip
5. Versions: