GIVE-ME-CHICKEN
GIVE-ME-CHICKEN

Reputation: 1269

How do I get all dll files within the bin folder to build successfully onto another server via TFS?

I have just started using the Build functionality within TFS and I can't see all my dlls being uploaded to the server. I have tried looking online but have failed to find a solution.

So there is a specific dll that has been added to the bin folder in a ASP.NET application and has been referenced and checked in. After I 'Queue New Build' within Team Explorer, it completes successfully.

So when I run the website on the server, it complains that it can't find that dll. And when I access the server and look into IIS Manager, I can see that the dll I have added is not located in the bin folder.

How do I get this to appear there via TFS build?

Upvotes: 0

Views: 1087

Answers (1)

GIVE-ME-CHICKEN
GIVE-ME-CHICKEN

Reputation: 1269

I solved the problem by these steps:

  1. Adding the dll file to the bin folder locally.

  2. When viewing the dll in Solution Explorer, second click it and then select Include in Project (this is what I never did).

  3. Second click the References folder and browse to the dll in the bin folder. (not sure if this part was essential, but I did it anyway).

  4. Make sure it builds.

  5. Check into TFS.

  6. View Team Explorer > Builds

  7. Second click the build you want to run, and select Queue New Build, then Queue.

After running successfully, I checked the the _PublishedWebsites folder to see if the bin was included. It was. And then I ran the website on the server and WALLA! It worked.

Upvotes: 1

Related Questions