C
C#2mo ago
Crunchy

Costura.Fody Help?

I need help
14 Replies
Crunchy
Crunchy2mo 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
Crunchy2mo ago
No description
Pobiega
Pobiega2mo ago
Going to Fody for that seems like a pretty big step have you tried just doing singlefile compilation?
Crunchy
Crunchy2mo ago
idk much on vsc and c# so im not sure how
Pobiega
Pobiega2mo ago
$singlefile
Jimmacle
Jimmacle2mo ago
$singlefile
MODiX
MODiX2mo 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
Jimmacle2mo ago
damn but yeah you don't need fody for something simple like this anymore
Crunchy
Crunchy2mo ago
thatsa lot of reading one second
Buddy
Buddy2mo ago
What are you making?
Crunchy
Crunchy2mo ago
A gui to customize / modify PC to make it better for me
Buddy
Buddy2mo ago
Okay. With dear imgui? Interesting
Crunchy
Crunchy2mo ago
seems to be the most user firendly one qt is complicated for me
Jimmacle
Jimmacle2mo 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