single-file

Deploy as single-file in .net5 with log4net throws exception for config-file

你说的曾经没有我的故事 提交于 2021-01-27 07:22:32
问题 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 log4net Program.cs static void Main(string[] args) { log4net.Config.XmlConfigurator.Configure(new FileInfo("log.config")); var logger = log4net.LogManager.GetLogger("TestLogger"); logger.Info("Hello World!"); } log.config (copy always) <?xml version="1.0

.NET 5 excludes some libraries from single file publication

て烟熏妆下的殇ゞ 提交于 2020-12-31 16:46:54
问题 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 compilation, e_sqlite3.dll is not included. Instead, in the output folder, it produces two files (excluding the pdb file): > e_sqlite3.dll > WpfApp1.exe 回答1: By reading documentation Single-file doesn't bundle native libraries by default. On Linux,

.NET 5 excludes some libraries from single file publication

拥有回忆 提交于 2020-12-31 16:42:30
问题 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 compilation, e_sqlite3.dll is not included. Instead, in the output folder, it produces two files (excluding the pdb file): > e_sqlite3.dll > WpfApp1.exe 回答1: By reading documentation Single-file doesn't bundle native libraries by default. On Linux,

.NET 5 excludes some libraries from single file publication

你离开我真会死。 提交于 2020-12-31 16:37:16
问题 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 compilation, e_sqlite3.dll is not included. Instead, in the output folder, it produces two files (excluding the pdb file): > e_sqlite3.dll > WpfApp1.exe 回答1: By reading documentation Single-file doesn't bundle native libraries by default. On Linux,

Mounting a single file from a Docker data volume in a Docker

吃可爱长大的小学妹 提交于 2019-12-19 19:42:07
问题 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 physical machine, e.g: docker run -v /usr/local/bin/docker:/usr/local/bin/docker Is there a way? 回答1: Is there a way always destination path/file doesn't exist in the container , if you've created a named volume and a bind to its directory (similar

Can I compile and debug (run) a single C++ file in Visual Studio 2012? (How to avoid creating too many projects)

橙三吉。 提交于 2019-12-03 05:03:01
问题 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 project every single time? For example, if I write a simple "Hello, World!" file and then decide to make something else that is really simple, can I avoid making a new project for each simple program? Is there any way to use Visual Studio 2012 just as

Mounting a single file from a Docker data volume in a Docker

只愿长相守 提交于 2019-12-01 17:22:18
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 physical machine, e.g: docker run -v /usr/local/bin/docker:/usr/local/bin/docker Is there a way? Is there a way always destination path/file doesn't exist in the container , if you've created a named volume and a bind to its directory (similar to deprecated volumes_from) docker run -v /var/lib/docker/volumes/my_volume/_data/MY_FILE.txt:/destination

How to retrieve a single file from a specific revision in Git?

不羁岁月 提交于 2019-11-25 23:50:29
问题 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, and it\'s 27cf8e84bb88e24ae4b4b3df2b77aab91a3735d8 . I need to see what did one file looks like and also save that to a file. I managed to see the file using gitk , but it doesn\'t have an option to save it. I tried with command-line tools, the closest I got was: git-show 27cf8e84bb88e24ae4b4b3df2b77aab91a3735d8 my_file.txt However, this command shows a diff and not the file