When trying to build it says cannot open gameassembly.dll

统一:2021.3.13f1c1
vs:2022
When trying to build it says cannot open gameassembly.dll

I try to add some code, but can’t build successfully

  <ItemGroup>

   <!--Add this line-->

    <Content Include="$(UnityWSAPlayerDir)Players\UAP\il2cpp\$(PlatformTarget)\$(Configuration)\baselib.dll" />

    <Content Include="$(SolutionDir)build\bin\$(Platform)\$(Configuration)\GameAssembly.dll" />

    <Content Include="$(SolutionDir)build\bin\$(Platform)\$(Configuration)\GameAssembly.pdb" />

  </ItemGroup>

I uploaded the log when I build

8688075–1171860–errorLOG.txt (175 KB)

I checked the changelog of Unity, and the problem of not being able to generate the dll was solved by upgrading to the latest version.

But I encountered a new problem, when I was debugging
“Il2CppMethodPointer returnValue = il2cppPInvokeFunc(____0_del_MessageData_marshaled);#endif
will break with an exception,I’m a uwp novice, I don’t know how to locate the problem at all:(

This is the log when I debug and run, please help to check

8688237–1171881–NewError.txt (16.5 KB)