web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

Hide Source Code Extension

(4) ShareShare
ReportReport
Posted on by 71
Hi Everyone,
 
I’m currently trying to ensure that our extension code is not visible to others, but I keep encountering inconsistent results with the same setup. For example:
  1.  I did not declare the "resourceExposurePolicy" properties in the app.json file for one extension, and the source code folder is hidden (which is the desired outcome).
 
 
2. When applying the same approach to another extension, the source code folder remains visible.
 
 
 
3. Even after adding the "resourceExposurePolicy" properties to app.json for the extension in point 2, the source code folder is still visible.
 
 
 
I would greatly appreciate any insights you can provide on this matter.
Thank you and have a wonderful day!
 
I have the same question (0)
  • Suggested answer
    Khushbu Rajvi. Profile Picture
    20,275 Super User 2025 Season 2 on at
    You can prevent users from downloading extension: https://yzhums.com/1732/
  • Robby Profile Picture
    71 on at
    Hi Khushbu,
     
    Thank you for your reference. However, as mentioned in point 3 of my initial post, I have already declared the "resourceExposurePolicy" and set both "allowDownloadingSource" and "includeSourceInSymbolFile" to false. While this disables downloading from the Extension Management page, I can still see the source code folder when I open the .app file using WinRAR.
    Additionally, when I do not declare "resourceExposurePolicy" as outlined in points 1 and 2, the results are inconsistent. For the extension in point 1, the source code folder is not visible when I open the .app file (which is the desired outcome). However, for the extension in point 2, the source code folder remains visible.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,229

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,867 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,153 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans