You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PLEASE DO NOT INCLUDE ANY PASSWORDS OR TOKENS IN YOUR ISSUE!!!
Describe the issue
when using New-BcNuGetPackage, and the app.json file contains a dependency to an appsource app.
The created .nuget package will contain
When using the generated nuget package in another project as dependency with the paket tool, it gives an error for not finding the dependency on the provided feeds.
Scripts used to create container and cause the issue
but... IMO normal nuget packages should have normal dependencies (not symbols) and symbols nuget packages should have symbols dependencies.
In BcContainerHelper - all dependencies are handled using AppId only - not sure whether paket and other tools can do the same - but in the end - this is how Business Central works.
@DevHarmonize
I agree that symbol package should have dependency on symbol packages only and full package only on full packages.
For the tools like Paket and Nuget, when creating list of dependencies to download, it must be decided first, if you want to download symbols only or full packages. Based on that, the dependency names must be correctly created/resolved. When having dependency on AppSource app, you can download symbol packages and use the MS public feed for the packages. Then you can use them to compile your app. But if you need to deploy the packages to environment, you need full packages, thus you will need to have access to some feed including the full packages of the AppSource apps. This must be provided by the publisher.
It means, everytime you need first to decide if you need full or symbols packages. Based on that different sources and package names will be used. Never mix both.
The issue is, not every publisher has a feed. So I am resorting to the MSAppsource feed.
With info of Freddy that I can use the dependencyIdTemplate parameter, I can get around my issue.
I understand it's not the correct way, but for now it is the only way when I don't have a publisher feed, or they don't have a download portal that I can use to create my own packages?
We don't intend to use our packages for publishing, only to compile - the resulting app of the compile action can be used to publish no?
PLEASE DO NOT INCLUDE ANY PASSWORDS OR TOKENS IN YOUR ISSUE!!!
Describe the issue
when using New-BcNuGetPackage, and the app.json file contains a dependency to an appsource app.
The created .nuget package will contain
while the microsoft feed for appsource symbols
https://dynamicssmb2.visualstudio.com/DynamicsBCPublicFeeds/_artifacts/feed/AppSourceSymbols
publishes packages with the following format
PUBLISHER.appname.symbols.c660d68a-f693-46df-b383-96c8769e2634
When using the generated nuget package in another project as dependency with the paket tool, it gives an error for not finding the dependency on the provided feeds.
Scripts used to create container and cause the issue
Full output of scripts
Could you add a parameter to New-BcNuGetPackage that uses Get-BcNuGetPackageId to buid the package ID, that would add .symbols to the name of the packageIDtemplate?
https://github.com/microsoft/navcontainerhelper/blob/main/NuGet/New-BcNuGetPackage.ps1
I tried with adding .symbols to the name of the dependency in app.json but the . gets stripped by $nname = [nuGetFeed]::Normalize($name) :)
thanks!
The text was updated successfully, but these errors were encountered: