While upgrading Sitefinity versions in general has gotten easier over time, one of the MAJOR problems developers still face today even with the latest releases of Sitefinity is upgrading Sitefinity Web Application projects (especially when they are under source control).
The reason this remains a problem is because all of the Sitefinity Web Application project references are referring to the bin directory of the project.
Therefore, when you use the Sitefinity Project Manager, it appropriately updates the assemblies in the bin folder for you.
However, all of the Project References in the Sitefinity Web Application C# project file still refer to older assembly versions!
The problem originates from the fact that the specific version numbers are directly hardcoded into the .csproj file.
So, when you compile the application with these outdated assembly version numbers, the Sitefinity Web Application continues to think that it needs a particular assembly version to execute at runtime, causing innumerable problems for developers to resolve.
For example, you may have a reference like the following in your .csproj file:
Instead, you probably want to have something like the following in your .csproj file:
This change eliminates the direct assembly version dependency in the .csproj file as you noticed earlier and makes upgrades much more flexible.
If you are using a framework such as Sitefinity Feather which has available NuGet packages, then you will also want to make sure that you verify which version of Sitefinity Feather is compatible with your particular version of Sitefinity:
The update shown above for Sitefinity Feather works with Sitefinity v. .9.0, but if you are using an OLDER version of Sitefinity (such as Sitefinity v. 8.2), then you will need to ensure that you are choosing an appropriate version of the Sitefinity Feather assemblies that is compatible with your particular version (which is relatively easy to accomplish in Visual Studio 2015):
Once you have worked through all those hurdles in your Sitefinity Web Application project, hopefully you should be able to build your project/solution and compile a properly upgraded Sitefinity Web Application project!
NOTE: DO NOT REBUILD, just BUILD, since a REBUILD may wipe out all of the assemblies in the Sitefinity bin directory!!
Good luck with your Sitefinity upgrades!!
The reason this remains a problem is because all of the Sitefinity Web Application project references are referring to the bin directory of the project.
Therefore, when you use the Sitefinity Project Manager, it appropriately updates the assemblies in the bin folder for you.
However, all of the Project References in the Sitefinity Web Application C# project file still refer to older assembly versions!
The problem originates from the fact that the specific version numbers are directly hardcoded into the .csproj file.
So, when you compile the application with these outdated assembly version numbers, the Sitefinity Web Application continues to think that it needs a particular assembly version to execute at runtime, causing innumerable problems for developers to resolve.
For example, you may have a reference like the following in your .csproj file:
<Reference Include="Telerik.Sitefinity.Frontend, Version=1.3.350.0, Culture=neutral, PublicKeyToken=b28c218413bdf563, processorArchitecture=MSIL"> <HintPath>packages\Telerik.Sitefinity.Feather.Core.1.3.350.0\lib\net45\Telerik.Sitefinity.Frontend.dll</HintPath> <Private>True</Private> </Reference>
Instead, you probably want to have something like the following in your .csproj file:
<Reference Include="Telerik.Sitefinity.Frontend"> <HintPath>bin\Telerik.Sitefinity.Frontend.dll</HintPath> <Private>True</Private> </Reference>
This change eliminates the direct assembly version dependency in the .csproj file as you noticed earlier and makes upgrades much more flexible.
If you are using a framework such as Sitefinity Feather which has available NuGet packages, then you will also want to make sure that you verify which version of Sitefinity Feather is compatible with your particular version of Sitefinity:
The update shown above for Sitefinity Feather works with Sitefinity v. .9.0, but if you are using an OLDER version of Sitefinity (such as Sitefinity v. 8.2), then you will need to ensure that you are choosing an appropriate version of the Sitefinity Feather assemblies that is compatible with your particular version (which is relatively easy to accomplish in Visual Studio 2015):
Once you have worked through all those hurdles in your Sitefinity Web Application project, hopefully you should be able to build your project/solution and compile a properly upgraded Sitefinity Web Application project!
NOTE: DO NOT REBUILD, just BUILD, since a REBUILD may wipe out all of the assemblies in the Sitefinity bin directory!!
Good luck with your Sitefinity upgrades!!
Wow, happy to see this awesome post. I hope this think help any newbie for their awesome work and by the way thanks for share this awesomeness, i thought this was a pretty interesting read when it comes to this topic. Thank you..
ReplyDeleteArtificial Intelligence Course
I am sure it will help many people. Keep up the good work. It's very compelling and I enjoyed browsing the entire blog.
ReplyDeleteBusiness Analytics Course in Bangalore
I need to thank you for this very good read and i have bookmarked to check out new things from your post. Thank you very much for sharing such a useful article and will definitely saved and revisit your site.
ReplyDeleteData Science Course
Your site is truly cool and this is an extraordinary moving article and If it's not too much trouble share more like that. Thank You..
ReplyDeleteDigital Marketing Course in Hyderabad
I have voiced some of the posts on your website now, and I really like your blogging style. I added it to my list of favorite blogging sites and will be back soon ...
ReplyDeleteDigital Marketing Training in Bangalore
The Extraordinary blog went amazed by the content that they have developed in a very descriptive manner. This type of content surely ensures the participants explore themselves. Hope you deliver the same near the future as well. Gratitude to the blogger for the efforts.
ReplyDeleteMachine Learning Course in Bangalore
Upgrading Sitefinity Web Application Projects
ReplyDeleteVery informative post...
Sitefinity Development Company
Custom Sitefinity CMS Development Services
Thanks Your post is so cool and this is an extraordinary moving article and If it's not too much trouble share more like that.
ReplyDeleteDigital Marketing Course in Hyderabad
It is late to find this act. At least one should be familiar with the fact that such events exist. I agree with your blog and will come back to inspect it further in the future, so keep your performance going.
ReplyDeleteDigital Marketing Training in Bangalore
This is an informative and knowledgeable article. therefore, I would like to thank you for your effort in writing this article.
ReplyDeleteBest Digital Marketing Courses in Bangalore
ReplyDeleteExcellent effort to make this blog more wonderful and informative. The information shared was very useful.
Cloud Computing Course Fees in Bangalore
Happy to chat on your blog, I feel like I can't wait to read more reliable posts and think we all want to thank many blog posts to share with us.
ReplyDeleteData Science in Bangalore
Excellent post to make this blog more wonderful, attractive and cool stuff you have. Thank You.
ReplyDeleteData Science Course in India with Placements
You have done a great job and will definitely dig it and personally recommend to my friends. Thank You.
ReplyDeleteData Science Online Training
This is really nice which is really cool blog and you have really helped a lot of people who visit the blog and give them useful information.
ReplyDeleteData Science Training in Noida
ReplyDeleteThis is an informative and knowledgeable article. therefore, I would like to thank you for your effort in writing this article.
Data Science Course in Bangalore
I feel very grateful that I read this. It is very helpful and very informative and I really learned a lot from it, Keep posting new articles.
ReplyDeleteData Analytics Course in Ahmedabad
This is an informative and knowledgeable article. therefore, I would like to thank you for your effort in writing this article.
ReplyDeleteData Scientist Course in Lucknow
Really nice and interesting post. I was looking for this kind of information and enjoyed reading this one. Thanks for sharing.
ReplyDeleteData Science Training in Indore
Hi, This article is probably where I got the most useful information for my research. Do you know of any other websites on this topic?
ReplyDeleteData Analytics Course in Jalandhar
Really, this article is truly one of the best in article history. I am a collector of old "items" and sometimes read new items if I find them interesting. And this one that I found quite fascinating and should be part of my collection. Very good work!
ReplyDeleteData Scientist Training in Bangalore
Hello. I found your blog using msn. This is a very well written article. I'll be sure to bookmark it and come back for more useful information. Thanks for the post. I will definitely be back.
ReplyDeleteData Science Training in Bangalore
Nice post, you give readers a lot to think about and I appreciate that kind of writing.
ReplyDeleteData Science Course Fees
I have read your article, it is very informative and useful to me, I admire the valuable information you offer in your articles. Thanks for posting it ...
ReplyDeleteData Science Course in Durgapur