konh / unityrefanalyzer Goto Github PK
View Code? Open in Web Editor NEWRoslyn code analyzer to find method usages on scenes
License: MIT License
Roslyn code analyzer to find method usages on scenes
License: MIT License
It's annoying to write such code:
UnityRefAnalyzer/RefAnalyzer/RefAnalyzer/Data/RefNode.cs
Lines 20 to 22 in cfd657f
Which scenes & objects affected
We need simple option to export unitypackage without tests and examples with one-click from Unity Editor.
When it started, we got exception:
Analyzer 'RefAnalyzer.RefAnalyzer' threw an exception of type 'System.IO.FileNotFoundException' with message 'Could not load file or assembly 'Microsoft.CodeAnalysis.Workspaces, Version=2.9.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies.'.
It's related to way how we find refs file, based on solution, which is Visual Studio based. Need to find workaround.
Currently we get exception on this line:
System.IO.FileNotFoundException: 'Could not load file or assembly 'Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The system cannot find the file specified.'
It's related to external dependency, which isn't copied to analyzer package.
Solution isn't yet found.
All info shown properly in Visual Studio, but not Rider.
UnityJsonUtility is very limited and lead to bad code like that (we want properties for incapsulation, but needs fields for serialization and we can't use shorter names for it) - https://github.com/KonH/UnityRefAnalyzer/blob/master/UnityProject/Assets/RefAnalyzer/Scripts/Data/RefNode.cs.
I suggest to use the same Newtonsoft.Json here and merge all data code to assemply, which will be referenced by Analyzer and placed in plugins on Exporter side.
As I know, analyzer development is limited in it, but analyzer can be added and usable
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.