Click here to Skip to main content
15,885,985 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Created an small test app for dotnet 5.0. The file in test works fine!

When moveing the exefile to an empty folder the exe doesn't work

The publish works fine but instead of having 1 file A have 11.

Working with latest vs 2019

My files[^]

What I have tried:

Followed the steps in Trim self-contained applications - .NET | Microsoft Docs[^]
Posted
Updated 14-Jun-21 4:50am
v2

Start by checking which build you did: Debug can generate files than Release for example.

Then look at the files you create: DLL, PDB, and XML triplets (or DLL and PDB pairs) are almost certainly packages you reference (whether you meant to or not).
.CONFIG holds your application settings, EXE and PDB are your app.

PDB files hold the debug info, XML holds Intellisense data for items where you documented them with a "triple comment" indicator:
VB
''' <summary>
''' Returns the name of the code.
''' </summary>
Function MyFucntionName() As ReturnType
 
Share this answer
 
Comments
JR212 14-Jun-21 1:06am    
My publish is an release. The test ofcourse is debug.
EXE and PDB are your app. how can 2 files be "single file app"
In .NET 5, "single-file" apps are only single files on Linux; on Windows and MacOS, additional files are required.

Announcing .NET 5.0 | .NET Blog[^]

This should be resolved in .NET 6. However, some native binaries and WPF dependencies will still require additional files.

Single file application - .NET | Microsoft Docs[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900