Devin Gleason Lambert
Devin Gleason Lambert

Reputation: 1730

Ignore from TFS but include in project

I have spent the last week trying to get my TFS Branch / VSO / Azure Release Branch Continous Deployment setup, but have failed miserably. Right now I am just trying to get CD working with out branching, I have it pointed at my solution but I am falling over myself on the obj and bin folder. If I exclude the bin folder from the project it complains because it cant build the project. I can't get tfignore to work, if I change the folder it still tracks the changes.

I have a folder structure of:

\Dev\Web\Umbraco Master Solution\Umbraco.Extensions\bin
\Dev\Web\Umbraco Master Solution\Umbraco.Extensions\obj
\Dev\Web\.tfignore

my tfignore includes the lines:

\Umbraco Master Solution\Umbraco.Extensions\bin
\Umbraco Master Solution\Umbraco.Extensions\obj

I'm not really sure where to go from here.

Upvotes: 0

Views: 267

Answers (2)

M. Tovbin
M. Tovbin

Reputation: 547

I am assuming you would like to check-in the Bin of the project you are referencing. when you set up your build, you have to select a configuration to build. Make sure that the configuration you are building has the project you are referencing set to Build.

I agree with chief7 that it's a bad idea to check in your bin folder.

Upvotes: 0

chief7
chief7

Reputation: 14393

It is almost always a bad idea to checkin your bin folder. If the build fails when you exclude it, that likely means you have a DLL that is referenced from the bin (also not good). You should use Nuget packages where possible for your dependencies. Its easy to make your own if needed. Or you can place the DLLs you need to reference in a different folder at the root of your solution and referenced those instead.

Upvotes: 1

Related Questions