C
C#4mo ago
Deleted user

Costura.Fody Help?

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