-
Notifications
You must be signed in to change notification settings - Fork 91
Description
[regression] [worked-in:17.12]
35>C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets(4858,5): error MSB4060: The “Copy” task has been declared or used incorrectly, or failed during construction. Check the spelling of the task name and the assembly name. [E:\WADev\Websites\src\hosting\EnvSettingsModule\EnvSettingsModule.csproj]
9>C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets(5322,5): error MSB4061: The “Copy” task could not be instantiated from “E:.nuget\packages\microsoft.build.copyonwrite\1.0.315\Sdk…\build\netstandard2.0\Microsoft.Build.CopyOnWrite.dll”. [E:\WADev\Websites\src\OnPrem\Output\OnPremFolder.csproj]
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets(5322,5): error MSB4061: System.TypeInitializationException: The type initializer for ‘Microsoft.Build.Tasks.Copy’ threw an exception. —> System.ComponentModel.Win32Exception: GetVolumePathNamesForVolumeName(?\Volume{76597d1a-b340-11ef-bf5b-b04f13039cb8}) failed with Win32 error code 2 [E:\WADev\Websites\src\OnPrem\Output\OnPremFolder.csproj]
copied from https://developercommunity.visualstudio.com/t/MSB4060-and-MSB4061-errors/10808156