Question: I am using C# having come from a Java background - I have an exception but it does not tell me the line number - Just the method name.

Is that usual?? Is it down to Debug / Release builds??

Answer: 
For .NET Core, .NET 5 and later, to have full exception line numbers in release builds, configure the project as follows:

```xml
<PropertyGroup>    
  <DebugSymbols>true</DebugSymbols>
  <DebugType>embedded</DebugType>

    <!-- Only enable the following if the line numbers mismatch -->
    <!--<Optimize>false</Optimize>-->

    <!--
      Additional properties which may impact how printed line numbers match the source code line numbers are listed here:
      https://learn.microsoft.com/en-us/dotnet/core/run-time-config/compilation
    -->
</PropertyGroup>

```

The above configuration will include debug symbols directly with the built files, which can be published as nugets.

An alternative to the above is to restore debug packages together with the main nuget packages, which is currently not yet supported: <https://github.com/NuGet/Home/issues/9667>
My app is a ClickOnce app (WPF) and I had to do something a little different:

Project Properties designer > Publish > Application Files

check the Show All Files checkbox

find the pdb file and set its dropdowns there to include it

I had Pdb-only set at:
 Build > Advanced > Debug Info

Not sure if that matters.