Exception 'error MSB3024: Could not copy the file... is thrown when attempting to build on linux container

Exception ‘error MSB3024: Could not copy the file “…/netcoreapp3.1/Test.API” to the dest file “…/netcoreapp3.1/Test.API”, becoz the dest is a folder instead of a file. To copy the source file into a folder, consider using the DestinationFolder parameter instead of DestinationFiles. [/home/…/Test.API_development/source/Test.API/Test.API.csproj’ is thrown when attempting to build on linux container

What are you using as your build command? something like: RUN dotnet build “.csproj” -c Release -r linux-musl-x64 -o /app –no-restore ??

.NET Foundation Website | Blog | Projects | Code of Conduct