question

DavidMcDivitt-2134 avatar image
0 Votes"
DavidMcDivitt-2134 asked DavidMcDivitt-2134 commented

vb desktop program makes small DLL along with EXE

VB .Net 5.0
I wrote a small text viewer program. It has one control that is a text box. It initiates with sub main and opens the form after parsing the command line. When it compiles it makes a small DLL file 19k in size along with the EXE 126k in size.

Usually when I make utility programs I need just the EXE to run it. But now because of the DLL I have to copy the DLL, too, and also keep up with that. Is this because of .Net 5.0? I usually use 4.x. I do not see 4.x as an option in the target framework dropdown. How can I combine the DLL with the EXE?

dotnet-visual-basic
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

Castorix31 avatar image
0 Votes"
Castorix31 answered DavidMcDivitt-2134 commented

You selected the Template for .NET Core (.NET 5 != .NET Framework)

The right .NET Framework Template :

146991-net-framework.jpg



net-framework.jpg (59.4 KiB)
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

It's been awhile since I made any new projects and .net 5.0 appears to have slipped in. It was difficult to create a new project with 4.x. But I did that, copied my files into it, and included.

It seems there would be a way to make the .net 5.0 app without the DLL, or include in the EXE.


0 Votes 0 ·