Skip to content

Repo created exclusively to realize tests regarding Roslyn Analyzers in the Unity Game Engine.

Notifications You must be signed in to change notification settings

sandolkakos/unity-roslyn-analyzers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

unity-roslyn-analyzers

Repo created exclusively to realize tests regarding Roslyn Analyzers in the Unity Game Engine.

The Microsoft.Unity.Analyzers.dll used in that repo is a compiled version that threats the rule below as error:

Every script described below is a MonoBehaviour with an empty Start method, which should show errors in the Unity Console.

Since our intention in that example is to only run the Analyzers for the FeatureA, Unity will should the error only for the MyFeatureA.cs script as you can see in the image below:

Files settings:

  • Assets/RoslynAnalyzers/Microsoft.Unity.Analyzers.dll has a Analyzers.asmdef close to it.


  • Assets/Scripts/FeatureA/MyFeatureA.cs has a FeatureA.asmdef close to it (which has a reference to Analyzers.asmdef).


  • Assets/Scripts/FeatureB/MyFeatureB.cs has a FeatureB.asmdef close to it (but without reference to Analyzers.asmdef)


  • Assets/Scripts/FeatureC/MyFeatureC.cs has not asmdef (meaning it is part of the Assembly-CSharp.dll)


  • Packages/00 - Simple Package/MySimplePackageScript.cs has an asmdef for testing purposes.


About

Repo created exclusively to realize tests regarding Roslyn Analyzers in the Unity Game Engine.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages