sergiogp1 / BC-AL-Packages

AL Packages allows you to download symbols in 10 seconds of any Business Central version without having to connect to an online Sandbox or to an On-Premise environment.
MIT License
2 stars 1 forks source link

Add option to download application version from app.json #5

Open christianbraeunlich opened 1 year ago

christianbraeunlich commented 1 year ago

Hi @sergiogp1, great project! Love the idea and it works like a charm!

One minor feature request that could be put in the backlog for now: Given an app.json file, we could read the application version and provide an additional option to download the specific version or as waldo put it in https://github.com/sergiogp1/BC-AL-Packages/issues/3, provide the latest of the specific major-minor version.

app.json:

{
    ...
    "application": "21.1.48363.57447",
    "target": "Cloud",
    ...
}

We could read the target from our app.json. The target is cloud by default. The target value would then be used to specify the Sandbox/OnPrem type.

In this case it would provide an option to download the version: Sandbox 21.1.48363.57447 If the application version is 21.1.0.0 and target is Cloud than provide the option to download the latest version for Sandbox 21.1.x.x If the application version is 22.0.0.0 and target is OnPrem than provide the option to download the latest version of OnPrem 22.x.x.x

What do you think? Thanks in advance

sergiogp1 commented 1 year ago

I like your idea :)

So, maybe one possibility is that when you are asked to choose between Sandbox or OnPrem, add a third option that would download symbols directly based on your on app.json, right?

christianbraeunlich commented 1 year ago

Yes, so three options in total. Also thinking about making it an extension setting, but that would be a bit too much for now. We would exclude the Sandbox/OnPrem question by making our app.json the source of truth.