Update of version on a dependent assembly plugin package from PAC CLI vs Plugin Registration Tool (PRT) #1105
Unanswered
imranakram
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I've been trying to work out the possibility of implementing a clean ALM process on a plugin package. The idea is that we generate a new version which is assigned to the assembly during the build in the build pipeline.
However, the documentation states:
This restriction is also reflected in the Plugin Registration Tool (PRT), where attempting to update an existing plugin package with a higher version results in an error, as shown below:
![image](https://private-user-images.githubusercontent.com/13014005/401238798-2574303e-fabf-43da-971f-51b3a703bf03.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxMDUzOTksIm5iZiI6MTczOTEwNTA5OSwicGF0aCI6Ii8xMzAxNDAwNS80MDEyMzg3OTgtMjU3NDMwM2UtZmFiZi00M2RhLTk3MWYtNTFiM2E3MDNiZjAzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA5VDEyNDQ1OVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTBkNzcyNjY1ZmY4YTBlMWU5ZjgwMGFjODRiMGJkNDQ3OTY0ODY3ODUyOTE3NGJjNzM3YmRmZjQ2YzA2NTljMjUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.LLx5ycviAOi4pPJiFcNCdUsyJoMfNt-hbPQoL4x3nLg)
However, it appears that updating the contained assembly is allowed as long as the
.nupkg
has the same version number as the one already in the system. This seems counterintuitive since we would expect the plugin package version to match the version generated by the pipeline for better traceability.Interestingly, the version update works when using the
pac plugin push
command, but not when using PRT or the XrmToolBox PRT. This raises the question: why is the update allowed through thepac plugin push
command but not via PRT? It would be useful if the version update was supported in PRT so we could easily trace which build produced the plugin package running in the system.Additionally, one aspect that could be improved is the mandatory
--pluginId
parameter, which requires a GUID. Wouldn't it be more intuitive and convenient to use the plugin package's text identifier instead?To summarize:
pac plugin push
: Thepac plugin push
command could be improved by allowing the use of the plugin package's unique name instead of the GUID.Beta Was this translation helpful? Give feedback.
All reactions