Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Suggested answer

Converting an existing folder into .sln project in D365 finance and operation

(0) ShareShare
ReportReport
Posted on by 2
I have an existing codebase and forms folder, and I cannot rebuild and synchronize it with database because it is not in .sln project format.
I cannot extend any existing form in my project.
How can I change that folder into .sln format.

Please help and Thanks in advance.
  • Suggested answer
    Bharani Preetham Peraka Profile Picture
    Bharani Preetham Pe... 3,587 Super User 2024 Season 1 on at
    Converting an existing folder into .sln project in D365 finance and operation
    As Martin said, .sln is not project format. It is a solution where it can contain multiple projects. For your issue, are the files which you got from your friend are exported as a project or he just copied them from k drive and sent them? If it is exported, then you should have a model already created and you can import. In the 2nd scenario, here also model needs to be created. But this is not suggested as there is a chance of losing all files. 
     
    The ideal way is to send the files either by project export or if source control is set, then he can checkin those files so that on latest you will get all the objects.
  • Suggested answer
    Martin Dráb Profile Picture
    Martin Dráb 230,836 Most Valuable Professional on at
    Converting an existing folder into .sln project in D365 finance and operation
    F&O stores source code and metadata in a central location - usually in PackagesLocalDirectory (e.g. K:\AosService\PackagesLocalDirectory). Also, each object must be included in a model, which itself must be a in a package (module).
     
    F&O projects don't contain source code files; they merely have a reference to the central location.
     
    Therefore your files are completely ignored by F&O. Your friend also gave them to you in a wrong way, so you can't simply import them. Consider asking him to give you a model or an exported project. Otherwise you need a model and a package to put the files too. If you don't have it yet, use Dynamics 365 > Model management > Create model to create one.
     
    Then you can copy files to correct folder inside the model. For examples, forms would go to path like this: K:\AosService\PackagesLocalDirectory\MyPackage\MyModule\AxForm. Then, if the code is correct and your model has all necessary dependencies, you'll be able to build the model. If you want a project, create a new one and then add your objects from Application Explorer.
     
    Also, make sure you set up version control for your files, otherwise you risk losing all your work at any moment.
  • Converting an existing folder into .sln project in D365 finance and operation
    I got a folder of existing codes from a friend, and I have to develop it further and add more forms and codes.

     
    I am not able to add any new file. 
    or not getting other options like build, re-build, or anything.

    I am new to ms dynamics.
  • Martin Dráb Profile Picture
    Martin Dráb 230,836 Most Valuable Professional on at
    Converting an existing folder into .sln project in D365 finance and operation
    You description is very confusing.
     
    What do you mean by a codebase folder? I'm not familiar with such a thing in F&O.
     
    What are yo doing? Building your application in Visual Studio, setting up a build pipeline or what?
     
    Please tell us more about your problem with compilation - more than just "I cannot rebuild". Let's ignore DB synchronization if you can't even build the app to synchronize.
     
    Note that you don't need a project to build in VS - you can build a whole model. And you can always create a new project and put objects there.
     
    .sln is not a project at all. It's a solution, which works as a container for projects.

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,965 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,836 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans