I just finish my Project, How can export my project ?

I just finish my Project, How can export my project ?
5 Replies
hutoanhill
hutoanhill3mo ago
dont know the answer, but i bet people will what to know what IDE your using
The Fog from Human Resources
by publishing it $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 self-contained 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
The Fog from Human Resources
this is how youd create a single file from it if you use Visual Studio there is a dedicated tab for it
Jimmacle
Jimmacle3mo ago
it really depends what you mean by "export" your compiled program and any other needed files can be found in the bin folder what kind of application? do you need an installer? do you need to put it on a server?
Want results from more Discord servers?
Add your server