Vscode and local reference to dll
So I built a package that I want to reference in vscode. I copied the DLL, added the reference de csproj and restored the project. Now the first time everything worked, however when updating the package with new methods and doing the same copy + restore, the new method is not found.
Using omnisharp in a devcontainer.
Seems like something is cached somewhere or something.
14 Replies
Possibly cached in the output folder. Is there a reason you can't use a
ProjectReference
or a real PackageReference
?Well other package is a github repo where I'm adding methods to do a PR later. It's built in vs studio. My main project that uses the package is built in vscode in a devcontainer š
using packageReference btw
copied the dll to .net6.0 folder and then added it to csproj
If you're using packagereference, I don't know why you're manually copying anything around
well it's not a nuget package, so that might be my issue then
it's a local built dll
If it's not a nuget package, you're not using packagereference
I think I know what is happening haha
You're using
Reference
they have a nuget package as well haha
omg
<PackageReference Include="CardanoSharp.Blockfrost.Sdk" Version="0.0.1.0" />
but I want to use my own version as I'm changing stuff
so reference it is
Well, then you can't use that
PackageReference
šgotcha!
reference and hintpath then?
Yup
Though
ProjectReference
would be betterOk still doessn't work. This weird...
might be something I need to do in visual studio when building the dll
Alright I need to do something in visual studio, method is not even there when I disassemble
This is why I'm suggesting using a projectreference
Would make everything much simpler
Yeah, got it to work finally, but indeed that might be better. I'll try it out. Thanks! š