The selected platform/configuration is not valid for this target

I’m now using the using the 4.23 from Git Hub.I create a project called DedicatedServer.And I want to use the project to package a dedicated server.But when I use the visual studio to compile a dedicated server,it shows “The selected platform/configuration is not valid for this target.”,but actually I follow the tutorial to write a Server.Target.cs.Here is my code:
using UnrealBuildTool;
using System.Collections.Generic;

public class DedicatedServerServerTarget : TargetRules
{
public DedicatedServerServerTarget(TargetInfo Target) : base(Target)
{
Type = TargetType.Server;
BuildEnvironment = TargetBuildEnvironment.Shared;
ExtraModuleNames.Add(“DedicatedServer”);
}
}

using UnrealBuildTool;
using System.Collections.Generic;

public class DedicatedServerServerTarget : TargetRules
{
    public DedicatedServerServerTarget(TargetInfo Target) : base(Target)
    {
        Type = TargetType.Server;
        BuildEnvironment = TargetBuildEnvironment.Shared;
        ExtraModuleNames.Add("DedicatedServer");
    }
}