I am using Msbuild 4.0. When I used Msbuild 3.5, OverwriteReadonlyfiles worked without any problems.
But today, when I tried to use the copy task, I get this problem.
error MSB4064:
The OverwriteReadOnlyFiles parameter is not supported on the Copy request. Verify that the parameter exists in the task and is a public instance custom object.
This is my goal, which has the task of copying
<Target Name="CopyBOM"> <Copy SourceFiles="@(BOM)" DestinationFolder="%(BOM.Destination)" OverwriteReadOnlyFiles="true"> <Output TaskParameter="CopiedFiles" ItemName="CopyBOMFiles" /> </Copy> <Message Text="Copied to BOM: @(CopyBOMFiles)"/> </Target>
Below is the group of elements that I use in the properties file
<BOM Include="..\..\..\Release\CoreDeployment.msi"> <Destination>..\..\..\Core\BOM\Comp1</Destination> </BOM>
I have a file with several properties, I confirmed that Toolsversion = 4.0 is located in the whole place. Has anyone come across this? Any way to solve this?
source share