Показать сообщение отдельно
Старый 26.01.2021, 17:12   #1  
Blog bot is offline
Blog bot
Участник
 
24,134 / 809 (75) +++++++
Регистрация: 28.10.2006
Art Of Creation: The imported project Microsoft.Dynamics.Framework.Tools.BuildTasks.targets was not found
Источник: http://www.artofcreation.be/2021/01/...was-not-found/
==============

Hi everyone,

I was setting up a build for Dynamics 365 F&O using the following guide: Azure hosted build for Dynamics 365 Finance & SCM and ran into the following error on the build solution step:
Error MSB4019: The imported project Microsoft.Dynamics.Framework.Tools.BuildTasks.targets was not found. Confirm that the path in the declaration is correct, and that the file exists on disk.

Digging a bit deeper, it was already going wrong in the NuGet install Packages step with errors like the following:
Feeds used:
D:\a\11\s\Build\6ba2d33f-0920-4785-8d8e-1234567890/_packaging/FeedD365/nuget/v3/index.json

Restoring NuGet package Microsoft.Dynamics.AX.Platform.DevALM.BuildXpp.7.0.5816.35654.
Restoring NuGet package Microsoft.Dynamics.AX.Application.DevALM.BuildXpp.10.0.644.10018.
WARNING: Unable to find version ‘10.0.644.10018’ of package ‘Microsoft.Dynamics.AX.Application.DevALM.BuildXpp’.
D:\a\11\s\Build\6ba2d33f-0920-4785-8d8e-1234567890/_packaging/FeedD365/nuget/v3/index.json: Package ‘Microsoft.Dynamics.AX.Application.DevALM.BuildXpp.10.0.644.10018’ is not found on source ‘D:\a\11\s\Build\6ba2d33f-0920-4785-8d8e-1234567890/_packaging/FeedD365/nuget/v3/index.json’.

Restoring NuGet package Microsoft.Dynamics.AX.Platform.CompilerPackage.7.0.5816.35654.

WARNING: Unable to find version ‘7.0.5816.35654’ of package ‘Microsoft.Dynamics.AX.Platform.DevALM.BuildXpp’.
D:\a\11\s\Build\6ba2d33f-0920-4785-8d8e-1234567890/_packaging/FeedD365/nuget/v3/index.json: Package ‘Microsoft.Dynamics.AX.Platform.DevALM.BuildXpp.7.0.5816.35654’ is not found on source ‘D:\a\11\s\Build\6ba2d33f-0920-4785-8d8e-1234567890/_packaging/FeedD365/nuget/v3/index.json’.

WARNING: Unable to find version ‘7.0.5816.35654’ of package ‘Microsoft.Dynamics.AX.Platform.CompilerPackage’.
D:\a\11\s\Build\6ba2d33f-0920-4785-8d8e-1234567890/_packaging/FeedD365/nuget/v3/index.json: Package ‘Microsoft.Dynamics.AX.Platform.CompilerPackage.7.0.5816.35654’ is not found on source ‘D:\a\11\s\Build\6ba2d33f-0920-4785-8d8e-1234567890/_packaging/FeedD365/nuget/v3/index.json’.

The error was in the nuget.config file, that should point to the correct feed. For some reason the path was missing, causing the error.

The incorrect file was:

</span span style="color: #000066;"version/span=span style="color: #ff0000;""1.0"/span span style="color: #000066;"encoding/span=span style="color: #ff0000;""utf-8"/spanspan style="color: #000000; font-weight: bold;"?>
</span>
</span>


</span>
</span>

The corrected file:

</span span style="color: #000066;"version/span=span style="color: #ff0000;""1.0"/span span style="color: #000066;"encoding/span=span style="color: #ff0000;""utf-8"/spanspan style="color: #000000; font-weight: bold;"?>
</span>
</span>


</span>
</span>

The correct contents of this file for your project and feed can be retrieved when you go to you DevOps project > Artifacts > [Select your feed] > Connect to Feed > NuGet.exe.



Источник: http://www.artofcreation.be/2021/01/...was-not-found/
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.