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

Failed to build in VS2022 #11

Open
jennnital opened this issue Aug 5, 2024 · 1 comment
Open

Failed to build in VS2022 #11

jennnital opened this issue Aug 5, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@jennnital
Copy link

Please attach the editor logs from <ProjectDir>\Saved\Logs\MyProject.log.
Build started at 10:31...
1>------ Build started: Project: ScriptGeneratorUbtPlugin.ubtplugin, Configuration: Development Any CPU ------
2>------ Skipped Build: Project: UE5, Configuration: BuiltWithUnrealBuildTool Win64 ------
2>Project not selected to build for this solution configuration
3>------ Build started: Project: UE5Rules, Configuration: Development Any CPU ------
4>------ Build started: Project: MyProject, Configuration: Development_Editor x64 ------
5>------ Build started: Project: BuildGraph.Automation, Configuration: Development Any CPU ------
6>------ Build started: Project: AutomationScripts.Automation, Configuration: Development Any CPU ------
1>ScriptGeneratorUbtPlugin.ubtplugin -> C:\Program Files\Epic Games\UE_5.3\Engine\Binaries\DotNET\UnrealBuildTool\Plugins\ScriptGeneratorUbtPlugin\ScriptGeneratorUbtPlugin.dll
4>Using bundled DotNet SDK version: 6.0.302
4>Running UnrealBuildTool: dotnet "....\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll" MyProjectEditor Win64 Development -Project="C:\Users...\Documents\ComfyTextures\MyProject.uproject" -WaitMutex -FromMsBuild
4>Log file: C:\Users...\AppData\Local\UnrealBuildTool\Log.txt
4>Using 'git status' to determine working set for adaptive non-unity build (C:\Users...\Documents\ComfyTextures).
4>Creating makefile for MyProjectEditor (no existing makefile)
5>C:\Program Files\Epic Games\UE_5.3\Engine\Source\Programs\AutomationTool\BuildGraph\BgScriptReader.cs(1640,37,1640,42): error CS8604: Possible null reference argument for parameter 'other' in 'void HashSet.UnionWith(IEnumerable other)'.
5>Done building project "BuildGraph.Automation.csproj" -- FAILED.
3>C:\Program Files\Epic Games\UE_5.3\Engine\Source\ThirdParty\Windows\VisualStudioDTE\VisualStudioDTE.Build.cs(55,26,55,140): warning CA1416: This call site is reachable on all platforms. 'Registry.GetValue(string, string?, object?)' is only supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416)
3>C:\Program Files\Epic Games\UE_5.3\Engine\Source\ThirdParty\NVIDIA\Rivermax\RivermaxLib.build.cs(17,33,17,142): warning CA1416: This call site is reachable on all platforms. 'Registry.GetValue(string, string?, object?)' is only supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416)
3>C:\Program Files\Epic Games\UE_5.3\Engine\Source\ThirdParty\Windows\XInput\XInput.Build.cs(27,10,27,92): warning CA1416: This call site is reachable on all platforms. 'WindowsExports.TryGetWindowsSdkDir(string, out Version?, out DirectoryReference?)' is only supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416)
3>C:\Program Files\Epic Games\UE_5.3\Engine\Plugins\Developer\VisualStudioCodeSourceCodeAccess\Source\VisualStudioCodeSourceCodeAccess\VisualStudioCodeSourceCodeAccess.Build.cs(42,51,42,75): warning CA1416: This call site is reachable on all platforms. 'RegistryHive.ClassesRoot' is only supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416)
3>C:\Program Files\Epic Games\UE_5.3\Engine\Plugins\Developer\VisualStudioCodeSourceCodeAccess\Source\VisualStudioCodeSourceCodeAccess\VisualStudioCodeSourceCodeAccess.Build.cs(42,77,42,100): warning CA1416: This call site is reachable on all platforms. 'RegistryView.Registry32' is only supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416)
3>C:\Program Files\Epic Games\UE_5.3\Engine\Plugins\Developer\VisualStudioCodeSourceCodeAccess\Source\VisualStudioCodeSourceCodeAccess\VisualStudioCodeSourceCodeAccess.Build.cs(42,27,42,101): warning CA1416: This call site is reachable on all platforms. 'RegistryKey.OpenBaseKey(RegistryHive, RegistryView)' is only supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416)
3>C:\Program Files\Epic Games\UE_5.3\Engine\Plugins\Developer\VisualStudioCodeSourceCodeAccess\Source\VisualStudioCodeSourceCodeAccess\VisualStudioCodeSourceCodeAccess.Build.cs(42,27,42,120): warning CA1416: This call site is reachable on all platforms. 'RegistryKey.OpenSubKey(string)' is only supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416)
3>C:\Program Files\Epic Games\UE_5.3\Engine\Source\Runtime\Core\Core.Build.cs(211,36,211,146): warning CA1416: This call site is reachable on all platforms. 'Registry.GetValue(string, string?, object?)' is only supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416)
6>C:\Program Files\Epic Games\UE_5.3\Engine\Source\Programs\AutomationTool\Scripts\CheckForHacks.cs(87,26,87,45): error CA2017: Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)
6>Done building project "AutomationScripts.Automation.csproj" -- FAILED.
3>UE5Rules -> C:\Program Files\Epic Games\UE_5.3\Engine\Intermediate\Build\BuildRulesProjects\UE5Rules\bin\Development\UE5Rules.dll
3>Done building project "UE5Rules.csproj".
7>------ Build started: Project: UE5ProgramRules, Configuration: Development Any CPU ------
7>C:\Program Files\Epic Games\UE_5.3\Engine\Source\Programs\Shared\EpicGames.Perforce.Native\DotNetPerforceLib.Target.cs(5,14,5,37): warning CA1050: Declare types in namespaces (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1050)
7>C:\Program Files\Epic Games\UE_5.3\Engine\Source\Programs\Shared\EpicGames.Perforce.Native\DotNetPerforceLib.Build.cs(5,14,5,31): warning CA1050: Declare types in namespaces (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1050)
4>Target is up to date
4>Total execution time: 4.18 seconds
7>UE5ProgramRules -> C:\Program Files\Epic Games\UE_5.3\Engine\Intermediate\Build\BuildRulesProjects\UE5ProgramRules\bin\Development\UE5ProgramRules.dll
7>Done building project "UE5ProgramRules.csproj".
8>------ Build started: Project: MarketplaceRules, Configuration: Development Any CPU ------
8>MarketplaceRules -> C:\Program Files\Epic Games\UE_5.3\Engine\Intermediate\Build\BuildRulesProjects\MarketplaceRules\bin\Development\MarketplaceRules.dll
9>------ Build started: Project: MyProjectModuleRules, Configuration: Development Any CPU ------
9>MyProjectModuleRules -> C:\Users...\Documents\ComfyTextures\Intermediate\Build\BuildRulesProjects\MyProjectModuleRules\bin\Development\MyProjectModuleRules.dll
========== Build: 6 succeeded, 2 failed, 40 up-to-date, 1 skipped ==========
========== Build completed at 10:32 and took 09.435 seconds ==========

@jennnital jennnital added the bug Something isn't working label Aug 5, 2024
@JimWang151
Copy link

hey,bro.same as me.How you solve this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants