Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Discussion When trying to build it says cannot open gameassembly.dll

Discussion in 'Windows' started by Mingmmmm, Dec 27, 2022.

  1. Mingmmmm

    Mingmmmm

    Joined:
    Sep 28, 2019
    Posts:
    7
    统一: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
    Code (CSharp):
    1.  
    2.   <ItemGroup>
    3.  
    4.    <!--Add this line-->
    5.  
    6.     <Content Include="$(UnityWSAPlayerDir)Players\UAP\il2cpp\$(PlatformTarget)\$(Configuration)\baselib.dll" />
    7.  
    8.     <Content Include="$(SolutionDir)build\bin\$(Platform)\$(Configuration)\GameAssembly.dll" />
    9.  
    10.     <Content Include="$(SolutionDir)build\bin\$(Platform)\$(Configuration)\GameAssembly.pdb" />
    11.  
    12.   </ItemGroup>
    I uploaded the log when I build
     

    Attached Files:

  2. Mingmmmm

    Mingmmmm

    Joined:
    Sep 28, 2019
    Posts:
    7
    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.
     
  3. Mingmmmm

    Mingmmmm

    Joined:
    Sep 28, 2019
    Posts:
    7
    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:(
     
  4. Mingmmmm

    Mingmmmm

    Joined:
    Sep 28, 2019
    Posts:
    7
    This is the log when I debug and run, please help to check
     

    Attached Files: