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
Kuurama
Kuuramaβ€’2w ago
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
Todd "CEO" Howard
Todd "CEO" HowardOPβ€’2w ago
is there a package to do that automatically?
Kuurama
Kuuramaβ€’2w ago
maybe it's something like: <Reference Include="ThingyName"> <HintPath>pathTodll.dll</HintPath> </Reference>
Todd "CEO" Howard
Todd "CEO" HowardOPβ€’2w ago
smth like linkoid.Repo.Plugin.Build no no thats not it
Kuurama
Kuuramaβ€’2w ago
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
PurelyAndy
PurelyAndyβ€’2w ago
People publish stripped+publicized game libraries on nuget all the time
Kuurama
Kuuramaβ€’2w ago
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)
PurelyAndy
PurelyAndyβ€’2w ago
It’s more convenient for them to be on nuget I suppose
Kuurama
Kuuramaβ€’2w ago
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.
PurelyAndy
PurelyAndyβ€’2w ago
True
Kuurama
Kuuramaβ€’2w ago
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
PurelyAndy
PurelyAndyβ€’2w ago
Probably the bepinex one It can be installed as a dotnet tool
Kuurama
Kuuramaβ€’2w ago
GitHub
GitHub - BepInEx/BepInEx.AssemblyPublicizer
Contribute to BepInEx/BepInEx.AssemblyPublicizer development by creating an account on GitHub.
Kuurama
Kuuramaβ€’2w ago
Yeah that's what I used With the msbuild technique It works like a charm
πŸ•Š ILoveBirds πŸ•Š
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
Kuurama
Kuuramaβ€’2w ago
Still ties the mod to a third party, updates aren't instantanious afd you don't really know if everything is legitimate i guess
πŸ•Š ILoveBirds πŸ•Š
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

Did you find this page helpful?