Questions tagged [single-file]
35 questions
1048
votes
12 answers
How to retrieve a single file from a specific revision in Git?
I have a Git repository and I'd like to see how some files looked a few months ago. I found the revision at that date; it's 27cf8e84bb88e24ae4b4b3df2b77aab91a3735d8. I need to see what one file looks like, and also save it as a ("new") file.
I…

Milan Babuškov
- 59,775
- 49
- 126
- 179
33
votes
7 answers
Can I compile and debug (run) a single C++ file in Visual Studio 2012? (How to avoid creating too many projects)
I'm learning C++ out of a book and using Visual Studio 2012. In order to follow the book's exercises, I need to make multiple .cpp files with the main() function inside them. Is there any way I can compile/debug my programs without making a new…

Sunjay Varma
- 5,007
- 6
- 34
- 51
10
votes
1 answer
Mounting a single file from a Docker data volume in a Docker
I'm trying to mount a single file from a Docker volume in a container when using "docker run".
I've been able to mount an entire volume as a directory, e.g:
docker run -v my_volume:/root/volume my_container
I've also mounted single files from the…

ateles
- 422
- 3
- 10
8
votes
1 answer
Deploy as single-file in .net5 with log4net throws exception for config-file
Trying to deploy a console-application written in .Net 5 with log4net as a single-file.
Running deployed application throws exception.
Steps to reproduce
dotnet new console --name TestConsole --language C# (make sure .net 5.0)
Install-Package…

McClint
- 83
- 1
- 5
6
votes
3 answers
RSync single (archive) file that changes every time
I am working on an open source backup utility that backs up files and transfers them to various external locations such as Amazon S3, Rackspace Cloud Files, Dropbox, and remote servers through FTP/SFTP/SCP protocols.
Now, I have received a feature…

Michael van Rooijen
- 6,683
- 5
- 37
- 33
6
votes
1 answer
C++: making a single file without includes
This might sound like a very weird question, but I do need this: I have a bunch of c++ header files (from some header-only libraries) and a single cpp file. What I'd like to do is generate a single cpp file that has no includes whatsoever.
Why? For…

Miguel
- 195
- 1
- 7
5
votes
1 answer
.NET 5 excludes some libraries from single file publication
I have a little problem with single file executable publish with .NET 5.
Infact, it does not include all libraries in the executable file, and produces multiple files.
In my example I'm using a library for SQLite (Microsoft.Data.Sqlite) and, after…

devpelux
- 2,492
- 3
- 18
- 38
3
votes
2 answers
R: display mode for single-file shiny app
When using two files (ui.R and server.R), one can change display mode with:
runApp("MyApp", display.mode = "showcase")
How can I set display mode to "showcase" for single-file shiny app?
Thx!

Ollaws
- 167
- 1
- 9
3
votes
2 answers
Single-file ASPX and LINQ
there's a CMS system and there's aspx page without backend file. I can add server code straight to the .aspx wrapped with