I have an Azure Functions app targeting .NET 6 on Windows, which has a project dependency on a .NET 6 class library which in turn depends on a COMReference which is configured as registration-free and set to copy the COM server to the build output folder. I can confirm that the interop library and the COM server are copied to the build output folder.
The problem is that publishing my functions app fails because the COM server dll isn't copied to the publish output folder and so doesn't get deployed. Here's the class library's project file.
I have an Azure Functions app targeting .NET 6 on Windows, which has a project dependency on a .NET 6 class library which in turn depends on a COMReference which is configured as registration-free and set to copy the COM server to the build output folder. I can confirm that the interop library and the COM server are copied to the build output folder.
The problem is that publishing my functions app fails because the COM server dll isn't copied to the publish output folder and so doesn't get deployed. Here's the class library's project file.