Plugin for shader: Fail to build

With unreal engine 5.4, I am currently following the official tutorial about plugin for shader Creating a New Global Shader as a Plugin.

However, I failed to run the program and the error message is just error code MSB307.
My Foo.Build.cs is as below

using UnrealBuildTool;

public class Foo : ModuleRules
{
	public Foo(ReadOnlyTargetRules Target) : base(Target)
	{
		PCHUsage = ModuleRules.PCHUsageMode.UseExplicitOrSharedPCHs;

        PublicIncludePaths.AddRange(
            new string[] {
                "Foo/Public"
                // ... add public include paths required here ...
            }
            );
        PrivateIncludePaths.AddRange(
            new string[] {
                "Foo/Private",
                // ... add other private include paths required here ...
            }
            );


        PublicDependencyModuleNames.AddRange(
			new string[]
			{
                "Core",
                "CoreUObject",
                "Engine",
				"RenderCore",
				"ShaderCore",
				"RHI",
				// ... add other public dependencies that you statically link with here ...
			}
			);
			
		
		PrivateDependencyModuleNames.AddRange(
			new string[]
			{
				"CoreUObject",
				"Engine",
				// ... add private dependencies that you statically link with here ...	
			}
			);
		
		
		DynamicallyLoadedModuleNames.AddRange(
			new string[]
			{
				// ... add any modules that your module loads dynamically here ...
			}
			);
	}
}

Is there anyone encountering the same problem when following that tutorial?
Thanks for your time!

Well, it turned out that the tutorial is too old and the code snippets are mostly outdated. Better to follow the tutorial text rather than copy-paste