Hey this was able to be done a while before .net 5. you did need .net installed on the computer however. Single command line to run from command prompt for visual studio developer dotnet publish -r win-x64 -p:PublishSingleFile=True --self-contained false
This is awesome! A question though: what would the tag be for adding an image into the single exe file in the command window? (if this is where you could do such)
It generates 3 files "Setup.exe", "appname.application" and the same folder as you "Application Files" but never generates the exe "appname.exe".... If I'm not mistaken, I followed the steps to the letter, I don't understand why it doesn't work for me :(
Bobby, how will the course help after you get hired? Does it help with transitioning from junior to mid-senior level developer? Sorry for the simple q's. Im completely new.
Our platform will continue to add new ways to build applications. For example this fall we will add React and Blazor to the platform. In Jan 2022. We will release the .net 6 versions of our apps and the new .Net Maui! This is used to build cross platform applications from IOS, Android to native Desktop apps! So as you grow you can come to use to learn new things that help you as your career progresses.
help, ive used visual studio for a while now, i just created a new program and i try to publish it but its forcing me to do it online?? and people have to use disc / download? i cant make an EXE?
It works fine with a console application, but it doesnt work in a wpf project. The error message says, that it need a "RuntimeIdentifier". How can i solve this problem?
I think, i solved this problem: I have to write: dotnet publish -r win-x64 /p:PublishSingleFile=true /p:IncludeNativeLibrariesForSelfExtract=true /p:RuntimeIdentifiers=win-x64 --output "C:\Temporary\RealSingleFileDeploy"
Don't know why but i don't get the same "publish" wizard as yours. Completely different and lacking almost all the features shown here. Super frustrating. I'm using .NET Framework for my app instead of .NET Core, and am on VS 2022
Yes. .net is cross platform. You have to choose your target os during the build. .net 6 released later this year will make cross platform desktop apps a reality as well.
"Hello World!" - 60 MB... Good xD)
For future reference:
*dotnet publish -r win-x64 /p:PublishSingleFile=true /p:IncludeNativeLibrariesForSelfExtract=true /p:PublishTrimmed=true --output "C:\yourFolderPathHere"*
and I love you for that
I can't wait for this self-paced course to drop so I can get after it!
The real shane is back
Hey this was able to be done a while before .net 5. you did need .net installed on the computer however.
Single command line to run from command prompt for visual studio developer
dotnet publish -r win-x64 -p:PublishSingleFile=True --self-contained false
Yeah with .net Core it was possible. The final version we showed gives you everything you need to run the app.
with this version does it also increase the file size a lot ?
I remember using Thinstall 15 years ago to do this. Glad MS is catching on.
Bruh I just noticed the two framed Marvel comic front cover poster in the background.. noice!! 😄
Thanks for noticing. I love Marvel!
This is awesome! A question though: what would the tag be for adding an image into the single exe file in the command window? (if this is where you could do such)
It generates 3 files "Setup.exe", "appname.application" and the same folder as you "Application Files" but never generates the exe "appname.exe".... If I'm not mistaken, I followed the steps to the letter, I don't understand why it doesn't work for me :(
Thx for this easy sigle build guide
I just had this question today. 🤣
Thank you, for sharing the knowledge.
Glad it was helpful!
Nice video! Love it 👌
How do we have the exact same desktop wallpaper? My coding career must be on a good trajectory
How to publish single-file x64 windows forms?
Bobby, how will the course help after you get hired? Does it help with transitioning from junior to mid-senior level developer? Sorry for the simple q's. Im completely new.
Our platform will continue to add new ways to build applications. For example this fall we will add React and Blazor to the platform. In Jan 2022. We will release the .net 6 versions of our apps and the new .Net Maui! This is used to build cross platform applications from IOS, Android to native Desktop apps! So as you grow you can come to use to learn new things that help you as your career progresses.
@@CoderFoundry excellent! Thank you and everyone at CF! Looking forward to a new career!
How to do this, a framework-independent publication but with a smaller size?
help, ive used visual studio for a while now,
i just created a new program and i try to publish it but its forcing me to do it online?? and people have to use disc / download?
i cant make an EXE?
Thanks for "publishing" this ;D
I hope it helped
thank you so much
2022 it's not working :(
my lord
Danke!
Thanks for the Super Thanks! Much appreciated ❤
Jason!
Jason is awesome.
It works fine with a console application, but it doesnt work in a wpf project. The error message says, that it need a "RuntimeIdentifier". How can i solve this problem?
I think, i solved this problem: I have to write: dotnet publish -r win-x64 /p:PublishSingleFile=true /p:IncludeNativeLibrariesForSelfExtract=true /p:RuntimeIdentifiers=win-x64 --output "C:\Temporary\RealSingleFileDeploy"
Don't know why but i don't get the same "publish" wizard as yours. Completely different and lacking almost all the features shown here. Super frustrating. I'm using .NET Framework for my app instead of .NET Core, and am on VS 2022
Pretty sure it's the framework version.
@@CoderFoundry what is your frmwork version?
can we do this with wpf with sql server as a database?
can this single file exe be able to run, on other os where dotnet runtime is not installed?
Yes. .net is cross platform. You have to choose your target os during the build. .net 6 released later this year will make cross platform desktop apps a reality as well.
Awesome! Can you do the same for a Windows Forms application?
also a 3MB file goes to 150MB, is that normal ??? it is a windows forms application.
Yes if it contains pictures or embedded ui
@@Saleh07BR I figured out it was dotnet. If u set self contained to false then it relys on OS for the dotnet stuff
@@paulsonhanel6369 weird
This single file is not platform independent.
does anyone know how to do this with a service-based database?
error "Specify a project or solution file"
tanx mean
Glad it helped