Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RobocopyFiles target from Microsoft.Build.Artifacts not compatible with UseArtifactsOutput #566

Open
timmydo opened this issue Sep 4, 2024 · 0 comments

Comments

@timmydo
Copy link

timmydo commented Sep 4, 2024

I'm trying to migrate a 2k csproj solution to <UseArtifactsOutput>true</UseArtifactsOutput> with a <ArtifactsPath>$(MSBuildThisFileDirectory)target/artifacts</ArtifactsPath>.

One of the first things I ran into is that it seems the RobocopyFiles target doesn't run. It's using Condition="'$(EnableArtifacts)' != 'false'". Is there a way to keep RobocopyFiles enabled? We have about 600 instances of it being used. It's doing things like:

    <Robocopy Include="$(PkgMyNuget)\lib\$(MyNetVersion)\">
      <DestinationFolder>$(TestServicesPath)\Taef\blah</DestinationFolder>
      <FileMatch>Some.Thing*.dll</FileMatch>
    </Robocopy>

We also use some of the other MSBuildSdks like CopyOnWrite.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant