It appears that your Custom Build for the message compiler file asrmsgs.mc does not include the necessary steps to run the message compiler and specify inputs/outputs.
For example, I have a VS2019 solution that builds a windows service. The solution includes a project to build a resource DLL using a .mc file and the message compiler. The related custom build steps from the project file (.vcxproj) appears as follows -
<ItemGroup>
<CustomBuild Include="CppWindowsServiceMsg.mc">
<FileType>Document</FileType>
<Command Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">mc.exe -U %(Filename).mc</Command>
<Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(Filename).rc;%(Filename).h;MSG00409.bin</Outputs>
<Message Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Generating message dll for service</Message>
<Command Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">mc.exe -U %(Filename).mc</Command>
<Message Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Generating message dll for service</Message>
<Outputs Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(Filename).rc;%(Filename).h;MSG00409.bin</Outputs>
<Command Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">mc.exe -U %(Filename).mc</Command>
<Command Condition="'$(Configuration)|$(Platform)'=='Release|x64'">mc.exe -U %(Filename).mc</Command>
<Message Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Generating message dll for service</Message>
<Message Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Generating message dll for service</Message>
<Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(Filename).rc;%(Filename).h;MSG00409.bin</Outputs>
<Outputs Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(Filename).rc;%(Filename).h;MSG00409.bin</Outputs>
</CustomBuild>
</ItemGroup>