I just finish my Project, How can export my project ?
I just finish my Project, How can export my project ?
5 Replies
dont know the answer, but i bet people will what to know what IDE your using
by publishing it
$singlefile
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: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
this is how youd create a single file from it
if you use Visual Studio there is a dedicated tab for it
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?