You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What kind of app is this? ASP.NET, Win UI, console... ?
Console
Can you please post the error message you get when you run it from command line?
Later, The error was standard that a specific manifest, and that a certain dll is missing in the runtimes folder
I use steamcmd to upload to the steam store, after which this problem occurs. If you just copy it to another location, even on another PC. It works, and when I upload files via steamcmd, it starts swearing.
I tried to upload the files to a zip archive, upload to steam after unpacking, the program works, but if you try to download the files without unpacking, the program stops working and swears that there is no folder runtimes
I'm guessing that the upload to steam removes .pdb files - but in this case the file is listed as required by the app, so it fails without it. As a workaround you could upgrade to Microsoft.Data.SqlClient.SNI.runtime version 2.1.1 which doesn't seem to have this problem (it doesn't ship the pdb in the package).
Moving this to SDK since this seems to be an SDK problem (if there is even one). I don't know if SDK should include pdb files in .deps.json in this case.
If the app uses a NuGet package that has platform-specific implementations, dependencies for all platforms are copied to the publish\runtimes{platform} folder.
I may have found a workaround but will need to test this further:
Running
dotnet publish -c Release -o myPublishDir -r linux
dotnet publish -c Release -o myPublishDir -r osx
dotnet publish -c Release -o myPublishDir -r win
dotnet publish -c Release -o myPublishDir (not sure if this is needed)
copies the native libraries that should end up in runtimes/**/* to myPublishDir and as long as their names don't collide, this should work?
At least my very basic CI test passed, but I'll have to run more thorough testing to determine if I can trust this workaround.
Activity
vitek-karas commentedon May 7, 2021
Can you please post the error message you get when you run it from command line?
What kind of app is this? ASP.NET, Win UI, console... ?
nurbat commentedon May 7, 2021
What kind of app is this? ASP.NET, Win UI, console... ?Console
Can you please post the error message you get when you run it from command line?Later, The error was standard that a specific manifest, and that a certain dll is missing in the runtimes folder
SingleAccretion commentedon May 7, 2021
Is this
dllclrcompression.dllby any chance?nurbat commentedon May 8, 2021
there is no such dll in the folder
I use steamcmd to upload to the steam store, after which this problem occurs. If you just copy it to another location, even on another PC. It works, and when I upload files via steamcmd, it starts swearing.
I tried to upload the files to a zip archive, upload to steam after unpacking, the program works, but if you try to download the files without unpacking, the program stops working and swears that there is no folder runtimes
SingleAccretion commentedon May 8, 2021
That's quite interesting. But my question was specifically about the message. What does it say exactly?
nurbat commentedon May 8, 2021
agocke commentedon May 8, 2021
Could you also provide a binary log (gathered using
msbuild /blordotnet -bl)?nurbat commentedon May 8, 2021
--self-contained false
dotnet publish -c Release -f net5.0 -r win-x64 --self-contained false -o PublishRelease -blmsbuild.zip
nurbat commentedon May 8, 2021
--self-contained true
dotnet publish -c Release -f net5.0 -r win-x64 --self-contained true -o PublishRelease -blmsbuild.zip
vitek-karas commentedon May 10, 2021
I'm guessing that the upload to steam removes
.pdbfiles - but in this case the file is listed as required by the app, so it fails without it. As a workaround you could upgrade to Microsoft.Data.SqlClient.SNI.runtime version 2.1.1 which doesn't seem to have this problem (it doesn't ship the pdb in the package).vitek-karas commentedon May 10, 2021
Moving this to SDK since this seems to be an SDK problem (if there is even one). I don't know if SDK should include pdb files in
.deps.jsonin this case.nurbat commentedon May 10, 2021
the pdb is in place, apparently that's not the problem. This problem should be solved, but this SNI file does not have a pdb even in the assembly
vitek-karas commentedon May 10, 2021
As far as I can tell the SNI is a native library.
nurbat commentedon May 10, 2021
Used the Microsoft.* library
michaelosthege commentedon Jan 18, 2023
This bug appears to directly contradict what is stated in the documentation:
I may have found a workaround but will need to test this further:
Running
copies the native libraries that should end up in
runtimes/**/*tomyPublishDirand as long as their names don't collide, this should work?At least my very basic CI test passed, but I'll have to run more thorough testing to determine if I can trust this workaround.
Fix poisoning issue with existing marker (#17527)