<Target Name="BeforeCompile">
<Copy SourceFiles="..\Foo.js" DestinationFolder="Foo.Files\Js" SkipUnchangedFiles="True" OverwriteReadOnlyFiles="True" />
</Target>
This code running before build. But i want to do this when the file changes in debug. It's posible?
MSBuild only runs to build your project. While the executable is running, MSBuild is no longer working on your project.
This means that there is no possibility to do this (watch sources) in MSBuild.