Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How to deploy JUST changed precompiled binaries to live ??

Posted on 2010-11-25
8
Medium Priority
?
506 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
  • 4
  • 4
8 Comments
 
LVL 21

Expert Comment

by:Alfred A.
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:Alfred A.
Alfred A. earned 2000 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
Learn Veeam advantages over legacy backup

Every day, more and more legacy backup customers switch to Veeam. Technologies designed for the client-server era cannot restore any IT service running in the hybrid cloud within seconds. Learn top Veeam advantages over legacy backup and get Veeam for the price of your renewal

 

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:Alfred A.
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:
Alfred A. earned 2000 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
Suggested Courses

926 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