Solved

How to deploy JUST changed precompiled binaries to live ??

Posted on 2010-11-25
8
496 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: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
 

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
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

746 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now