Dynamics Business Central / NAV Developer Digest - Vol. 451
![Dynamics Business Central / NAV Developer Digest - Vol. 451](https://archerpoint.com/wp-content/uploads/2022/01/DEV-DIGEST-jpg.webp)
ArcherPoint’s Developer Digest focuses on Microsoft Dynamics 365 Business Central and Dynamics NAV development. This week’s volume includes a new file compare feature in Visual Studio, problem working with multiple projects in Business Central, and a handy (free!) development tool.
The Dynamics 365 Business Central community comprises professionals devoted to advancing the success of their customers. Developers, project managers, and consultants collaborate to share helpful information across blogs, forums, and social media sites. From discovering new solutions to finding answers to complex issues, these dedicated individuals are constantly sharing their knowledge with others. At ArcherPoint, we recognize and appreciate this highly engaged community’s creativity, hard work, and collective intelligence. To ensure all users can benefit from their expertise, we want to share their wealth of information with everyone.
NEW: File compare feature in Visual Studio
Visual Studio finally introduced a new feature to compare files within the solution explorer without needing external tools! This can be a great time saver, especially during the upgrade phase.
Learn more about comparing files with Solution Explorer in Visual Studio.
Problem working with multiple projects in Business Central
Yann Saint-Laurent posted:
Hey Devs,
Got a strange problem in VSCode that recently popped up…
I have a workspace that I created about 6 months ago. The workspace has multiple projects loaded inside of it, 10 to be exact.
With all of these in my workspace, it allows me to quickly jump to files in other projects and easily set breakpoints when debugging. So, the issue I’ve been having is when I update code in one project then press F5 to start debugging, I get the following error:
The request for path /[TEST]/dev/apps?SchemaUpdateMode=forcesync&DependencyPublishingOption=ignore failed with code UnprocessableEntity. Reason: The extension could not be deployed, because it tries to replace the existing AppSource app ‘Channel Sales Manager Core’ with id ‘zzzzzzzz-xxxx-4ae0-8c18-xxxxxxxzzzz’, which is a dependency to the following AppSource apps: ‘Channel Payments Manager for Stripe by [COMPANY],Channel Sales Manager for Magento by [COMPANY],CSM-CPM Connector by [COMPANY],,Channel Payments Manager Core by [COMPANY],’.
The problem here is that I am not trying to publish CSM Core. I’m just trying to publish the [TEST] app. When I hit this issue last week, Pranav Joshi helped me get around it by just opening the folder [TEST] project resides in and publish from there. That is a great workaround, but I would love to get to the bottom of it. Has anyone else run into this?
After checking this reference from Microsoft on working with multiple projects in Business Central, particularly the section on Publish Changes, I found the problem: The rad.json file for one of the projects had the following in it:
{“Added”:[],”Modified”:[],”Removed”:[{“Id”:0,”Kind”:11,”Name”:”_symbolcache”,”PackagePath”:”/src/../../../../CSM/CSM_App_Core_CSM_Library/app/.vscode/temp-al-proxy.al”}]}
I deleted it, and I was able to push my code again. So, the lesson to learn here is that even though you are not pushing one of the other extensions, if the rad.json says that the project is “dirty”, it will “do a set publishing” and try to publish it to the Server. Hope this helps others. Huge thanks to Pranav Joshi for helping me with this issue.
A handy (free!) development tool
Elyes Ferchichi posted, “Just discovered this Windows free app. DevToys is a great tool for developers for a quick data check, conversion, encoder/decoder, validator, and more—like a Swiss Army knife for developers!”
Interested in Dynamics NAV and Business Central development? Be sure to see our collection of NAV/BC Development Blogs.
Read “How To” blogs from ArcherPoint for practical advice on using Microsoft Dynamics NAV and Dynamics 365 Business Central.