项目玩废了,rider启动 提示rider plugin错误 改成非editor的模式提示这个,
删除项目的文件夹是没效果了
Microsoft.MakeFile.targets(44, 5): [MSB3073] 命令“E:\EPICGame\UE_5.2\Engine\Build\BatchFiles\Build.bat CesiumForUnrealSamples Win64 Development -Project="C:\ueproject\CesiumForUnrealSamples\CesiumForUnrealSamples.uproject" -WaitMutex -FromMsBuild”已退出,代码为 6。
![](https://img.haomeiwen.com/i2815884/f797e190bbaa8317.png)
![](https://img.haomeiwen.com/i2815884/f19ebf50df4ae2f8.png)
![](https://img.haomeiwen.com/i2815884/4c47528f275da6ab.png)
重新生成解决方案,删除那些文件夹我发现都不管用了,无奈只能网络搜索下
删除 .vs、.idea、.vsconfig、Binaries、Intermediate、Saved、DerivedDataCache 和附加解决方案,并通过右键单击 .uproject 文件并单击“生成 Visual Studio 项目文件,
https://forums.unrealengine.com/t/microsoft-makefile-targets-45-5-msb3073-exited-with-code-6-error/267688/13
1.删除引擎源代码目录下“Engine\Intermediate\Build\Win64\UE4Editor\Development\VisualStudioDTE”文件夹。
3.重新运行GenerateProjectFiles.bat。
4.在visual stutio installer 的 修改 单个组件 搜索unreal 弹出unreal engine 安装程序
![](https://img.haomeiwen.com/i2815884/4746f2ddc52b0244.png)
![](https://img.haomeiwen.com/i2815884/123eaa15987377c2.png)
最后检查save目录日志,确保cs.cpp内容是否正确。
说重点
rider只提示这个错误没详细信息,根本不是这个原因直接打开uproject,查看save下的日志可以清晰的看到错误
unning E:/EPICGame/UE_5.2/Engine/Build/BatchFiles/Build.bat Development Win64 -Project="E:/UnrealProject/CppDigitalTwn5.2/CppDigitalTwn.uproject" -TargetType=Editor -Progress -NoEngineChanges -NoHotReloadFromIDE
Using bundled DotNet SDK version: 6.0.302
Running UnrealBuildTool: dotnet "..\..\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll" Development Win64 -Project="E:/UnrealProject/CppDigitalTwn5.2/CppDigitalTwn.uproject" -TargetType=Editor -Progress -NoEngineChanges -NoHotReloadFromIDE
Log file: C:\Users\Administrator\AppData\Local\UnrealBuildTool\Log.txt
Using 'git status' to determine working set for adaptive non-unity build (E:\UnrealProject\CppDigitalTwn5.2).
Creating makefile for CppDigitalTwnEditor (no existing makefile)
Unhandled exception. System.ArgumentException: Path fragment '"Content/\350\275\256\345\273\223\346\217\217\350\276\271/"' contains invalid directory separators.
at EpicGames.Core.FileSystemReference.CombineStrings(DirectoryReference baseDirectory, String[] fragments) in D:\build\++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\Shared\EpicGames.Core\FileSystemReference.cs:line 83
at EpicGames.Core.FileReference.Combine(DirectoryReference baseDirectory, String[] fragments) in D:\build\++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\Shared\EpicGames.Core\FileReference.cs:line 173
at UnrealBuildTool.GitSourceFileWorkingSet.AddPath(String Path) in D:\build\++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\System\SourceFileWorkingSet.cs:line 281
at UnrealBuildTool.GitSourceFileWorkingSet.OutputDataReceived(Object Sender, DataReceivedEventArgs Args) in D:\build\++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\System\SourceFileWorkingSet.cs:line 245
at System.Diagnostics.Process.OutputReadNotifyUser(String data)
我这问题就是这个项目放了一个中文文件夹。
网友评论