Renaming .nupkg to .zip - nuget

We have recently changed our build process to output only .nupkg files and one of our clients doesn't like this idea.I have renamed the .nupkg files to .zip and I can access the files.
My question is... is it acceptable to rename the file extension or will it damage any of the files, compression isn't an issue, so it doesn't matter about that, we just need to be able to give them a .zip version.

No, the contents of a file are not changed when the filename is changed and your files in the .nupkg won't get damaged by renaming it to .zip.

Related

When I push a cpp file to the github repository then an exe file gets added. What can I do so that I don't get those exe files

Whenever I push a cpp file to my github repository an exe file gets added to the repository. I don't want that exe file.How to do that?
you want the file not be tracked across everyone's repositories create a pattern as below in .gitignore file. This file can either be in root directory of you application or a the directory you .cpp and .exe files are in.
*.exe
If you want .exe files to be ignored for only you. Then you can put above pattern in .git/info/exclude
Follow this link for more info:
https://www.atlassian.com/git/tutorials/saving-changes/gitignore

How to recover files from .gitignore

while uploading files to the repository in GitHub, I accidentally click to the button to ignore the files from the upload. Now these files are in a folder called '.gitignore'.
How can I recover these files?
I'm able to see and modify them, I just want to know how to upload them in the repository.
Thanks in advance
I think you misunderstand the concept of .gitignore "folder".
It is instead a text file, with the path of the ignored directories or files.
Consider the following .gitignore file.
foo/bar.txt
foobar/
This will tell git to ignore the directory foobar as well as the file foo/bar.txt, and therefore you won't be able add the files to a commit or push it to a remote repository.
But you can simply remove a file from the list of ignored files and directories by opening the .gitignore file, deleting the line with the corresponding file and saving the .gitignore file. You then should the be able to add the file to a commit and push it to a remote repository.
More information about .gitignore can be found here

Restore corrupted TFS files from $tf\ .gz files?

My hard disk had errors and I lost a number of files before they could be checked in. But I'm wondering if there's a way to look in the \$tf folder's .gz files to restore the files that were lost and not checked in? Any chance a diff version was saved in there that I can restore from?
But I'm wondering if there's a way to look in the \$tf folder's .gz files to restore the files that were lost and not checked in?
I am afraid you could not to restore the files based on the .gz files.
The .gz files are generated when mapping sources, which keeps a hash and some additional information on all file in the workspace so that it can do change tracking for Local Workspaces and quickly detect the changes in the files. But it does not contain source files. If you do not check the source files in the source control, TFS could not restore those files from the source.
To restore those files, you need to find a way to recover hard disk data.
Hope this helps.

There is no "zip download" button to download source in .zip on github

I want to download this source file in the zip here:
https://github.com/xdtianyu/android-4.2_r1/tree/master/packages/apps/SoundRecorder
But there is no Zip Download button. There is a Zip Download button in the root directory of the repository:
https://github.com/xdtianyu/android-4.2_r1
But I don't want to download the whole repository. How can I download that single project (specific subdirectory)?
I read this topic but still, I can't Download source as the zip file:
Download single files from GitHub
How to download source in ZIP format from GitHub?
You can't download a subdirectory from GitHub as a zip file.
Some options are to
download the full zip and manually extract the subdirectory that you want, or
use git with sparse checkouts instead of downloading as a zip file.
This approach does download the entire repository into the .git directory, but your working copy will only contain the files and directories that you want.
For more information on sparse checkouts have a look at this answer.
Use DownGit; you can download individual files or directories, and even create download-link for them-
You can also configure properties of the download-file. See here for detailed usage.
Disclaimer: I fell into the same problem as the question-asker, could not find any proper solution, so I created this tool for my own use, and later made it available for everyone.

Eclipse svn move/rename doesn't work on all-lowercase filenames?

I am renaming a series of .js files using Refactor -> Rename.
They all work except when I rename a file to an all-lowercase name (i.e. rename Calendar.js to calendar.js). I get this error:
move C:/Users/JohnDeer/workspace/MyApp/WebContent/scripts/ui/Calendar.js C:/Users/JohnDeer/workspace/MyApp/WebContent/scripts/ui/calendar.js
Path is not a working copy directory
svn: Path 'C:\Users\JohnDeer\workspace\MyApp\WebContent\scripts\ui\calendar.js' is not a directory
I checked the ui folder and there is a .svn folder in it.
I think the problem is that file names are not case sensitive in Windows. So the lowercase name registers as the original name and maybe when the source file is the same as the destination, the latter is understood as a directory.
As a workaround you can try to use a temporary intermediate file:
rename Calendar.js to tmp.js
then rename tmp.js to calendar.js
Another possibility is to rename the file in the repository by hand (this can be done using Eclipse's Repository Browsing View as well as from the command line) and then update the project.