We have a bunch of legacy dll's (basically could be anything, some are old fortran, some .NET) and we want to move them to Azure Artifacts. Can I create NuGet packages from these legacy dll's that are not based on .NET (like the Fortran ones) by themselves.
I've already tried creating the NuGet packages, but I get warnings on my dependencies because it looks like they are trying to load the packages on a .NET framework. Is the only real workaround here to build a .NET say class library or something, then reference the dll through that, and create a NuGet package with that library and just add the legacy dll's as references?
The answer is yes.
You could target those legacy dlls to the tools folder instead of the lib folder. like:
Then pack this
.nuspecfile when you build the pipeline, those legacy dlls are located in thetoolsfolder, which will not add as references.Check the From a convention-based working directory for some details.
Hope this helps.