microsoft / sarif-pattern-matcher

Quality domain agnostic regular expression pattern matcher that persists results to SARIF
MIT License
39 stars 18 forks source link

Deep dive on why copy action fails initially during build process #766

Open schlaman-ms opened 1 year ago

schlaman-ms commented 1 year ago

Find root cause of why two different sets of file assets generate a warning of a copy failure even though the destination will always end up with those files being copied.

For now to eliminate the warning from the build, the following has been added to the build.common.props file. The ultimate fix would be to determine why the 'SecurityFile' and 'SdkFile' items do not copy at first and generate a warning.

All appearances are that this is not causing a problem but just generating a warning and that warning is being suppressed now.

      // MSB3030 - This error occurs when a file that was supposed to be
  //  copied isn't found at the expected location.
  //  There are copy commands that have a continueOnError=true because
  //  there is a time in the copy process where a copy fails before it
  //  succeeds for those commands with the continueOnError. Those copy
  //  commands have been set to continueOnError for almost two years.
  $(MSBuildWarningsAsMessages);MSB3277;MSB3030