.tfignore Office temporary files - tfs

I'm having trouble ignoring the temporary files created by MS-Office, especially the ones from Excel.
The file is generated when you open some Excel file which is under version control and starts with ~$. It will instant be added to the included changes.
To prevent this I want to exclude this files using .tfignore but it does not work.
I added ~*.xlsx to my .tfignore file. But as mentioned it does not work.
Anybody out there who can help me?

~$* works just fine. Thanks to #YanSklyarenko

Related

Manually re-compress an unzipped system.iopackage to a working Excel file

System.IO.Packaging is easy to work with because the resulting files are ZIPped folders, so you can simply rename the file to .zip and then open it. I do this with XLSX files to see how they are built.
Unfortunately, the reverse is not true; if you re-compress the folder and rename it .XLSX, Excel with say it has unreadable content. This is true even if the file is unchanged. If you simply rename, extract all, recompress, rename, the resulting file does not work.
Poking about inside, it seems the format of the file is not a canonical zip, header information is missing?
Anyone know an easy trick to recompress these files in Explorer? It would be nice to be able to test changes.

Convert Jira issue files into CSV

After screwing up with our server, we somehow fixed our project in Jira. But we've lost newest issues and some settings.
We now have files of this issues (folder with issue number->thumbs folder with attachments and two files of unknown extension)
I've searched how to convert these files into CSV in order to import it via Jira itself, but couldn't find anything yet.
Maybe there is someone who can help me?
Nvm, it was a folder with only attachment files. Nothing about issue itself.

tfignore exclude file path containing a space not working

In my project I have a WCF service reference. The service reference generates some metadata files that have an extension .datasource. I want to ignore/exclude in the tfignore all those files that end with this extension (.datasource) in the folder that contains the service reference.
For some reason VS2017 still shows in my pending changes all the excluded files with the extension .datasource. However, what is strange is that all other files other than this extension do get ignored/excluded. There is one thing of interest though that for the .datasource exclude rule that I have in tfignore, the path consists of a folder/directory that has a space in its name.
Here is that rule in tfignore:
My FolderName/Web.datasource
Is the space in the rule causing the issues? or is it something else?
This .tfignore file will not affect with those files already in source control. You need to remove them from source control first.
Besides if those files already in the pending changes before you add your .tfigonre file in source control. You can try below solution:
If the changes are "still" in pending changes, first create a backup
copy, then make an Undo on them. Close VS, restore the backup copies
and then it should work.
Since .tfignore is similar to .gitignore, if there are space in the middle of folder name, such as My FolderName/Web.datasource, give a try with below format:
My\ FolderName/Web.datasource
For more detail info of .tfignore file rules please refer the official tutorial.

Xcode .gitignore files within directories

I am looking to .gitignore my plist file found within a subdirectory within my project. When I ignore individual files at the root level where .gitignore is located I have no problems with the exclusion, but when I try to exclude files within the a subdirectory I can't seem set up the proper way to exclude this and my file still appears. I think what is throwing me off the most is the way that my Xcode projects appear in my finder compared to my Xcode program. In Xcode, my .plist appears within a Supporting Files folder. Once would assume that this would mean my gitignore request would be /app-name/Supporting Files/Info.plist, but in the finder, there is no Supporting Files folder, just Info.plist.
Any advice as to what I should do?
Should my .gitignore look like:
facebook-login-template/Info.plist
or
/facebook-login-template/Supporting Files/Info.plist
or should it be something else?
I think you are looking for this:
*Info.plist
If you only want to avoid the one inside "facebook-login-template", it should work with
facebook-login-template/Info.plist
but remember you have to reset the file on git if you've already tracked it.

Is it possible to Add .pch File in project?

I Download Project for learning purpose. But in this project i got error that is display in MY Screen Shot . i know that Prefix headers are compiled and stored in a cache, and then automatically included in every file during compilation. This can speed up compilation, and lets you include a file without adding an import statement to every file using it. They are not required, and actually slow compilation whenever you change them.
Screenshot
My Question is that is it possible in my case to add .pch file or not ??? if possible then please explain it.
Thanks in Advance.
The screenshot shows that you do not have the pch file added to the physical folder or it is removed somehow from there even though it is added to the project. You need to add that file again and build to remove this error. You can remove the reference from project before doing that and add it as a new file to this project once you have added it in your physical folder.
A red file name in project as shown in screenshot normally represents a missing file from the project folder structure.

Resources