AL icon indicating copy to clipboard operation
AL copied to clipboard

Error installing developer tools from NuGet

Open PatrickSchiefer opened this issue 1 year ago • 10 comments

When I try to install the beta package from https://www.nuget.org/packages/Microsoft.Dynamics.BusinessCentral.Development.Tools/15.0.17.43318-beta I get an error.

Depending on the method used I get an different error:

  • Using NuGet CLI, I get an error over a missing dependency "Microsoft.Dynamics.Nav.Xrm.Common"

.\nuget.exe install Microsoft.Dynamics.BusinessCentral.Development.Tools -outputDirectory . -PreRelease -directDownload

image `

`

  • Using dotnet tools I get an error about an invalid DotnetToolSettings.xml file

dotnet tool install Microsoft.Dynamics.BusinessCentral.Development.Tools --prerelease --global

image

Internal work item: AB#554312

PatrickSchiefer avatar Oct 09 '24 06:10 PatrickSchiefer

@SBalslev could you please take a look?

PatrickSchiefer avatar Oct 09 '24 06:10 PatrickSchiefer

@PatrickSchiefer Just released 15.0.17.63223-beta: https://www.nuget.org/packages/Microsoft.Dynamics.BusinessCentral.Development.Tools/15.0.17.63223-beta

Can you give that a spin?

SBalslev avatar Oct 14 '24 15:10 SBalslev

Seems issue still existing : Attempting to resolve dependencies for package 'Microsoft.Dynamics.BusinessCentral.Development.Tools.15.0.17.63223-beta' with DependencyBehavior 'Lowest' nuget.exe : Unable to resolve dependency 'Microsoft.Dynamics.Nav.Xrm.Common'. Source(s) used: 'nuget.org'.

Any idea of delay to solve it ?

YvesDesrumaux avatar Oct 30 '24 07:10 YvesDesrumaux

Let's try one more time :) 15.0.18.19684-beta

SBalslev avatar Nov 01 '24 08:11 SBalslev

Seems still error existing, xith same error : nuget.exe : Unable to resolve dependency 'Microsoft.Dynamics.Nav.Xrm.Common'. Source(s) used: 'nuget.org'.

YvesDesrumaux avatar Nov 04 '24 08:11 YvesDesrumaux

Still not working for me either, is this XRM Common package somewhere available?

PatrickSchiefer avatar Nov 06 '24 10:11 PatrickSchiefer

Any new about that issue ?

YvesDesrumaux avatar Dec 06 '24 17:12 YvesDesrumaux

Image Image

The tools have been split up into 4 packages. Tools, Tools.Osx, Tools.Linux and a Tools.Altpgen The last one is still marked as a dotnettool so it will fail installation until this afternoon when it will be reduced to a dependency.

SBalslev avatar Apr 11 '25 07:04 SBalslev

It is still not possible to add this nuget package to a c# project as a (dev) dependency (e.g. for easier development of analyzers). I can install it as a global tool, but I can't install it as a nuget package in my c# project because it doesn't find the dependent nuget package: "Microsoft.Dynamics.Nav.Xrm.Common"

I tried the Microsoft.Dynamics.BusinessCentral.Development.Tools and the Microsoft.Dynamics.BusinessCentral.Development.Tools.Altpgen package. Same errors.

dotnet add package Microsoft.Dynamics.BusinessCentral.Development.Tools.Altpgen --version 16.0.22.52049-beta
...
[NU1101: Unable to find package Microsoft.Dynamics.Nav.Xrm.Common. No packages exist with this id in source(s): C:\Program Files\dotnet\library-packs, local, Microsoft Visual Studio Offline Packages, nuget.org](error: NU1101: Unable to find package Microsoft.Dynamics.Nav.Xrm.Common. No packages exist with this id in source(s): C:\Program Files\dotnet\library-packs, local, Microsoft Visual Studio Offline Packages, nuget.org)
...

dannoe avatar May 10 '25 09:05 dannoe

Hi, I'm also having issues with this in latest 16.0.23.34358-beta version.

Noruka avatar Jun 10 '25 14:06 Noruka

@Noruka @dannoe the file is in the latest package - in order to add the dependency you must target net8.0-windows.

Image

You can also just unzip the nuget package and use the altpgen.exe tool there.

SBalslev avatar Jul 02 '25 07:07 SBalslev