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 :
Microsoft Dynamics CRM (Archived)

SolutionPackager expecting Web Resources with no extension

(0) ShareShare
ReportReport
Posted on by

Hi,

I'm looking to move over to use the SolutionPackager with my Visual Studio solution. The unique name for the webresource does not have an extension e.g. xxx_mywebresource. When adding this to the VS solution it automatically adds the extension to the local file (e.g. xxx_mywebresource.js, which is what I want as VS will know what file type it is).

However, when trying to pack a solution using this web resource it complains saying it can't find xxx_mywebresource as the file is actually called xxx_mywebresource.js.

Is it possible to add this to the map? I would like to keep the extension of the file in VS and solve this issue at the SolutionPackager side.

 

Thanks

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Community Member Profile Picture
    on at

    Hi,

    As long as the file does not match the unique name in your solution, the solutionpackager will have an issue. As you wish to keep the extension of the file in VS (which you should), you should update your solution in CRM to match the file name in Visual Studio. The right way will be to remove the exisiting file and upload the new one..

    Ronald Lemmen

  • Community Member Profile Picture
    on at

    Hi Ronald,

    Was hoping I didn't have to do this! Is there an easy way to resolve the dependencies? I've got about 30 js files that are referenced by forms, so in addition to adding the new ones I'll have to add them to the forms as well.

    Thanks

  • Suggested answer
    Community Member Profile Picture
    on at

    The easiest way to resolve dependencies is to browse to the web resource and hit the ribbon button 'Show dependencies'.

    Otherwise browse to:

    yourorg.yourserver.com/main.aspx;id=%7b[guid]%7d&pagetype=webresourceedit

    where you replace [guid] with the guid of your javascript web resource.

    It takes some time to get this changed, but you'll enjoy the benefits of being able to use the solutionpackager!

    Good luck,

    Ronald

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 > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans