Closed sschmid closed 1 year ago
I extracted the affected code to a minimal standalone setup that can be tested easily:
Hi, sschmid. I'm stuck on a roslyn issue too. I was run all tests with Entitas-1.14.2, and I got several errors in Entitas.CodeGeneration.Tests. you can see the picture. Is this the same problem as yours? Were you fixed it?
@xtqqksszml yes, that's exactly the issue. Those fail for me too.
I recreated the issue in the minimal project setup mentioned above: https://github.com/sschmid/RoslynUnitTestIssue
Still not sure how to fix it... any help is appreciated
Solved by adding NuGet.Frameworks
package to the test project
https://github.com/sschmid/RoslynUnitTestIssue/issues/1#issuecomment-1348083201
@sschmid Thank you. I just tried it again, and It was solved.
Need help with Roslyn
I'm stuck on a roslyn issue and need help.
Setup:
I want to get the
ContextAttribute
from a component using Roslyn, e.g.Problem:
The
ContextAttribute
is not recognized.I created a branch with a failing unit test to reproduce and help debugging:
More info
Entitas.Context
instead ofEntitas.Plugins.Attributes.ContextAttribute("Test1")
AttributeClass
isExtendendErrorTypeSymbol
instead ofNonErrorTypedSymbol
System.Obsolete
is not recognizedMetadataReference
, but could not fix the Entitas attributesAssetComponent
similar to the test component, and the test passes.Summary:
Do I need to manually add more project or assembly references? Am I loading the project wrong? Do I somehow run the unit test in a different way as the code generator?
Any help is appreciated!