Resharper-unity: Issues with Jetbrains.Annotations in latest nightly

Created on 29 Mar 2018  路  6Comments  路  Source: JetBrains/resharper-unity

Just updated to latest nightly and got errors when using Jetbrains.Annotations attributes anywhere.

Example

The type 'CanBeNullAttribute' exists in both 'JetBrains.Rider.Unity.Editor.Plugin.Repacked, Version=2.1.3.3730, Culture=neutral, PublicKeyToken=null' and 'UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null

Using latest Unity b12 with nightly rider 181.4379.256
Also trying out the latest alpha of Unity's incremental compiler (https://forum.unity.com/threads/unity-incremental-c-compiler.523993/)

Did something change in latest nightly? I glanced over at the commits and didn't notice anything.

All 6 comments

Ah, yes. The internalise flag for ILRepack was switched to false in this commit so the annotation types are public when they were previously internal. There's no local workaround, I'm afraid, other than rolling back nightly in Toolbox. @van800 needs to take a look

Yeah, sorry, I know the reason. Will fix next week.

@citizenmatt I disabled auto-install for the plugin and rolled it back to the previous version. This way I can keep the latest nightly Rider and still get a functional integration with Unity (unless this is breaking something and I didn't notice yet).

If anyone falls here meanwhile and wants the latest build, you can try building it locally. It's working for me.
Just set the mentioned Internalize flag in ILRepack.targets to true and build away.

@SugoiDev The fix for this is on the way to the Nightly channel, not sure whether it'll make it in today's build. I'll check for it tomorrow.

Fix is public in the nightly #181.4379.683

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Theby picture Theby  路  3Comments

real-mikhail picture real-mikhail  路  5Comments

harryr0se picture harryr0se  路  5Comments

persn picture persn  路  3Comments

RealMSHB picture RealMSHB  路  3Comments