473,657 Members | 2,667 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Partial Deployment- Comparing changed dlls

Dear All,
We are a company developing large scale software in .net Windows
Forms. We use the Updater Application for updating our clients. We
often send patches of our application. Our aim is to patch only those
dlls that have changed. We have a program that looks into VSS code to
check for changes in source code, but there is a limitation there, we
fall into trouble the following way:
1. We change a Object type in one.dll.
2. Since source of two.dll is not changed it is not shipped.
3. But in two.dll a function is accessing this Object.
4. So when the software is run we get a FieldNotFoundEx ception.

In the IL of that function it shows it is ldfld of the Object's
previous type.

When we compile we compile the whole source but send only the dlls
whose source has changed. Is there some automated way where I can
compare the IL code instead of the source code and send the changed
dlls? Please help.

Thanks and regards
Jack
Nov 16 '05 #1
3 1860

"Jack Wright" <su***@volcanom ail.com> wrote in message
news:8f******** *************** ***@posting.goo gle.com...
Dear All,
We are a company developing large scale software in .net Windows
Forms. We use the Updater Application for updating our clients. We
often send patches of our application. Our aim is to patch only those
dlls that have changed. We have a program that looks into VSS code to
check for changes in source code, but there is a limitation there, we
fall into trouble the following way:
1. We change a Object type in one.dll.
2. Since source of two.dll is not changed it is not shipped.
3. But in two.dll a function is accessing this Object.
4. So when the software is run we get a FieldNotFoundEx ception.

In the IL of that function it shows it is ldfld of the Object's
previous type.

When we compile we compile the whole source but send only the dlls
whose source has changed. Is there some automated way where I can
compare the IL code instead of the source code and send the changed
dlls? Please help.


Sounds like an interesting problem... You could use reflection to figure out
assembly dependencies (see Assembly.GetRef erencedAssembli es). When one.dll
changes, to be on the safe side, you'll want to ship two.dll and other
assemblies that depend on one.dll.

Regards,
Sami
Nov 16 '05 #2
Thanks Sami,
Sounds like an interesting problem... You could use reflection to figure out
assembly dependencies (see Assembly.GetRef erencedAssembli es). When one.dll
changes, to be on the safe side, you'll want to ship two.dll and other
assemblies that depend on one.dll.

But it is not soe simple...I only want to send two.dll if the older
one cannot work with the newer one.dll...I want to minimise the patch
sent...
One solution would be to get the IL code of older two.dll and compare
it with the newer two.dll and if there are obvious differences then
send two.dll along...fc is a good enough tool for doing this...but is
it the only way or are there brighter ideas...please help...

TALIA
Many regards,
Jack
Nov 16 '05 #3

"Jack Wright" <su***@volcanom ail.com> wrote in message
news:8f******** *************** ***@posting.goo gle.com...
Thanks Sami,
Sounds like an interesting problem... You could use reflection to figure
out
assembly dependencies (see Assembly.GetRef erencedAssembli es). When
one.dll
changes, to be on the safe side, you'll want to ship two.dll and other
assemblies that depend on one.dll.

But it is not soe simple...I only want to send two.dll if the older
one cannot work with the newer one.dll...I want to minimise the patch
sent...
One solution would be to get the IL code of older two.dll and compare
it with the newer two.dll and if there are obvious differences then
send two.dll along...fc is a good enough tool for doing this...but is
it the only way or are there brighter ideas...please help...


The problem is that it is untrivial to figure out which changes break
compatibility. If a field is removed from one.dll, that is of course a
compatibility-breaking change if two.dll uses to that field. Adding a method
to a class in one.dll might break things too if the component requires the
method to be called - it depends on the semantics of the class.

Analyzing IL would allow you to find structural breaking changes but it
sounds like a lot of work. I don't know your requirements but if I were
designing this sort of a system I'd aim for correctness and forget about
optimizing patch sizes, at least initially.

In the general case I can't really think of a good way to figure out
compatibility breaking changes other than perhaps using a unit-testing based
approach. Write a set of unit tests that excercise classes in two.dll. Run
the tests with old two.dll and new one.dll. If all the tests pass, then the
versions are "compatible ". Otherwise you know you'll need to ship two.dll
too.

Regards,
Sami


Nov 16 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

43
2633
by: nospam | last post by:
I got three (3) files (1) Untitled.aspx (2) Untitled.aspx.1.cs (3) Untitled.aspx.2.cs These three files must be used together to make file #1, Untitled.aspx, page work via J.I.T. when the User first hits Internet Explorer 6.0 on your browser.
9
2518
by: Gomaw Beoyr | last post by:
Two question about the "partial classes" (in the next wersion of ..NET). Question 1 ========== Will partial classes (in the next version of C#) have to be declared "partial" in ALL places. I.e. do we have to need to write:
7
1029
by: Adrian Parker | last post by:
In 2003, we have a usercontrol that we reference as a type i.e. we can pass the class around to functions to reference it. In 2005, the class is now partial and doesn't seem to let you reference it as a type anymore, is there a way around this ? Thanks Adrian
16
2637
by: pawel.pabich | last post by:
Hajo, I would like to have 2 my own partial classes. For example: Default.aspx.cs Default2.aspx.cs and they both will relate to Default.aspx page.
10
2429
by: ptass | last post by:
Hi In asp.net 2.0 an aspx files .cs file is a partial class and all works fine, however, I thought I’d be able to create another class file, call it a partial class and have that compile and load as a 3rd partial class. This would be handy so i can generate standard code into one of the partial classes, while having my custom code untouched
2
13843
by: Bill Nguyen | last post by:
I ran into this error trying to run an app from Publish.htm. I can't find what is wrong with the deployment. Thanks a million Bill -------- PLATFORM VERSION INFO
0
8315
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8734
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8508
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8608
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6172
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5633
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
2733
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1962
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1627
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.