EntLib 5.0 , TFS and .Refresh Files

Topics: General discussion
Feb 14, 2011 at 11:50 PM
Edited Feb 14, 2011 at 11:53 PM

Hello All,

I'm migrating one website from framework 2 to 4, so the enterprise libraries from version 2 to 5. But I've been struggling these days with one issue related TFS and EntLib 5.0, and the so infamous .Refresh Files. 


the webiste used  the version 2 of the entlib, with this version I just added the references to the web site and these  .DLL and the .Refresh files appeared on the bin folder, that was okay.

There was a common issue about if any developer builds the website, VS automatically checks out the file(adding a lock), So at the time I just removed the .refresh file from the bin folder and source control, that used to fix the issue, because it seems that VS was using the "refresh" file to build, instead the DLL.

Now with this version there is a strange behavior: when i add the reference for the EntLib 5 to the website,  TFS only adds the ".refresh" file, ignoring the dll. Now when a developer builds VS checks out the file, but i cannot remove the ".refresh" files because then the website won't recognize the reference.

I say "strange" behavior, because I got other assemblies and the reference is over directly the assembly not to the ".refresh" file, like for this case for EntLibs.

This probably be a noob, reference question, so any tip can be helpful about something i'm missing.


Project type: Website (not WAP) 

Framework: 4.0


TFS: 10 standard.


Thanks in advanced for all the help!!!

Feb 15, 2011 at 5:51 AM

I tried to reproduce your scenario by adding an entlib assembly references into a web app but unfortunately the .dll file has been added in the bin folder (not only the .refresh file). Have you tried manually copy and paste the assembly in your web app bin folder?

Gino Terrado
Global Technologies and Solutions
Avanade, Inc.

Feb 15, 2011 at 7:07 AM
Edited Feb 15, 2011 at 2:35 PM

hey Gino,

I appreciate your quick reply. some points I will like to add to my  my case:

1)The assembly and the refresh files are  added into the bin folder like you mentioned, but the .refresh file is the only file added to the source control.(in TFS), so when a developer builds the application(some how these are checked out), where on my opinion it shouldn't modified ergo checked out.

2)the entlibs assemblies i set them on a specific folder to avoid to install the pack, so its not taken from the gac. (we used to manage this way with the old entlib v2.0)

3)I tried to open the solution file with notepad, since is a web site project(it does not contain its own project file), and it only has the references for the other  projects but not for the "third party assemblies" like entlibs. As you may noticed in "projectReferences" there is no track of any assembly that its not from the solution.


Project("{E24C65DC-7377-472B-9ABA-BC803B73C61A}") = "Atomic", "Atomic", "{706E6663-0A7C-4779-91DC-66A40F98CA39}"
	ProjectSection(WebsiteProperties) = preProject
		SccProjectName = "SAK"
		SccAuxPath = "SAK"
		SccLocalPath = "SAK"
		SccProvider = "SAK"
		TargetFrameworkMoniker = ".NETFramework,Version%3Dv4.0"
		ProjectReferences = "{93129D80-C875-4316-86A8-50C4D6219D12}|FrameWork.dll;{741CB729-8606-436D-9856-042009543A1E}|
		Debug.AspNetCompiler.VirtualPath = "/Atomic"
		Debug.AspNetCompiler.PhysicalPath = "Atomic\"
		Debug.AspNetCompiler.TargetPath = "PrecompiledWeb\Atomic\"
		Debug.AspNetCompiler.Updateable = "true"
		Debug.AspNetCompiler.ForceOverwrite = "true"
		Debug.AspNetCompiler.FixedNames = "false"
		Debug.AspNetCompiler.Debug = "True"
		Release.AspNetCompiler.VirtualPath = "/Atomic"
		Release.AspNetCompiler.PhysicalPath = "Atomic\"
		Release.AspNetCompiler.TargetPath = "PrecompiledWeb\Atomic\"
		Release.AspNetCompiler.Updateable = "true"
		Release.AspNetCompiler.ForceOverwrite = "true"
		Release.AspNetCompiler.FixedNames = "false"
		Release.AspNetCompiler.Debug = "False"
		VWDPort = "51713"
		DefaultWebSiteLanguage = "Visual C#"

So i was wondering where is this reference saved?, probably if I manually modify that can get the right.

I appreciate thanks alot
Feb 15, 2011 at 8:29 AM

What I was missing earlier is that I did not try to check-in in TFS. Now that I have succesfully reproduced your problem I agree that once you check-in those entlib assemblies, only the .refresh file will be checked-in. =)

So what I did to be able to check-in ONLY the entlib assemblies is by manually adding the assemblies in my web app bin folder thru Source Control Explorer and then checked-in. Hope this helps. 

Gino Terrado
Global Technologies and Solutions
Avanade, Inc.

Feb 15, 2011 at 2:54 PM
Edited Feb 15, 2011 at 2:56 PM

Hey Gino,

thanks again for your reply. I'm happy you could reproduce the issue.

I opened the .refresh file and this is what it contains:





So I'm wondering in two things:


1)where is saved in the project, the external references?. I mean i got itextsharp assembly and this one, TFS didn't add the .refresh file (i think it was not even created). See image below and from here it takes me to the second point.

2)what does it activate to "check out" the reference everytime i try to build, since the issue is that i think it shouldn't check out the file just because i'm building.(i know this is not a entlib issue per se)




Once again I appreciate your time and knowledge

Feb 16, 2011 at 2:01 AM

Since we're not the best person to answer this question, I'll refer you to the Team Foundation Server forum where you might be able to get the exact answer you're looking for.  But what Gino suggested is what we usually do, we check in the assemblies we require in the source control and from there, we add reference to those assemblies.  That doesn't give us the .refresh files.


Sarah Urmeneta
Global Technologies and Solutions
Avanade, Inc.