Problems with Visual Studio 2008. DLL

Ok, so I have VS 2008 and SVN. When I rebuild everything, the heap of my .dll will disappear from the bin folder.

I have a .dll in the library folder and where I refer to them.

When I go to publish the application, the publication fails, I think they are connected. When I reload my web.config (change something and save), this error will disappear. However, the publication still failed.

When I go to the folder and update svn, they all return, but then everything happens again.

Thanks.

+4
source share
5 answers

I assume that in the “Bin” folder you mean the build place where Visual Studio builds the executable version of your application.

As a rule, I found that making manual changes to the Bin folder is a good way to face the “new world of pain”. My problems were gone as soon as I started letting Visual Studio do what he wanted with the directory, and I left it alone.

If you have DLL links that link to your project, mark them as “Copy local” (select them in the solution explorer, configure them in the “Properties” panel), and Visual Studio will provide them for you to copy.

Note: since the Bin directory is managed by Visual Studio and is fully playable, I suggest that it (and it was not a member of Obj) not be under source control.

+4
source

You need to specify "Copy local" in your links, this will copy them from the library folder to the bin directory. Normally you should only store one copy of the DLL in Source Control (in the library folder). If you have the source of the bin folder, you may run into problems creating it.

+2
source

The build procedure seems to delete the contents of your bin directory during assembly.

I don’t understand where you say that you refer to them from the library folder, and they also exist in the bin directory.

Your posting may be unsuccessful for other reasons - it’s most useful to post errors.

Updating SVN returns files to the latest version, so if you do not have a file, the latest version will be the one that exists in your repository.

What you need to check:

  • You are probably getting errors in your build, it looks like the DLL is actually derived from other projects in your solution, so you should check if they are built correctly or if they are displayed in a different directory of your bin folder.

  • Your subversion repository should probably not have any binary or intermediate files like dll, lib, exe, suo, ncb and some others, but they are the main ones.

  • Post more details here - due to the sound, it seems you can ignore errors that you did not post here.

0
source

I saw this before when using Rebuild - I fixed it by marking these reference dlls as ReadOnly in my Explorer attributes.

Yes, it hacked, but it kept VS paws from my DLLs!

0
source

You probably have a default website and not a web application project.

0
source

All Articles