我尝试使用 .NET Upgrade Assistant 将 WPF 项目从 .NET 4.8 更新到 .NET 6.0。当我尝试对 WPF 项目进行并行升级时,升级助手尝试将
.csproj
文件转换为 SDK 样式时出现此错误:
System.IO.DirectoryNotFoundException:找不到路径“C:\Users”的一部分 ikhilsh\AppData\Local\Temp\UpgradeAssistant\Projects 24f30fa-182a-40e9-8301-2fe09a378e8d�4-02-01--18-08-13\Service References\DataDwonloadAuthServiceReference\WBid.WBidClient.Main.DataDwonloadAuthServiceReference.AuthServiceResponseModel。数据源'.
在 System.IO.__Error.WinIOError(Int32 errorCode, String MaybeFullPath)
在System.IO.File.InternalCopy(字符串sourceFileName,字符串destFileName,布尔覆盖,布尔checkHost)
在 D: _work \s\src ngine\Services\FileSystem\FileSystemExtensions.cs 中的 Microsoft.UpgradeAssistant.Services.FileSystemExtensions.DirectoryCopy(IFileSystem fileSystem, String sourceDirectory, String targetDirectory, ISet1 exceptFolders, 布尔递归) :第 31 行1 excludeFolders, Boolean recursive) in D:\a\_work\1\s\src\engine\Services\FileSystem\FileSystemExtensions.cs:line 23 at Microsoft.UpgradeAssistant.Services.FileSystemExtensions.DirectoryCopy(IFileSystem fileSystem, String sourceDirectory, String targetDirectory, ISet
在 D: _work \s\src ngine\Services\FileSystem\FileSystemExtensions.cs 中的 Microsoft.UpgradeAssistant.Services.FileSystemExtensions.DirectoryCopy(IFileSystem fileSystem, String sourceDirectory, String targetDirectory, ISet`1 exceptFolders, Boolean recursive):line 31 在 D: _work \s\src ngine\Transformers\Project\ProjectSdkStyleTransformer.cs 中的 Microsoft.UpgradeAssistant.Transformers.ProjectSdkStyleTransformer.d__2.MoveNext() 处:第 65 行 --- 从先前抛出异常的位置开始的堆栈跟踪结束 --- 在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务) 在 D: _work \s\src ngine\Operations\Operation.cs 中的 Microsoft.UpgradeAssistant.Operations.Operation.d__23.MoveNext() 处:第 386 行 --- 从先前抛出异常的位置开始的堆栈跟踪结束 --- 在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 在 D: _work \s\src ngine\Operations\Operation.cs 中的 Microsoft.UpgradeAssistant.Operations.Operation.d__21.MoveNext() 处:第 274 行