C
C#3mo ago
Crunchy

Costura.Fody Help?

I need help
14 Replies
Crunchy
CrunchyOP3mo ago
so i want my app to be exe only and they dont neeed these other files but it seems likeit isnt working i rebuilt it etc....
Crunchy
CrunchyOP3mo ago
No description
Pobiega
Pobiega3mo ago
Going to Fody for that seems like a pretty big step have you tried just doing singlefile compilation?
Crunchy
CrunchyOP3mo ago
idk much on vsc and c# so im not sure how
Pobiega
Pobiega3mo ago
$singlefile
Jimmacle
Jimmacle3mo ago
$singlefile
MODiX
MODiX3mo 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 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
Jimmacle
Jimmacle3mo ago
damn but yeah you don't need fody for something simple like this anymore
Crunchy
CrunchyOP3mo ago
thatsa lot of reading one second
Buddy
Buddy3mo ago
What are you making?
Crunchy
CrunchyOP3mo ago
A gui to customize / modify PC to make it better for me
Buddy
Buddy3mo ago
Okay. With dear imgui? Interesting
Crunchy
CrunchyOP3mo ago
seems to be the most user firendly one qt is complicated for me
Jimmacle
Jimmacle3mo ago
neither of those are common in C# normally you'd use something like windows forms, wpf, or avalonia
Want results from more Discord servers?
Add your server