Questions tagged [self-contained]

Self-contained in programming can refer to a script, program or a library that is completely independent and contains everything necessary within its code.

Self-contained in programming can refer to a script, program or a library that is completely independent and contains everything necessary within its code. This is very useful in programming when creating libraries, as this makes them completely modular, and therefore easy to migrate from one project to another.

101 questions
3
votes
1 answer

Django equivalent to "rake rails:freeze:gems" and "rake gems:unpack"

Is there and equivalent in Django to Rails' freezing and unpacking mechanism to a vendor directory so that an application becomes self-contained?
hurikhan77
  • 5,881
  • 3
  • 32
  • 47
3
votes
0 answers

Gradle/JavaFX: self-contained application and editable config file?

I'm using gradle with the javafx-gradle plugin to produce a self-contained javafx application using the task "jfxDeploy". I have the following directory structure: |-- src | |-- main | |-- java | | \-- Main.java | …
JohnSmith
  • 33
  • 6
3
votes
2 answers

Packaging play project into jar / war file

Is there a way to package play project into self-contained jar / war file? (the only way I found was to use the stage task and then run the server with the start script)
user1768906
2
votes
1 answer

What is a self-contained mobile app?

I was asked to create a self-contained mobile (android) app. What do it means by self-contained app ?? Can it connect to a remote server/ database ? Can it use an internal SqlLite database on mobile? Are there any other restrictions/ conditions that…
Hari Gudigundla
  • 812
  • 10
  • 20
2
votes
1 answer

How to reduce the size of .exe when publish it to folder as single file

I have a very small project (WinForms, it contains 2 folders and 10 classes, simple windows for input) and I want to publish it to folder as single .exe file. When it is done the size of the file is 140MB. When I add "Trim unused assemblies" mark -…
user14943311
2
votes
0 answers

Running a self-contained exe without deps.json

I have a net5.0 app that's self-contained. I do not need the deps.json file since all of my dependencies exist already in the output folder so I removed the file with false. However, whenever I run my…
2
votes
1 answer

My .net core published executable gives a different directory path than when running the code

I created a dotnet core console that processes txt files. It needs to be located in the same folder as the txt files in order to work because it runs through all txt files, so defining its current directory is needed. When I run my solution in…
2
votes
1 answer

Can one extract images from pandoc's self-contained HTML files?

I have used pandoc with the option --self-contained to create HTML documents where images are embedded in the HTML code as base64. The image is included in the IMG tag like this (where I have replaced the long string of base64-characters with a…
torkildl
  • 168
  • 8
2
votes
1 answer

C# Dictionary recursion

I'm searching for a construct in c# where Dictionaries contain Dictionaries to count n. I want to put a list of Dictionaries into and it builds some kind of index. I want to call it like dic[key][key2][key3] where the value is object or a Dictionary…
Felix Arnold
  • 839
  • 7
  • 35
2
votes
1 answer

Can an ASP.NET Core v3.1 app really be self contained?

I have a server that currently hosts many .net core v2 services in IIS. I had a to make a new service. Normally I would just use whatever runtime the server has installed, but I thought, ".Net Core can deploy self contained applications, so I can…
Vaccano
  • 78,325
  • 149
  • 468
  • 850
2
votes
1 answer

Locating included assemblies in trimmed self-contained deployment

I'm learning C# and it's related stack and trying to build trimmed self-contained executable. The problem is in that some assemblies are not directly referenced and are implied to be used via Managed Extensibility Framework, thus trimmer doesn't…
Etki
  • 2,042
  • 2
  • 17
  • 40
2
votes
1 answer

DLL missing from 'self-contained' core deployment (asp net)

I was under the impression self-contained core deployments came with everything they needed as part of the build/release, but I've shipped the contents of my release folder to the target environment and I get the following error: An assembly…
user10058046
2
votes
1 answer

.NET Core Web API routes returning 404 only on Linux?

If I build my .NET Core app from the solution directory on my windows dev machine like so: dotnet publish --configuration Release --output \myproject --self-contained --runtime win7-x64 I can run this and hit my endpoint…
Jeremy Holovacs
  • 22,480
  • 33
  • 117
  • 254
2
votes
1 answer

Is it possible to customize the style of javafx native package installer?

I have a javafx application which I package it with javafx-maven-plugin (windows installer). I could also package it with ANT script. My question is, I could change the Icon of the installer. But is it possible to change the install wizard style?…
Maxi Wu
  • 1,274
  • 3
  • 20
  • 38
2
votes
0 answers

JavaFX : where to put portable database file for application

I am designing a JavaFX application with MS Access database for both Windows and Mac Platforms. My local friends suggests that I place the database file under "user.home" folder. Then, the database would be under "C:\Users \ {Username}" folder.…
M. Ko
  • 563
  • 6
  • 31