How do I post single DLL on nuget, so that when i do <PackageReference> it automatically loaded it?
I got DLL of a game, stripped down and publicized, but now I need to post it to nuget. How do i pack it up?
17 Replies
You need to post a game dll you don't own on nuget?
You can just resolve it through path instead, no need to upload it anywhere
is there a package to do that automatically?
maybe it's something like:
<Reference Include="ThingyName">
<HintPath>pathTodll.dll</HintPath>
</Reference>
smth like linkoid.Repo.Plugin.Build
no no thats not it
I don't really get what you want exactly sorry
:Hide:
I assume you can just publish a dll to nuget directly from their website, if that's what you want to do
People publish stripped+publicized game libraries on nuget all the time
We have libs to just publicize dlls though. It's weird. You can just get them resolved easily with a variable in the .user or something even (with $() references)
Itβs more convenient for them to be on nuget I suppose
Thought it was illegal publishing stuffs you didn't really made.
Yeah but then you rely on third parties for updates. Rather than your own game files.
True
The nuget package they mentionned clearly helps resolving game dlls
its not the dlls frot the game in a package, that's why I'm confused
Instead of trying to fix your way around, I guess OP should just make it depend on his game with path variable.
Ima find the publicizer i used real quick
Probably the bepinex one
It can be installed as a dotnet tool
GitHub
GitHub - BepInEx/BepInEx.AssemblyPublicizer
Contribute to BepInEx/BepInEx.AssemblyPublicizer development by creating an account on GitHub.
Yeah that's what I used
With the msbuild technique
It works like a charm
I have seen modders doing this, like for eg Subnautica has a nugget package with its dlls published, dont think it would be a problem unless the devs are upset about it
Still ties the mod to a third party, updates aren't instantanious afd you don't really know if everything is legitimate i guess
not sure what u meant by afd, im a subnautica modder, the modding community there pretty much updates its nug after a patch its released, + I think the devs know about it too since they are on the modding discord channel, anyway I guess it wont be same 4 every game