CRM 2011 Visual Studio Template does not publish changes through deploy context menu command
-
venerdì 8 giugno 2012 07:52
Hi, I work with CRM VS Template Solution - i notice that when I run deploy command from VS Context Menu files from solutions are uploaded to Dynamics CRM 2011 server but they still stays not published which is not what documentation says.
here is log from msbuild
one building target "_CheckForInvalidConfigurationAndPlatform" in project "CrmPackage.csproj".
Target "BeforeDeploy" in file "C:\Program Files (x86)\MSBuild\Microsoft\CRM\Microsoft.CrmDeveloperTools.CrmClient.targets" from project "c:\users\dian\documents\visual studio 2010\Projects\CrmVSSolution2\CrmVSSolution2\CrmPackage\CrmPackage.csproj" (target "Deploy" depends on it):
Done building target "BeforeDeploy" in project "CrmPackage.csproj".
Target "PreDeployEvent" in file "C:\Program Files (x86)\MSBuild\Microsoft\CRM\Microsoft.CrmDeveloperTools.CrmClient.targets" from project "c:\users\dian\documents\visual studio 2010\Projects\CrmVSSolution2\CrmVSSolution2\CrmPackage\CrmPackage.csproj" (target "Deploy" depends on it):
Done building target "PreDeployEvent" in project "CrmPackage.csproj".
Target "SolutionDeploy" skipped, due to false condition; ('@(CRMSolution)' != '') was evaluated as ('' != '').
Target "PluginsAndWorkflowsDeploy" in file "C:\Program Files (x86)\MSBuild\Microsoft\CRM\Microsoft.CrmDeveloperTools.CrmClient.targets" from project "c:\users\dian\documents\visual studio 2010\Projects\CrmVSSolution2\CrmVSSolution2\CrmPackage\CrmPackage.csproj" (target "Deploy" depends on it):
Task "Message"
WorkingFolder: bin\Debug\
Done executing task "Message".
Using "RegisterPlugin" task from assembly "C:\Program Files (x86)\MSBuild\Microsoft\CRM\Microsoft.CrmDeveloperTools.CrmClient.dll".
Task "RegisterPlugin"
Loading registration information
Successfully loaded registration information
Initializing CRM Service proxy. Scheme: http:, Discovery Server: kronos-bkp, Port:5555, Organization: Kronos, Solution: googleMapViewer
Registering Plugins & Workflows
Registering Assembly: CrmVSSolution2.Plugins, , 1.0.0.0, D3-1A-1C-E2-B1-33-FA-96
Updating Plugin Assembly: b59831c0-31b1-e111-bdc6-00221576f8bd
Updated Plugin Assembly: b59831c0-31b1-e111-bdc6-00221576f8bd
Registering Assembly: CrmVSSolution2.Workflow, , 1.0.0.0, D3-1A-1C-E2-B1-33-FA-96
Updating Plugin Assembly: 27c074f3-31b1-e111-bdc6-00221576f8bd
Updated Plugin Assembly: 27c074f3-31b1-e111-bdc6-00221576f8bd
Saving registration information
Successfully saved registration information
Done executing task "RegisterPlugin".
Done building target "PluginsAndWorkflowsDeploy" in project "CrmPackage.csproj".
Target "_GetSilverlightApplications" in file "C:\Program Files (x86)\MSBuild\Microsoft\CRM\Microsoft.CrmDeveloperTools.CrmClient.targets" from project "c:\users\dian\documents\visual studio 2010\Projects\CrmVSSolution2\CrmVSSolution2\CrmPackage\CrmPackage.csproj" (target "GetXapOutputFiles" depends on it):
Done building target "_GetSilverlightApplications" in project "CrmPackage.csproj".
Target "GetXapOutputFiles" in file "C:\Program Files (x86)\MSBuild\Microsoft\CRM\Microsoft.CrmDeveloperTools.CrmClient.targets" from project "c:\users\dian\documents\visual studio 2010\Projects\CrmVSSolution2\CrmVSSolution2\CrmPackage\CrmPackage.csproj" (target "GetWebResourcesFromReferences" depends on it):
Task "MSBuild"
Global Properties:
BuildingSolutionFile=false
Project "SilverlightApplication.csproj" (GetXapOutputFile target(s)):
Building with tools version "4.0".
Target "_CheckForInvalidConfigurationAndPlatform" skipped. Previously built successfully.
Target "GetXapOutputFile" skipped. Previously built successfully.
Done building project "SilverlightApplication.csproj".
Done executing task "MSBuild".
Done building target "GetXapOutputFiles" in project "CrmPackage.csproj".
Target "_GetSilverlightApplications" skipped. Previously built successfully.
Target "GetWebResourcesFromReferences" in file "C:\Program Files (x86)\MSBuild\Microsoft\CRM\Microsoft.CrmDeveloperTools.CrmClient.targets" from project "c:\users\dian\documents\visual studio 2010\Projects\CrmVSSolution2\CrmVSSolution2\CrmPackage\CrmPackage.csproj" (target "WebResourcesDeploy" depends on it):
Done building target "GetWebResourcesFromReferences" in project "CrmPackage.csproj".
Target "WebResourcesDeploy" in file "C:\Program Files (x86)\MSBuild\Microsoft\CRM\Microsoft.CrmDeveloperTools.CrmClient.targets" from project "c:\users\dian\documents\visual studio 2010\Projects\CrmVSSolution2\CrmVSSolution2\CrmPackage\CrmPackage.csproj" (target "Deploy" depends on it):
Using "AddWebResource" task from assembly "C:\Program Files (x86)\MSBuild\Microsoft\CRM\Microsoft.CrmDeveloperTools.CrmClient.dll".
Task "AddWebResource"
Initializing CRM Service proxy. Scheme: http:, Discovery Server: kronos-bkp, Port:5555, Organization: Kronos, Solution: googleMapViewer
Deploying Web Resources
Updating web resource: 2ac074f3-31b1-e111-bdc6-00221576f8bd with file: [c:\users\dian\documents\visual studio 2010\Projects\CrmVSSolution2\CrmVSSolution2\CrmPackage\WebResources\Web Page (HTML)\HTMLPage1.htm]
Updating web resource: 2dc074f3-31b1-e111-bdc6-00221576f8bd with file: [c:\users\dian\documents\visual studio 2010\Projects\CrmVSSolution2\CrmVSSolution2\SilverlightApplication\Bin\Debug\SilverlightApplication.xap]
Successfully deployed Web Resources
Done executing task "AddWebResource".
Done building target "WebResourcesDeploy" in project "CrmPackage.csproj".
Target "XamlWorkflowDeploy" in file "C:\Program Files (x86)\MSBuild\Microsoft\CRM\Microsoft.CrmDeveloperTools.CrmClient.targets" from project "c:\users\dian\documents\visual studio 2010\Projects\CrmVSSolution2\CrmVSSolution2\CrmPackage\CrmPackage.csproj" (target "Deploy" depends on it):
Task "Message"
WorkingFolder: bin\Debug\
Done executing task "Message".
Using "AddXamlWorkflow" task from assembly "C:\Program Files (x86)\MSBuild\Microsoft\CRM\Microsoft.CrmDeveloperTools.CrmClient.dll".
Task "AddXamlWorkflow"
Initializing CRM Service proxy. Scheme: http:, Discovery Server: kronos-bkp, Port:5555, Organization: Kronos, Solution: googleMapViewer
Loading registration information
Successfully loaded registration information
Deploying workflows
Successfully deployed workflows
Saving registration information
Successfully saved registration information
Done executing task "AddXamlWorkflow".
Done building target "XamlWorkflowDeploy" in project "CrmPackage.csproj".
Target "SolutionExport" in file "C:\Program Files (x86)\MSBuild\Microsoft\CRM\Microsoft.CrmDeveloperTools.CrmClient.targets" from project "c:\users\dian\documents\visual studio 2010\Projects\CrmVSSolution2\CrmVSSolution2\CrmPackage\CrmPackage.csproj" (target "Deploy" depends on it):
Using "ExportSolution" task from assembly "C:\Program Files (x86)\MSBuild\Microsoft\CRM\Microsoft.CrmDeveloperTools.CrmClient.dll".
Task "ExportSolution"
Initializing CRM Service proxy. Scheme: http:, Discovery Server: kronos-bkp, Port:5555, Organization: Kronos, Solution: googleMapViewer
Exporting solution: googleMapViewer
Writing solution to file bin\Debug\googleMapViewer.zip
Done executing task "ExportSolution".
Done building target "SolutionExport" in project "CrmPackage.csproj".
========== Build: 5 succeeded or up-to-date, 0 failed, 0 skipped ==========
========== Deploy: 1 succeeded, 0 failed, 0 skipped ==========I investigate that bold target is responsible for publishing solution as well
My question is how to setup this variable @(CRMSolution) so it will be not empty?
- Modificato dian.mushkov venerdì 8 giugno 2012 07:53
- Modificato dian.mushkov mercoledì 13 giugno 2012 09:44
Tutte le risposte
-
mercoledì 13 giugno 2012 09:46
I found what is missing - following must be present in .cproj file
with this - deploy command publish changes to CRM - which is what I want
<ItemGroup>
<CRMSolution Include="$(OutputPath)solution.zip">
<DisplayName>ssss</DisplayName>
<UniqueName>sss</UniqueName>
</CRMSolution>
</ItemGroup>- Contrassegnato come risposta dian.mushkov mercoledì 13 giugno 2012 09:47
-
sabato 29 settembre 2012 13:30
Hi,
I am developing a plugin deployment tool, if any of you have any idea on the process of deploying using msbuild (replicating VS 2010 deploy command) will be much helpful.
Thanks
Ram
Thanks Ram
-
domenica 30 settembre 2012 19:29
Hi,
You can ask me anything you want. I will share my experience.