I have a bunch of helper classes for web applications that we want to use across .NET Framework applications, Standard assemblies and .NET Core applications.
I'd like to build these as a Nuget package that can be installed anywhere, and brings across the correct references for the consuming application's target framework.
I've tried the following in the nuspec file:
<files>
<file src="**.dll" target="lib" />
<file src="..\Utils.Web.Core\bin\Release\*.dll" target="lib\netcoreapp2.1" />
<file src="..\Utils.Web.Fx\bin\Release\*.dll" target="lib\net461" />
</files>
<references>
<group targetFramework="netstandard2.0">
<reference file="Utils.Web.dll" />
</group>
<group targetFramework="net461">
<reference file="Utils.Web.Fx.dll" />
<reference file="Utils.Web.dll" />
</group>
<group targetFramework="netcore45">
<reference file="Utils.Web.Core.dll" />
<reference file="Utils.Web.dll" />
</group>-->
</references>
What I think this should do is copy the right dlls to the right target .lib folders and reference those assemblies. However the nupkg at the end does not contain any .lib folder.
Is what I am trying to do possible, and what am I missing?