C
C#6mo ago
Deleted user

Costura.Fody Help?

I need help
14 Replies
Deleted user
Deleted userOP6mo 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....
Deleted user
Deleted userOP6mo ago
No description
Pobiega
Pobiega6mo ago
Going to Fody for that seems like a pretty big step have you tried just doing singlefile compilation?
Deleted user
Deleted userOP6mo ago
idk much on vsc and c# so im not sure how
Pobiega
Pobiega6mo ago
$singlefile
Jimmacle
Jimmacle6mo ago
$singlefile
MODiX
MODiX6mo 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
Jimmacle6mo ago
damn but yeah you don't need fody for something simple like this anymore
Deleted user
Deleted userOP6mo ago
thatsa lot of reading one second
Buddy
Buddy6mo ago
What are you making?
Deleted user
Deleted userOP6mo ago
A gui to customize / modify PC to make it better for me
Buddy
Buddy6mo ago
Okay. With dear imgui? Interesting
Deleted user
Deleted userOP6mo ago
seems to be the most user firendly one qt is complicated for me
Jimmacle
Jimmacle6mo ago
neither of those are common in C# normally you'd use something like windows forms, wpf, or avalonia

Did you find this page helpful?