Friends using the VS development asp.net application should have encountered the following two minor problems: one is following the. refresh file under the DLL, and the other is that the bin directory cannot be checked in directly to VSS or TFS. For the. refresh file, it just feels dispensable at first, I don't know. Files that are not checked in by DLLs in the bin directory are dragged directly through VSS for a long time.
What exactly does the refresh file do?. Refresh is automatically joined after the introduction of a third party (or self-developed) library by vs Discovery. This file can be opened directly in VS, and its content is very simple, a path that introduces a DLL. If the source file of the refresh record is found to be changed at build time, it will be updated automatically if there is an update, and it will cause the Third-party library file not to be automatically updated if it finds that the file is useless or mistakenly deleted (see reference 1). So. Refresh is a record file that is used to automatically update the introduction of Third-party libraries.
Bin directory checked into VSS, pseudo proposition ... You can note that the Bin directory icon in VS Explorer is separate, and the bin directory is mainly introduced into the class library, because the development process often involves debugging, updates, etc., so the bin directory should not be checked in (see Reference 2/3).
How the library files should be planned. In the author's experience, a project is divided into at least two solutions (. Solution), one of them is a library solution such as LIB, and the other is an application project such as app. LIB projects such as model, BLL, Dal and so on, app decentralized applications such as Mainweb, WebService, Clienttools, a typical project directory organization as shown in the following figure. The point is to create a common DLL file output directory Binfactory,lib All items are library items, set the output directory to the Binfactory,app directory of the projects are introduced into the binfactory DLL file. When Lib is updated, the file is exported to Binfactory, and this time. The refresh file is more useful because there may be multiple projects (Mainweb, WebService, etc.) introduced into the library file, if manually updated to each project bin file is more cumbersome, With. Refresh will automatically complete this action, very convenient. The only time to check in the Binfactory file is for the team to share, and the bin file for each project will not be checked in. This is the perfect of the matter.
Reference 1: Impact of Dll.refresh files when referencing project class libraries
Reference 2: Details determine success or failure-about. Net. dll.refresh files
Reference 3:sourcesafe 2005 Unable to add files in Bin directory