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

Community site session details

Session Id :
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.
I have the same question (0)
  • Suggested answer
    Bharani Preetham Peraka Profile Picture
    3,634 Moderator 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
    235,987 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.
  • Community member Profile Picture
    2 on at
    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
    235,987 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

Responsible AI policies

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

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Sohaib Cheema Profile Picture

Sohaib Cheema 844 User Group Leader

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 752 Super User 2025 Season 2

#3
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 553

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans