-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FileNotFoundException in .net 6 #25
Comments
The file it can't find is |
Hi! Same problem describe by @mblumenauer @Cedev did you find a solution to this problem ? Are you talking about the answer given in this stackoverflow thread ? https://stackoverflow.com/questions/72635141/c-sharp-net6-c-cli-nuget-package-fails @rhuijben what you think about this https://iamsorush.com/posts/cpp-csharp-swig/ ? |
I tried to build a test WPF project with .NET 7 (and redid with .NET 5 as well) and I think hit the same issue (VS2022 Preview). I tried running with all four 9.* versions of your library in NuGet, and restarting VS a few times. Project zips attached. .NET 7: LoadSharpProjIsolated.zip Exception text:
I'd love to use your library when this is fixed! Edit: To mention projects use WPF. |
It takes my 1h🤦♂️, I thought it was caused by other problems。 |
I get the same error using .NET Core 7 running in a DevContainer using image
Does SharpProj work with linux? I am new to .NET but I can see some win references. From obj/project.assets.json "SharpProj.Core/9.2000.234": {
"type": "package",
"compile": {
"ref/netcoreapp/SharpProj.dll": {}
},
"runtimeTargets": {
"runtimes/win-arm64/lib/netcoreapp/SharpProj.dll": {
"assetType": "runtime",
"rid": "win-arm64"
},
"runtimes/win-x64/lib/netcoreapp/SharpProj.dll": {
"assetType": "runtime",
"rid": "win-x64"
},
"runtimes/win-x86/lib/netcoreapp/SharpProj.dll": {
"assetType": "runtime",
"rid": "win-x86"
}
}
} |
As mentioned before in this issue, it seems that For the time being I've managed to get round the issue by including the
That will ensure the DLL is copied to the bin folder on build and after that SharpProj works as expected. |
Encountered the same issue when using C++/CLI assembly targeting .NET 6.0 in C# project. I tried the above solution suggested by @tomvanenckevort, but found After some debugging and searching through SDK build files, I found enabling <PropertyGroup>
<UseIJWHost Condition="'$(TargetFramework)' == 'net6.0'">true</UseIJWHost>
</PropertyGroup> |
With version 9.2001.250 Its not copying the SharpProj.dll file at all. Its in the project.assets.json file but doesn't copy the dll to the bin. I also tried the project file edits. Only the @tomvanenckevort answer worked to get the ljshost.dll file copied over. I'm using .net 6 with VS2022. |
I can build my project with Unfortunately, when I tried to host the project the same problem pops up. IIS can't launch the project because SharpProj.dll is not found. |
Hi!
I want to use SharpProj.NetTopologySuite and i included the SharpProj and SharpProj.NetTopologySuite Nuget Packages in my .net 6 Project.
At runtime i get
System.IO.FileNotFoundException Could not load file or assembly 'SharpProj, Version=8.2001.128.0, Culture=neutral, PublicKeyToken=3a930e679d9a0873'.
What am i doing wrong?
The text was updated successfully, but these errors were encountered: