locked
Adding references to a class file checks out csproj file RRS feed

  • Question

  • Firstly let me describe the working behavior of TFS:

    1) Whenever we add any reference to class file(lets call it "sample.cs") csproj gets checked out automatically, we could see the changes made to the sample.cs file in pending changes of TFS but csproj file will not be visible until you save the csrproj file.

    Now coming to my problem,

    I am developing a tool which will only display the necessary details, rather than complete information (such as hint path and all..). To do that i have to save the csproj file manually then only i can run my tool.

    Is there any way i could skip the step of saving the csproj file.

    Any help would be appreciated.

    • Moved by CoolDadTx Friday, February 28, 2020 2:47 PM Not a C# question
    Friday, February 28, 2020 5:57 AM

All replies

  • Hi nkrb,

    Thank you for posting here.

    This question does not seem to be related to programming with C#, it seems to be a TFS question.

    So I suggest that you can ask this question in StackOverflow.

    The Visual C# forum discusses and asks questions about the C# programming language, IDE, libraries, samples, and tools.

    Best Regards,

    Timon


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Friday, February 28, 2020 7:25 AM
  • Thanks 

    Friday, February 28, 2020 7:41 AM
  • Hello,

    See the following post which may or may not work dependent on the version of TFS being used.

    https://stackoverflow.com/questions/1369442/how-can-i-exclude-a-specific-file-from-tfs-source-control


    Please remember to mark the replies as answers if they help and unmarked them if they provide no help, this will help others who are looking for solutions to the same or similar problem. Contact via my Twitter (Karen Payne) or Facebook (Karen Payne) via my MSDN profile but will not answer coding question on either.

    NuGet BaseConnectionLibrary for database connections.

    StackOverFlow
    profile for Karen Payne on Stack Exchange

    Friday, February 28, 2020 10:46 AM
  • 1) Whenever we add any reference to class file(lets call it "sample.cs") csproj gets checked out automatically, we could see the changes made to the sample.cs file in pending changes of TFS but csproj file will not be visible until you save the csrproj file.

    That's what TFS is suppose to is checkout the project file becuase you added a new class or added a reference to a DLL the project is using.

    You can always undo the checkout or exclude something from the check-in.

    Friday, February 28, 2020 2:22 PM