Friday, November 1, 2024

Import 2019Visual studio D365fo projects into 2022Visual studio

 Scenario:-In this blog today we see how to import 2019Visual studio  D365fo projects into 2022Visual studio 

Generally we can import 2019Visual studio  D365fo projects in another 2019Visual studio  as well as we can import 2022Visual studio  D365fo projects in another 2022Visual studio. As we know that now Microsoft is using Visual studio2022  so there are some projects which are developed in Visual studio2019.So now if you want to import then you will get an error.

An unexpected error occured during the project import: The imported project"C:\Program Files (x86)\MSBuild\Microsoft\Dynamics\AX\Microsoft.Dynamics.Framework.Tools.BuildTasks.targets" was not found. Confirm that the expression in the Import declaration "C:\Program Files (x86)\MSBuild\Microsoft\Dynamics\AX\Microsoft.Dynamics.Framework.Tools.BuildTasks.targets" is correct, and that the file exists on disk.C:\Users\localadmin\source\repos\FinanceOperations1\FinanceOperations1.rnrproj

To get rid of this issue follow below steps .

Step1:-Go to File explorer  in VM. Now click on this PC as shown in below

Step2:-Now click on the folder where your vm located as shown in below

Step3:-Now click on Program Files(x86) folder as shown in below

Step4:-Now click on  MS Build folder as shown in below

Step5:-Now click on  Microsoft folder as shown in below

Step6:-Now click on  Dynamics folder as shown in below

Step7:-Now click on  AX folder as shown in below

Step8:-Now copy the first file as shown in below

Step9:-Now Paste the file as shown in below

Step10:-You can see the file with copy at ending as shown in below

Step11:-Now Rename the file with   Microsoft.Dynamics.Framework.Tools.BuildTasks.targets   as shown in below



Step12:-Its done .Just go back to visual studio  and import project .


As you can see project got imported successfully .Build the project and start developing. 


Thank you !!

Keep Daxing!!


No comments:

Post a Comment

Upload File from local system in a form

 Actions to be done at 3 stages  1) Create Fileupload item by right clicking on design as shown in image below 2)Change Properties especiall...