Source control in CRM 2011,2013,2015
If you have any doubt in the post please post comments. I will try to solve your problem.
When you export solution it save as .zip file. It is very difficult to track the recent changes in the zip files.
The Solution Packager is a excellent tool to track the changes in source control. It simply convert zip file into multiple files(individual components files/folder). Add and submit these file to your source control.
Download CRM2015 SDK file,extract it and find "SolutionPackager" exe in {folder}\SDK\bin\SolutionPackager
Using the Solution Packager:
The .exe is a command line tool. It works with both managed and unmanaged solutions, and the parameters it takes depends on whether you are fragmenting the .zip file into folders/files or creating a .zip file.
From the command line, here is how you would extract the files/ folders from the .zip file:
Syntax:
SolutionPackager /action: Extract /zipfile: <location of unmanaged .zip file> /folder: <folder where the .zip is extracted to>
Example:
I have a solution file called PHRS_1_0_0_1.zip. I am going to extract in to D:\VSS\ folder.
Extract file from zip file:
SolutionPackager.exe /action: Extract /zipfile: D:\Solutions\PHRS_1_0_0_1.zip /folder: D:\VSS\
Pack file again and convert to zip file:
SolutionPackager.exe /action: Pack /zipfile: D:\VSS\Test.zip /folder: D:\VSS
Once you extract the zip file, submit those file in source control.If there is an updated version of the file to reconcile the conflict by communicating with the team member regarding the change. If there is no conflict, upload the latest files to Source Control.
If you have any doubt in the post please post comments. I will try to solve your problem.
When you export solution it save as .zip file. It is very difficult to track the recent changes in the zip files.
The Solution Packager is a excellent tool to track the changes in source control. It simply convert zip file into multiple files(individual components files/folder). Add and submit these file to your source control.
Download CRM2015 SDK file,extract it and find "SolutionPackager" exe in {folder}\SDK\bin\SolutionPackager
Using the Solution Packager:
The .exe is a command line tool. It works with both managed and unmanaged solutions, and the parameters it takes depends on whether you are fragmenting the .zip file into folders/files or creating a .zip file.
From the command line, here is how you would extract the files/ folders from the .zip file:
Syntax:
SolutionPackager /action: Extract /zipfile: <location of unmanaged .zip file> /folder: <folder where the .zip is extracted to>
Argument
|
Description
|
/action: {Extract|Pack}
|
The action to perform, this can be either: Extract a solution .zip file to a folder, or Pack a folder into a .zip file. |
/zipfile: <file path>
|
The path and name of a CRM Solution .zip file. When extracting this file must exist and will be read from. When packing this will be replaced. |
/folder: <folder path>
|
The path to a folder. When extracting this folder will be created and populated with component files. When packing this folder must already exist and contain previously extracted component files. |
I have a solution file called PHRS_1_0_0_1.zip. I am going to extract in to D:\VSS\ folder.
Extract file from zip file:
SolutionPackager.exe /action: Extract /zipfile: D:\Solutions\PHRS_1_0_0_1.zip /folder: D:\VSS\
Pack file again and convert to zip file:
SolutionPackager.exe /action: Pack /zipfile: D:\VSS\Test.zip /folder: D:\VSS
Once you extract the zip file, submit those file in source control.If there is an updated version of the file to reconcile the conflict by communicating with the team member regarding the change. If there is no conflict, upload the latest files to Source Control.
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.