I want a single file executable capable of being run by itself and no other dll's, etc.
I ran msbuild /t:Publish
No error messages, but result is not what I want. Result is that in the Debug folder an app.publish folder is created containing a setup file, an executable, manifest file, and a folder('Application Files') with another folder containing two files ending in .deploy and .manifest.
When I try to run the executable(not the setup application created), the following exceptions happen:
Unhandled Exeception: System.TypeInitializationException
System.IO.FileNotFoundException: could not load file or assembly library12(dll) or one of its dependencies
The above exceptions pop up briefly in a black screen and then disappear.
What I have tried:
I tried modifying the csproj to set PublishSingleFile and IncludeNativeLibrariesForSelfExtract to true
but to no avail. Thank you guys again!