Solved

How to deploy JUST changed precompiled binaries to live ??

Posted on 2010-11-25
8
501 Views
Last Modified: 2012-06-27
Hi All,

I need a way to deploy just changed binaries in a precompiled setup ie my deployed files as "fixed named and single page assemblies". Visual studio typically wants to republish everything which I find troublesome since with a big application one might deploy an old version of a programme unrelated to the upgrade

I have Dev, Test and Live source copies on my local machines plus live build and I have a test and live remote server. For ease I copy up source onto test and I can then use a tool like "beyond compare" to identify all my changed files and only copy those up. This works extremely well. The problem is that this approach does not work with precompiled dlls as on my live server. If I have a small number of changed dlls I can remember them, but this is hardly a robust process.

I have a feeling that one can only publish everything in VS 2008 and not deltas. Alternatively are there tools that can tell the difference between 2 binaries ie which is different excluding the binary header as these always seem to be different when you recompile. File size and timestamps are unreliable.

Thoughts, ideas please.

Cheers,

Sam
0
Comment
Question by:SamJolly
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 4
8 Comments
 
LVL 21

Expert Comment

by:Alfred1
ID: 34215033
You can try using Scheduled Tasks function in your server to automate the copy of dlls only into your web site.  

http://support.microsoft.com/kb/814596

http://www.iopus.com/guides/winscheduler.htm
0
 

Author Comment

by:SamJolly
ID: 34216517
Thanks for the reply.

However my question is not about scheduling. It is about how to identify which asp.net dlls have changed using criteria other than timestamp and filesize. Apologises if I did not make myself clear.

Thanks,

Sam
0
 
LVL 21

Assisted Solution

by:Alfred1
Alfred1 earned 500 total points
ID: 34217587
OK.  No worries.  I believe I misunderstood your question.  :-)

Anyway, have you tried using the Copy Web Site Tool?  It has a synchronization feature that might help you somehow achieve what you are trying to do.

Check the links below for details:

http://msdn.microsoft.com/en-us/library/1cc82atw.aspx

http://msdn.microsoft.com/en-us/library/c95809c0.aspx

http://msdn.microsoft.com/en-us/library/xay0wxbf.aspx

Regarding comparing two binaries, I use my own created tool to compare binaries but I haven't used it for deployment purposes.  I am providing links to some sites that deals with binary file comparison and where I got ideas in my own binary compare tool.

http://www.codeproject.com/KB/files/JTBinCompare.aspx

http://support.microsoft.com/kb/320346

I hope this helps.

0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:SamJolly
ID: 34217719
Thanks for the reply. I think the copy site tool just deals with source code so not appropriate since I am trying to compare 2 published folders for different binaries.

The file compare tool looks interesting, but I really need a folder compare utility for binaries rather than a file compare. Beyond Compare is excellent as far as it goes, but it does not deal with ASP.NET binaries.

Perhaps I may need to reapproach them with the problem.

Sam
0
 
LVL 21

Expert Comment

by:Alfred1
ID: 34217780
OK.  For folder or directory level compare, have you heard about Windiff.exe utility?

Check this out:

http://support.microsoft.com/kb/159214
0
 

Author Comment

by:SamJolly
ID: 34217833
this seems to compare the ascii file, not binary??

However having looked at this I found:

 DUMPBIN  /RAWDATA  MyApp.EXE > first.txt
 DUMPBIN  /RAWDATA  MyApp.EXE > second.txt

Which removes the date and timestamp so norm binary folder compare files can be used. Have not tried it yet. But it may be a way to go.

Thanks,

Sam
0
 
LVL 21

Accepted Solution

by:
Alfred1 earned 500 total points
ID: 34218192
Yes.  DumpBin would be one way.  In the link (Windiff one) I provided, there are suggestions in there to compare binary files and folders such as "comp" command.  I am listing an excerpt from the example in the link I provided:

comp C:\Winnt\System32\*.dll \\DifferentComputerName\C$\Winnt\System32\*.dll
0
 

Author Comment

by:SamJolly
ID: 34377016
Hi Alfred,

Sorry to be away. Been busy. I thought I would close this issue and award you the points.

However I may come back to this issue.

Thanks,

Sam
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

617 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question