Reputation: 392
I have a solution and it have 2 project in it, Project-1 is web form application and Project-2 have some confidential methods like decode and encode methods. I want to let my junior developers access to Project-1 and use my Project-2 methods (which I reference before and add to my Project-1) but can't see inside Project-2 methods because I don't want them to see how I encode and decode string and numbers for security reason.
I tried to deny read access in Project2 security (like picture Project2 Security Page) but after that developers can't use any method from Project2 and they receive error.
Is there any solution I can do this because is really important to me my junior developers don't see my encode and decode method
Edit : I have to say I can't use web service for my Decode and Encode because this application is for a customer and he will use it on local network without internet access.
Upvotes: 0
Views: 97
Reputation: 31075
TFS can't achieve what you want. If you deny the Read permission for a file/folder, the user won't be able to see/use this file/folder.
You may consider managing your references via a package manager such as NuGet. Your senior developers can create and maintain the nuget package, while your junior developers only need to enable the package restore in their project.
Upvotes: 0
Reputation: 52280
Put the sensitive code in its own folder in source control
Modify the developer permissions on that folder. See this question and this documentation, which provides this step-by-step:
On the Visual Studio View menu, click Other Windows, and then click Source Control Explorer.
Right-click the folder or file for which you want to set permissions, and then click Properties.
In the Properties dialog box, click the Security tab.
In the Add users and groups area, select Team Foundation Server Group to set permissions for a Team Foundation Server group. Otherwise, select Windows user or group.
Click Add.
In the Users and Groups box of the Properties dialog box, select the user or group for which you want to set permissions.
In the Permission box, select either Allow or Deny for each permission.
Click OK to close the Properties dialog box.
Upvotes: 1