Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is a dll.refresh file in ASP.Net?

Tags:

asp.net

In our ASP.Net web project we seem to have some .refresh files associated with some of the 3rd party Dlls we're using. Any idea what they are and how/when they are created?

like image 821
Jackson Pope Avatar asked Nov 03 '10 16:11

Jackson Pope


People also ask

What does .refresh file mean?

Refresh is a command that reloads the contents of a window or Web page with the most current data. For example, a window may list files stored within a folder, but may not track their location in real-time.

How do I reload a DLL file?

Type "regsvr32 <filename. dll>" at the command prompt, followed by "Enter." This will register your new DLL file or re-register the existing file. Note that you may need to reboot your computer for the changes to take effect.

How do I delete a DLL in Visual Studio?

Open Solution explorer, expand references and remove all unwanted dlls.


2 Answers

These files give the path to the DLL in question to tell Visual Studio where to find it (you can check this if you open them in a text editor). They will be created each time you add a new reference to the project.

They normally appear when you are using a project type that does not create a standard Visual Studio project file, as normally paths to referenced DLLs would go in there.

like image 74
HullCitySteve Avatar answered Nov 07 '22 09:11

HullCitySteve


From here:

In an ASP.NET project, adding a file-based reference will add a .refresh file in the Bin folder. When the project is under source control, this file is then added to source control. *.dll.refresh files that litter the bin directory. Every time you add an external reference, you'll find a dll.refresh file right next to it. These dll.refresh files are an exception to the rule, and they should go into source control. Its the only way your web project will know where its references live.

like image 34
SharpUrBrain Avatar answered Nov 07 '22 08:11

SharpUrBrain