今天把unity升级成2021后,按照之前在unity按F5,然后在build unity工程,然后在build client-server就不成功了,报了好多错
付费群里好心大哥给的解决办法是
<ItemGroup>
<MySourceFiles Include="./Temp/bin/Debug/Unity.Mono/*.*" />
</ItemGroup>
<Target Name="BeforeBuild">
<CallTarget Targets="CopyDll" />
</Target>
<Target Name="CopyDll">
<Message Text="Copy Unity.Mono dll" />
<Copy SourceFiles="@(MySourceFiles)" DestinationFolder="./Temp/bin/Debug/" />
</Target>
把这个贴到Unity.Model.csproj,bin生成后 复制到正确的目录
打赏