package can't find usings

In Visual Studio 2019 I frequently “Run Code Cleanup” with following fixers:

  • Remove unnecessary using
  • Sort using

Now I develop my first package and I thought that I can develop, instead of the Assets folder, my classes directly in my package folder.

  1. But if I copy & paste a class from my Assets folder to my package folder and “Run Code Cleanup” it removes many usings like “using UnityEngine;”.

  2. I also have a “Helper” class with static methods. If this class is in the Assets folder and I write in a class “Hel” Visual Studio show me this class.

If this class is in my package folder Visual Studio doesn’t show anything.

  1. How do you develop packages? Do you develop the classes in the Assets folder and when it is finished you copy & paste the classes to the package folder?

If you are using Unity 2019.4 or higher, you have to enable this

1 Like

Thank you so much