Ben.StringIntern icon indicating copy to clipboard operation
Ben.StringIntern copied to clipboard

Test issue

Open benaadams opened this issue 4 years ago • 2 comments

Npgsql-StringIntern.zip

benaadams avatar Jan 18 '21 06:01 benaadams

I get this error when patching the files.

[STDERR] Unhandled exception. System.IO.FileNotFoundException: Could not load file or assembly 'Ben.StringIntern, Version=0.1.0.0, Culture=neutral, PublicKeyToken=a6d206e05440431a'. The system cannot find the file specified.
[STDERR]
[STDERR] File name: 'Ben.StringIntern, Version=0.1.0.0, Culture=neutral, PublicKeyToken=a6d206e05440431a'

I think you should be able to repro by publishing Fortunes in self-contained, then copying your files in the output.

sebastienros avatar Jan 18 '21 15:01 sebastienros

Weird, could recreate.

It looks to work if you add the package from nuget to the csproj

<PackageReference Include="Ben.StringIntern" Version="0.1.8" />

Then just copy over the Npgsql.dll and not the intern one.

Perhaps because build didn't add a reference to it in deps and its a new dll not referenced during build?

benaadams avatar Jan 18 '21 16:01 benaadams