On .NET Core 6 where when publishing with Web Deploy via Visual Studio 2022. I’m receiving the following error:
Error Found multiple publish output files with the same relative path:
There is no issues when building, just publishing.
I have 7 ASP.NET Core 6 projects. 6 projects are referred in one project .
I am aware that this is expected functionality in .NET Core 6 (https://docs.microsoft.com/en-us/dotnet/core/compatibility/sdk/6.0/duplicate-files-in-output). I am aware of the ErrorOnDuplicatePublishOutputFiles property.
I kept this property then the files are published.
But when I host the project in Azure App service Linux environment, the application is not running as expected.
I added this ErrorOnDuplicatePublishOutputFiles property in csproj file.
<PropertyGroup> <ErrorOnDuplicatePublishOutputFiles>false</ErrorOnDuplicatePublishOutputFiles> </PropertyGroup>
But the application is not working, do i need to configure any, I referred 6 projects in one project like this
var channelStartup = new SF.Notification.Delivery.API.ChannelReslvr.Startup(Configuration, hostingEnvironment);
channelStartup.ConfigureLocalServices(services);
var emailStartup = new SF.Notification.Delivery.API.EmailDelivery.Startup(Configuration, hostingEnvironment);
emailStartup.ConfigureLocalServices(services);
var messageRslvrStartup = new SF.Notification.Delivery.API.MessageReslvr.Startup(Configuration, hostingEnvironment);
messageRslvrStartup.ConfigureLocalServices(services);
Please respond ASAP.