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
0
votes
2 answers

JsonConvert.DeserializeObjects does not work with trim unused code publish setting

The method JsonConvert.DeserializeObjects works when "Trim unused code" publish setting is off. When I turn this setting on I get: Newtonsoft.Json.JsonSerializationException: Unable to find a constructor to use for type MyNamespace.MyObject. A…
Alex
  • 4,885
  • 3
  • 19
  • 39
0
votes
0 answers

Self contained html with quarto and plots

I want to create a self-contained html from a quarto (rmarkdown) notebook. Whenever I include plots, the notebook stops being self-contained. I feel like I am missing one option but I cant find it. In addition to the option "self-contained" I also…
bartleby
  • 107
  • 1
  • 5
0
votes
0 answers

how to keep a web worker self-contained

I built a website that relies on frequently requesting and displaying data from a rest-api using fetch(). After I was done with the hardest part of the work I found that my site doesn't refresh like intended on my iPhone. First I thought the reason…
0
votes
0 answers

Can not create a standalone EXE with all files needed inside using WinUI3

I am developing a WinUI3 application. I installed the latest Visual Studio Community 2022 and WinUI3 (Windows SDK) from the Visual Studio installer and am using Template Studio download from 2 weeks ago. I have a couple of issues but I will explain…
0
votes
0 answers

How to allow external process to launch my ASP.NET exe file

UPDATED QUESTION I just deployed a self-contained solution to test my web app in an offline computer. When I go to the destination folder then double click on the executable I see the terminal window displaying that the ports http://locahost:5000 is…
user2529011
  • 705
  • 3
  • 11
  • 21
0
votes
0 answers

Why is .NET6 self-containing app too slow?

I have app in .NET6, my deployment manager needs them as a self-contained. So, I have changed YAML build command to following: - task: DotNetCoreCLI@2 displayName: Publish service inputs: command: publish projects: .csproj …
0
votes
1 answer

How to reduce the .exe size of a program in C#

I am trying to make a single file executable in C#. The program does not have alot of code, yet the output is around 50mb even when I am using PublishTrimmed. Is there a way I can decrease the size of this? Thanks. Configuration: Debug | Any…
catlover1200
  • 21
  • 1
  • 3
0
votes
1 answer

Is it possible to create a platform independent self-contained single file app by using .NET 5?

I have just read an article about Self-Contained Single file apps in .NET 5. It's a kind of deployment option which allows me to create a single file which consists of: Native executable launcher .NET runtime .NET libraries {your_app} +…
0
votes
0 answers

How to pass arguments to self-contained .NET Core console app on Debian

I built self-contained .NET Core console app on Debian, but I want to pass some arguments on startup. For example ./myapp --value, something like this. Problem is, in string[] args nothing is appearing on Debian. On Windows it's working normally. If…
GhostVolume
  • 81
  • 1
  • 7
0
votes
0 answers

how can I build/deploy a self-contained .netcore app without access to nuget.org

I am building a .netcore app and want to deploy it as self-contained app. I don't have access to nuget server for my build agent. But when I build it using the dotnet publish line below, I see dotnet.exe trying to get the nuget package…
0
votes
2 answers

Azure DevOps: publish self-contained .net Core app with Chocolatey

I need to create a self-contained .net core (3.1 in my case) app and to pack & publish using chocolatey so it can be installed and used. I'm using Azure DevOps and have a feed on my own where I'm supposed to publish the chocolatey package. The…
FEST
  • 813
  • 2
  • 14
  • 37
0
votes
1 answer

Self-Contained Chrome for Selenium Testing

I would like to know if there is any way to do testing on Chrome without actually having to install it (eg. running on machines without Chrome). I tried using PhantomJS but it did not really work. In other words I would like to embed Chrome in my…
0
votes
1 answer

Reporting integration composition

I have an architecture based on several Self-Contained Systems (Microservices, if you want), each one of them owning a given set of data. We would like to implement a reporting database (with near-realtime updates) by integrating all of the systems…
0
votes
0 answers

Self restart self contained single file dotnet core console app

Does anyone know a way or if it's possible to have a self contained single file dotnet core 3.1 console application to self restart? I've done this before in other console applications using the code below and it's worked, however it doesn't work…
0
votes
1 answer

.NET 4.8 not creating a self-contained file for Linux

I have a a little .NET Core console application that I would like to make a self-contained file of. Not only that, I would also like to create a self-contained file that will run on CentOS. The issue I am having is when I run dotnet publish -r…