Reputation: 1269
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
Reputation: 1269
I solved the problem by these steps:
Adding the dll file to the bin folder locally.
When viewing the dll in Solution Explorer, second click it and then select Include in Project (this is what I never did).
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).
Make sure it builds.
Check into TFS.
View Team Explorer > Builds
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