I have an old .net project that I build as a nuget package. It's targetting .net 4.8. I modified the .csproj file to use the modern .NET SDK style project and I use "dotnet build"/"dotnet pack" to build or build a nuget package.
mainly because I had issues getting the *.XmlSerializer.dlls built.
I build the nuget package and it looks good.
I then reference the nuget package from a .net 4.8 console app where I haven't converted the .csproj to .net SDK style (I can't assume that every consumer has or can do this!). I get the following warning:
warning MSB3073: The command "dotnet Microsoft.XmlSerializer.G enerator "obj\Debug\ConsoleApp22.exe" --force --quiet obj\Debug\sgen.rsp" exited with code 1.
An overview of the Microsoft XML Serializer Generator. Use the XML Serializer Generator to generate an XML serialization assembly for the types contained in your project.
An overview of the Microsoft XML Serializer Generator. Use the XML Serializer Generator to generate an XML serialization assembly for the types contained in your project.