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

Microsoft.Build.Artifacts 5.0.0 broken on Linux #463

Closed
timmydo opened this issue Jul 31, 2023 · 2 comments
Closed

Microsoft.Build.Artifacts 5.0.0 broken on Linux #463

timmydo opened this issue Jul 31, 2023 · 2 comments

Comments

@timmydo
Copy link

timmydo commented Jul 31, 2023

Error changing from 4.2.0 to 5.0.0:

/home/timmy/.nuget/packages/microsoft.build.artifacts/5.0.0/build/Microsoft.Build.Artifacts.Common.targets(51,5): error MSB4061: The "Robocopy" task could not be instantiated from "/home/timmy/.nuget/packages/microsoft.build.artifacts/5.0.0/build/netstandard2.0/Microsoft.Build.Artifacts.dll".  [blah.csproj]
/home/timmy/.nuget/packages/microsoft.build.artifacts/5.0.0/build/Microsoft.Build.Artifacts.Common.targets(51,5): error MSB4061: System.TypeInitializationException: The type initializer for 'Microsoft.Build.Artifacts.FileSystem' threw an exception. [blah.csproj]
/home/timmy/.nuget/packages/microsoft.build.artifacts/5.0.0/build/Microsoft.Build.Artifacts.Common.targets(51,5): error MSB4061:  ---> System.IO.FileNotFoundException: Could not load file or assembly 'CopyOnWrite, Version=0.9.9999.0, Culture=neutral, PublicKeyToken=49642b47d27a30e9'. The system cannot find the file specified. [blah.csproj]
/home/timmy/.nuget/packages/microsoft.build.artifacts/5.0.0/build/Microsoft.Build.Artifacts.Common.targets(51,5): error MSB4061:  [blah.csproj]
/home/timmy/.nuget/packages/microsoft.build.artifacts/5.0.0/build/Microsoft.Build.Artifacts.Common.targets(51,5): error MSB4061: File name: 'CopyOnWrite, Version=0.9.9999.0, Culture=neutral, PublicKeyToken=49642b47d27a30e9' [blah.csproj]
/home/timmy/.nuget/packages/microsoft.build.artifacts/5.0.0/build/Microsoft.Build.Artifacts.Common.targets(51,5): error MSB4061:    --- End of inner exception stack trace --- [blah.csproj]
/home/timmy/.nuget/packages/microsoft.build.artifacts/5.0.0/build/Microsoft.Build.Artifacts.Common.targets(51,5): error MSB4061:    at Microsoft.Build.Artifacts.FileSystem.get_PathComparer() [blah.csproj]
/home/timmy/.nuget/packages/microsoft.build.artifacts/5.0.0/build/Microsoft.Build.Artifacts.Common.targets(51,5): error MSB4061:    at Microsoft.Build.Artifacts.Tasks.Robocopy..ctor() [blah.csproj]
/home/timmy/.nuget/packages/microsoft.build.artifacts/5.0.0/build/Microsoft.Build.Artifacts.Common.targets(51,5): error MSB4061:    at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean wrapExceptions) [blah.csproj]
/home/timmy/.nuget/packages/microsoft.build.artifacts/5.0.0/build/Microsoft.Build.Artifacts.Common.targets(51,5): error MSB4060: The "Robocopy" task has been declared or used incorrectly, or failed during construction. Check the spelling of the task name and the assembly name. [blah.csproj]

@erikmav

@erikmav
Copy link
Collaborator

erikmav commented Aug 1, 2023

Have a repro, working on fix.

@jeffkl
Copy link
Contributor

jeffkl commented Aug 1, 2023

Fixed by #468 and available in version 5.0.1

@jeffkl jeffkl closed this as completed Aug 1, 2023
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

3 participants