Can anyone explain this change of net471 to netcoreapp3.1?

Hello community,
I have recently updated my project from unity 2020.1 to 2020.3. When I check my build.gradle file, I noticed that these have changed as per in the image.

Previous - commandLine(workingDir + "/src/main/Il2CppOutputProject/IL2CPP/build/deploy/net471/il2cpp.exe"
has been changed to commandLine(workingDir + "/src/main/Il2CppOutputProject/IL2CPP/build/deploy/netcoreapp3.1/il2cpp.exe"

additionally, there is noCompress = ['.ress', '.resource', '.obb'] + unityStreamingAssets.tokenize(', ') on aaptOptions{}. Can someone explain me why these change happens please?
Thank you

The il2cpp.exe utility, which is a managed application that converts .NET IL code into C++ code for machine-specific compilation changed. That utility used to be a .NET Framework application, and is now a .NET Core application.

1 Like

Hi @JoshPeterson Thank you very much for your reply. I hope that there is no issue of this change then?

@JoshPeterson Once I’ve upgraded and built the project I’m having an issue as per this thread which I created separately. are these errors related to this?

Correct, this should just make il2cpp.exe faster, that is all! :slight_smile:

1 Like

I don’t think they are related. I’m unclear why that error occurs though - it looks like a header file cannot be found.

1 Like

Yes, the header file is not generated when I export the project. I’ve disabled the Strip engine code to solve another issue as suggested in another thread.

This should not be a generated header. It is shipped with the Unity installation.

I’m using unity 2020.3.6f1. is This could be related to the editor or is this comes with a change of setting?

Nothing about the header where the method in the error exists has changed in many Unity releases. There is not setting I am aware of that should impact this either.

I have tried with an empty project as well. Neither of these exports contains Il2cppAttribute.cpp file.

Sorry, I’m unclear how the Il2cppAttribute.cpp file plays into this discussion at all. Maybe I’ve missed something though.

@JoshPeterson

I’m sorry about that. It’s related to this one - https://forum.unity.com/threads/err…ier-il2cpp_codegen_initialize_method.1188880/ . Both come from the same project upgrade process.