C
C#4w ago
LuxiPew

✅ my application in the assembly works fine on my PC, BUT

my application in the assembly works fine on my PC, but opens for a few seconds and closes if I try to run the exe file on another PC and no it's not because I forgot to set the action wait in the program I created a simple program and hello world with reading the line and it also immediately closes
21 Replies
LuxiPew
LuxiPewOP4w ago
my application in the assembly works fine on my PC, opens for a few seconds and closes if I try to run the exe file on another PC and no it's not because I forgot to set the action wait in the program I created a simple program and hello world with reading the line and it also immediately closes
Unknown User
Unknown User4w ago
Message Not Public
Sign In & Join Server To View
LuxiPew
LuxiPewOP4w ago
a code or exe file ?
Unknown User
Unknown User4w ago
Message Not Public
Sign In & Join Server To View
LuxiPew
LuxiPewOP4w ago
okey 1 sec
Unknown User
Unknown User4w ago
Message Not Public
Sign In & Join Server To View
LuxiPew
LuxiPewOP4w ago
GitHub
GitHub - LuxiPyw/weather-api
Contribute to LuxiPyw/weather-api development by creating an account on GitHub.
LuxiPew
LuxiPewOP4w ago
hey dude what's there?
Unknown User
Unknown User4w ago
Message Not Public
Sign In & Join Server To View
LuxiPew
LuxiPewOP4w ago
okey sorry
Unknown User
Unknown User4w ago
Message Not Public
Sign In & Join Server To View
LuxiPew
LuxiPewOP4w ago
No description
Unknown User
Unknown User4w ago
Message Not Public
Sign In & Join Server To View
LuxiPew
LuxiPewOP4w ago
and a try this
No description
Unknown User
Unknown User4w ago
Message Not Public
Sign In & Join Server To View
MODiX
MODiX4w ago
=> $singlefile
Unknown User
Unknown User4w ago
Message Not Public
Sign In & Join Server To View
MODiX
MODiX4w ago
dotnet publish -c Release -r <runtime identifier> -p:PublishSingleFile=true Use of -p:PublishSingleFile=true implies --self-contained true. Add --self-contained false to publish as runtime-dependent. -r RID and -p:PublishSingleFile=true can be moved to .csproj as the following properties:
<RuntimeIdentifier>RID</RuntimeIdentifier>
<PublishSingleFile>true</PublishSingleFile>
<RuntimeIdentifier>RID</RuntimeIdentifier>
<PublishSingleFile>true</PublishSingleFile>
but to target multiple RIDs, you have to use dotnet publish with the -r option for each RID. You can also add -p:IncludeNativeLibrariesForSelfExtract=true to include native libraries (like Common Language Runtime dlls) in the output executable, but be aware of drawbacks and consider using an installer framework instead of that property with PublishSingleFile. You might want to instead publish your application compiled Ahead Of Time to native code, see $nativeaot for examples. Single file publishing | Runtime Identifier (RID) catalog | dotnet publish
LuxiPew
LuxiPewOP4w ago
Thanks a lot dude!
Unknown User
Unknown User4w ago
Message Not Public
Sign In & Join Server To View
MODiX
MODiX4w ago
If you have no further questions, please use /close to mark the forum thread as answered
Want results from more Discord servers?
Add your server