Visual Studio 2015. Files not added to TFS

后端 未结 1 1191
逝去的感伤
逝去的感伤 2021-01-04 08:17

I\'m using Visual Studio 2015 update 3 with TFS hosted at visualstudio.com. When I add a C# class file to one of my projects in Visual Studio, it\'s not automatically added

1条回答
  •  隐瞒了意图╮
    2021-01-04 08:51

    The "lib" extension is the problem. Try renaming the project folder to something else, eg. "CoreLib".

    To reproduce this behavior / bug, try the following:

    1. Create a Test directory in a directory controlled by TFS
    2. Create a Test.Lib subdirectory in this directory.
    3. Add a file, test.cs, to Test.Lib. (Test\Test.Lib\test.cs)
    4. In Visual Studio's Source Control Explorer, try adding the new Test directory to source control. You'll see test.cs on the "Excluded items" tab.

    The "lib" extension is used by binary files, and these are ignored by Team Explorer by default. I haven't found an official list of filetypes anywhere, but other affected file types are dll, exe, obj and possibly others. You can include these files manually by right-clicking them and selecting "Include".

    0 讨论(0)
提交回复
热议问题