-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'pac solution clone' removing period symbols from plugin assemblies and causing cdsproj build failure #549
Comments
It looks like this is not supported scenario. You are doing solution clone which already has a plugin plus adding reference to the same plug in again. We can provide better error message at the time of add-reference call to indicate this is not supported but it will still error out. |
@petrochuk Let's take a scenario where the plugin assembly was initially registered with PRT, but later the decision was made to switch to ALM. In this case, the Dataverse solution already includes the Plugin assembly, while my repository contains a C# project for the plugin. To handle this situation, I intend to clone the solution first and then add a reference to my C# project. Please provide guidance on the best approach for handling this scenario. |
Describe the bug
I am on 1.23.4 version of pac cli.
We have a Dataverse solution with a 'Plugin Assembly' and the assembly name has a period (.) symbol (i.e., AutoCoE.Extensibility.Plugins).
I went ahead and added the plugin project (i.e., .csproj) to the cdsproj using 'pas solution add-reference' command.
Finally built the cdsproj and got following 'Build FAILED' error.
[error]C:\Users\VssAdministrator.nuget\packages\microsoft.powerapps.msbuild.solution\1.24.3\build\Microsoft.PowerApps.MSBuild.Solution.targets(137,5): Error : Cannot find required file '..\SolutionPackage\obj\Debug\Metadata\PluginAssemblies\AutoCoEExtensibilityPlugins-C8F4F22D-C74C-4D46-B206-8EEE6F084E4F\AutoCoEExtensibilityPlugins.dll'.
C:\Users\VssAdministrator.nuget\packages\microsoft.powerapps.msbuild.solution\1.24.3\build\Microsoft.PowerApps.MSBuild.Solution.targets(137,5): error : Cannot find required file '..\SolutionPackage\obj\Debug\Metadata\PluginAssemblies\AutoCoEExtensibilityPlugins-C8F4F22D-C74C-4D46-B206-8EEE6F084E4F\AutoCoEExtensibilityPlugins.dll'. [..\SolutionPackage\AutomationCoESatellite.cdsproj]
Done Building Project "D:\a\1\s\cat fusion\AutomationCoESatellite\SolutionPackage\AutomationCoESatellite.cdsproj" (build target(s)) -- FAILED.
A clear and concise description of what the bug is.
Please mention if it is reproduced using PAC CLI or PASopa. (Please mention the version number, if possible)
To Reproduce
Steps to reproduce the behavior:
Screenshots
If applicable, add screenshots of error messages to help explain your problem.
Additional context
'pac solution clone' works fine if the plugin assembly name does not have period symbols.
The text was updated successfully, but these errors were encountered: