Publish getting failed
Closed this issue · 5 comments
I also encountered the same problem. This file cannot be renamed, and there was an error when renaming it
If you change the directory name, there will be too many changes
Looking forward to resolving the issue
Hey, sorry for the late answer.
This is not an issue of the platform but a recent change Microsoft made and it has an easy fix. Check this thread
https://stackoverflow.com/questions/69919664/publish-error-found-multiple-publish-output-files-with-the-same-relative-path
-
This file is not a document and must be output (you provided a regular file conflict)
-
This file needs to be used during runtime after actual publication, so all subsequent directories need to use this file. Therefore, using SDK or WEB will cause another file to be unavailable
-
I can place the same files from two libraries in different directories, such as the SDK in the Page directory and the Web in the root directory, which can solve the problem, but this is not the standard solution
Hey guys, the problem is easy solved by using configuration setting bellow in project file. Some people get an error, others not and this is related to problem with Microsoft changes and updates.
<PropertyGroup>
<!-- solves build error duplicate files -->
<ErrorOnDuplicatePublishOutputFiles>false</ErrorOnDuplicatePublishOutputFiles>
</PropertyGroup>