2021-09-02 Unity project uses Rider to build ILRuntime hot update project failure record

The dll in unity is required to build the hot update project in Rider, if the selected .Net version is incorrect, an error will be reported

insert image description here
Right-click HptFix_Project (the one above is solution, the one below is project, click the second one here), properties, you can check your own version
insert image description here
here is 4.6

In the red place, select to view Assemblies. The referenced Framework version is 4.7.1
insert image description here
. Delete the wrong dll reference under Solution, right-click -> delete,
insert image description here
right-click Assemblies or Dependencies, Add Reference..., select the dll under ScriptAssmblies, tick, Add and
insert image description here
rebuild

insert image description here
success

Guess you like

Origin blog.csdn.net/weixin_44054505/article/details/120065105