JetBrains / resharper-unity

Unity support for both ReSharper and Rider
Apache License 2.0
1.21k stars 134 forks source link

Can't get it to work with Unity 2022.2 and Visual Studio 2022 #2379

Closed innat3 closed 1 year ago

innat3 commented 1 year ago

I'm getting the following warning after installing this package in Visual Studio 2022:

Warning CS8032 An instance of analyzer Unity.MonoScriptGenerator.MonoScriptInfoGenerator cannot be created from C:\Program Files\Unity\Hub\Editor\2022.2.1f1\Editor\Data\Tools\Unity.SourceGenerators\Unity.SourceGenerators.dll: Could not load file or assembly 'netstandard, Version=2.1.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The system cannot find the file specified..

My Unity project is targeting .NET Standard 2.1. Any ideas?

citizenmatt commented 1 year ago

Hi. Could you provide some more details, please? Which package do you mean? This repo is for a plugin for Rider and ReSharper, and isn't a package you can install in Visual Studio.

innat3 commented 1 year ago

Hi @citizenmatt, I've a similar issue to this Post. I want to use Resharper with Visual Studio on my Unity projects, but I get a lot of "fake" warnings in my code (due to how Unity handles programming syntax). This used to be solved with a handy extension from the Resharper Extension Manager which added Unity support for Visual Studio but I can't find it anymore... So I came here and tried to download and add the nuget package manually. Thats where the warning message I previously posted comes into play.

CliffCawley commented 1 year ago

@citizenmatt I've got the same issue in Resharper in VS 2022.

The addon no longer appears when searching in the 'ReSharper Extensions' window and if I download it and try to add it manually, it fails to load.

This is using the latest Resharper 2022.3.1 built on 2022-12-18 (2022.3.20221218.162156) and Visual Studio 2022 (64-bit) v17.4.3.

jinroku42 commented 1 year ago

I have kind of similar issue. On clean install of VS 2022 and latest Resharper I can't find Unity extension in .NET Products Gallery, but I also can't add it manualy too. изображение изображение

citizenmatt commented 1 year ago

Apologies folks. The latest version isn't currently available. I'll get it uploaded this week, hopefully tomorrow.

CDTR-MattConroy commented 1 year ago

@citizenmatt Any update on this?

citizenmatt commented 1 year ago

Sorry for the delay (thanks Windows VM!) the plugin for ReSharper 2022.3 is now available in the extension manager.