views:

17

answers:

1

Is there any way to allow the user to view/change only some files/classes of a .NET project and compile the whole application on the local machine with TFS2010?

Without splitting the project in multiple DLLs, of course.

Thanks!

A: 

You can set permissions on folders or individual files in TFS.

But, that is going to take some effort to maintain (e.g. when a new file is added, which permissions should be applied), and would be easy to break.

Better to solve as a organisational/people problem, starting with: why do you want such a restriction?

Richard
@Richard: you want such restrictions if you hire temporary a contractor and don't want him/her to steal your IP.
devdept
If they have read access (e.g. to build and debug the project), then they can copy it. If you don't trust the contractor enough to follow contractual restrictions on IP, then you can't trust them not to hide something in the code.
Richard