Reputation: 43
I moved from from VS15 to VS19 with a new laptop, and my new project is a single Windows Forms project that will go on the client's server to pull metrics, stats, and some other info and generate an output file they send back. The requirement is for it to be a single EXE.
However, with all my code in one project, and no dependencies outside .NET itself, I'm getting [application].exe and [application].dll. This is not acceptable, and I cannot find an option that disables this.
Does anyone know where this is, or do I have to go back to VS 2015?
Thanks.
Upvotes: 0
Views: 700
Reputation: 16464
This is the new normal for .NET Core / .NET 5: the .exe is a wrapper that starts the .NET run time, and all your application code is in the .dll.
You have two options:
/p:IncludeNativeLibrariesInSingleFile=true /p:IncludeNativeLibrariesForSelfExtract=true
to force the native runtime dlls to be included in the .exe file.Upvotes: 1