This project is read-only.

"Copy Assembly" Action Issue

Aug 5, 2014 at 7:15 PM
I have installed "SPALM.SPSF.4.1.3.2705_VS2012" version on VS 2012 (11.0.50727.1RTMREL) and have created new SharePoint 2013 project. Post this I right clicked on the desired project and selected "Copy Assembly" action but it does not work and output window also does not shows any sign of error. All I am getting is below output for "SharePoint Software Factory". Looks like somehow the GAC deployment step is skipped. Could someone please help me with this

*** Check selected projects if rebuild is required ***
Check project 'Components' if rebuild is required
*** Starting Quick Deploy of assemblies ***
*** Recycling app pools for all servers ***
*** Recycling all applicatin pools ***
Recycle application pool DefaultAppPool...
Recycle application pool ASP.NET v4.0...
Recycle application pool ASP.NET v4.0 Classic...
Recycle application pool Classic .NET AppPool...
Recycle application pool SharePoint Web Services Root...
Recycle application pool SecurityTokenServiceApplicationPool...
Recycle application pool 2bbcbd42c0c84ae6b0b1414063215bcf...
Recycle application pool SharePoint Central Administration v4...
Recycle application pool TestLab - 9010...
*** Send ping to all servers ***
*** Quick Deploy finished, 0 successful, 0 failed ***
Aug 7, 2014 at 8:55 AM
Has your project at least one .cs file?
If not there is no assembly to copy.

Also have you built the project at least once before you want to copy the assembly?
Usually SPSF is building it itself, but if it has been never built at least once before this will not work.
Aug 8, 2014 at 6:55 PM
Thanks for your reply. Yes I have one .cs file in my project.. If I did the typical right click deploy then I do see assembly file in GAC. But when I try to "Copy Assembly" there I am not getting expected result also instead of recycling specific app pool it recycles the all. I having no problem in using "Copy to SharePoint Hive" though

I have attached my VS 2012 project to the link below
http://prosares2.azurewebsites.net/SharePointProjectTest2.zip

And the output

*** Starting Quick Deploy ***
Copying C:\Projects\SharePointProjectTest2\SharePointProjectTest2\Layouts\SharePointProjectTest2\Some Test File.txt
*** Quick Deploy finished: 1 successfully (1 overwrites), 0 failed ***

*** Check selected projects if rebuild is required ***
Check project 'SharePointProjectTest2' if rebuild is required
*** Starting Quick Deploy of assemblies ***
*** Recycling app pools for all servers ***
*** Recycling all applicatin pools ***
Recycle application pool DefaultAppPool...
Recycle application pool ASP.NET v4.0...
Recycle application pool ASP.NET v4.0 Classic...
Recycle application pool Classic .NET AppPool...
Recycle application pool SharePoint Web Services Root...
Recycle application pool SecurityTokenServiceApplicationPool...
Recycle application pool 2bbcbd42c0c84ae6b0b1414063215bcf...
Recycle application pool SharePoint Central Administration v4...
Recycle application pool TestLab - 9010...
Recycle application pool SharePoint - 12999...
Recycle application pool SharePoint - 9999...
*** Send ping to all servers ***
*** Quick Deploy finished, 0 successful, 0 failed ***

Thanks for your help again
Aug 9, 2014 at 6:21 PM
To add further in troubleshooting this, I was able to debug the "SPALM.SPSF.Library, Version=2.0.0.0 " library with the help of Reflector. Here I found that "internal static List<Project> GetSelectedDeploymentProjects(DTE service)" method from "SPALM.SPSF.Library.Helpers" class return blank array. Because it get's blank array from "private static void AddDeploymentProjects(Project project, List<Project> projects)" method as "if (project.Object is SolutionFolder)" and "else if (IsCustomizationProject(project))" both returns false.

Any help in this will be really appreciated..