Reference DLLs in ASP.NET without \Bin or GAC

后端 未结 5 590
天命终不由人
天命终不由人 2020-12-05 15:43

I have an ASP.NET project under source control (Subversion). For various reasons, I don\'t want to add the \\Bin directory or its contents to source control, so I have it sv

5条回答
  •  -上瘾入骨i
    2020-12-05 16:42

    Technically, in step 3 a little more happens. Visual Studio copies the DLL to your \Bin directory and adds a name.dll.refresh file that contains the path to the original DLL. With SourceSafe, the .refresh file is under version control, so that when you setup a new system and get the latest code from SourceSafe, Visual Studio can find and copy the DLL from the specified location. You should be able to put the .refresh file in svn and have everything work.

    Also, I generally create a \Common directory above my project directory, which is where I put the DLLs, and I include that directory in the solution (and source control), so that each version of my project in source control has the correct DLLs.

提交回复
热议问题