title | author | image | tags | |||
---|---|---|---|---|---|---|
Installing a patch in sensenet |
iviczl |
../img/posts/fix.jpg |
|
sensenet moved to GitHub in small parts. These parts are also maintainable, so need patches. Here is the first one, let's see what this means for developers.
The Services component was the first to dwell on GitHub therefore it is quite reasonable to receive the first patch as well. It contains bugfixes and a single new feature.
Although this post was written at the time of the first patch, the process will be very similar in case of subsequent patches in other components as well.
The following conditions indicate that your sensenet have to be upgraded with the patch:
- you have an installed sensenet 7.0.0 site
- you want an in place upgrade, which means you want to get the latest version without dropping the database.
If one of these criteria is not fit for your situation you will not need to install this patch. In a development and test environment where you reinstall and reindex the whole database every time, you can use the updated NuGet packages and continue working.
You can find the patch on the release page's Assets paragraph, where you can download it from.
Download the patch (a zip file indicating the base and the target versions) from the release page. In order to install it, you need to follow the next few steps:
-
Stop the site.
-
Execute the patch (using SnAdmin). This will raise the version number of this component in the database and make the necessary modifications.
snadmin patch.zip
-
Update the SenseNet.Services and SenseNet.Services.Install packages from NuGet in Visual Studio so that next time you build your solution you get the new libraries.
After you have finished the process you can start the site again and will find your Services component upgraded to the latest version. To make sure this happened, you may check the VersionInfo page on the Root console in Content Explorer.