Cycling74 / rnbo.unity.audioplugin

RNBO Adapter for Unity's Native Audio Plugin
MIT License
40 stars 8 forks source link

Failed to find entry-points: Mono.Cecil.AssemblyResolutionException: Failed to resolve assembly … #4

Closed chausch closed 1 year ago

chausch commented 1 year ago

i can successfully build and import the package, but afterwards am greeted with these errors:

Assets/Plugins/MyCustomPlugin/Assets/Scripts/MyCustomPluginHelper.cs(7,7): error CS0246: The type or namespace name 'Cycling74' could not be found (are you missing a using directive or an assembly reference?)

Assets/Plugins/MyCustomPlugin/Assets/Scripts/MyCustomPluginHelper.cs(18,31): error CS0246: The type or namespace name 'ParameterChangedEventArgs' could not be found (are you missing a using directive or an assembly reference?)

Assets/Plugins/MyCustomPlugin/Assets/Scripts/MyCustomPluginHelper.cs(19,31): error CS0246: The type or namespace name 'MessageEventArgs' could not be found (are you missing a using directive or an assembly reference?)

Assets/Plugins/MyCustomPlugin/Assets/Scripts/MyCustomPluginHelper.cs(20,31): error CS0246: The type or namespace name 'TransportEventArgs' could not be found (are you missing a using directive or an assembly reference?)

Assets/Plugins/MyCustomPlugin/Assets/Scripts/MyCustomPluginHelper.cs(21,31): error CS0246: The type or namespace name 'TempoEventArgs' could not be found (are you missing a using directive or an assembly reference?)

Assets/Plugins/MyCustomPlugin/Assets/Scripts/MyCustomPluginHelper.cs(22,31): error CS0246: The type or namespace name 'BeatTimeEventArgs' could not be found (are you missing a using directive or an assembly reference?)

Assets/Plugins/MyCustomPlugin/Assets/Scripts/MyCustomPluginHelper.cs(23,31): error CS0246: The type or namespace name 'TimeSignatureEventArgs' could not be found (are you missing a using directive or an assembly reference?)

Assets/Plugins/MyCustomPlugin/Assets/Scripts/MyCustomPluginHelper.cs(126,19): error CS0246: The type or namespace name 'PatcherDescription' could not be found (are you missing a using directive or an assembly reference?)

Assets/Plugins/MyCustomPlugin/Assets/Scripts/MyCustomPluginHelper.cs(137,19): error CS0246: The type or namespace name 'ParameterInfo' could not be found (are you missing a using directive or an assembly reference?)

Assets/Plugins/MyCustomPlugin/Assets/Scripts/MyCustomPluginHelper.cs(147,19): error CS0246: The type or namespace name 'Port' could not be found (are you missing a using directive or an assembly reference?)

Assets/Plugins/MyCustomPlugin/Assets/Scripts/MyCustomPluginHelper.cs(157,19): error CS0246: The type or namespace name 'Port' could not be found (are you missing a using directive or an assembly reference?)

Assets/Plugins/MyCustomPlugin/Assets/Scripts/MyCustomPluginHelper.cs(167,19): error CS0246: The type or namespace name 'DataRef' could not be found (are you missing a using directive or an assembly reference?)

Assets/Plugins/MyCustomPlugin/Assets/Scripts/MyCustomPluginHelper.cs(177,19): error CS0246: The type or namespace name 'PresetEntry' could not be found (are you missing a using directive or an assembly reference?)

Assets/Plugins/MyCustomPlugin/Assets/Scripts/MyCustomPluginHelper.cs(271,19): error CS0246: The type or namespace name 'ParameterInfo' could not be found (are you missing a using directive or an assembly reference?)

Assets/Plugins/MyCustomPlugin/Assets/Scripts/MyCustomPluginHelper.cs(272,19): error CS0246: The type or namespace name 'ParameterInfo' could not be found (are you missing a using directive or an assembly reference?)

Assets/Plugins/MyCustomPlugin/Assets/Scripts/MyCustomPluginHelper.cs(273,19): error CS0246: The type or namespace name 'ParameterInfo' could not be found (are you missing a using directive or an assembly reference?)

Assets/Plugins/MyCustomPlugin/Assets/Scripts/MyCustomPluginHelper.cs(125,20): error CS0246: The type or namespace name 'PatcherDescription' could not be found (are you missing a using directive or an assembly reference?)

Assets/Plugins/MyCustomPlugin/Assets/Scripts/MyCustomPluginHelper.cs(136,20): error CS0246: The type or namespace name 'ParameterInfo' could not be found (are you missing a using directive or an assembly reference?)

Assets/Plugins/MyCustomPlugin/Assets/Scripts/MyCustomPluginHelper.cs(146,20): error CS0246: The type or namespace name 'Port' could not be found (are you missing a using directive or an assembly reference?)

Assets/Plugins/MyCustomPlugin/Assets/Scripts/MyCustomPluginHelper.cs(156,20): error CS0246: The type or namespace name 'Port' could not be found (are you missing a using directive or an assembly reference?)

Assets/Plugins/MyCustomPlugin/Assets/Scripts/MyCustomPluginHelper.cs(166,20): error CS0246: The type or namespace name 'DataRef' could not be found (are you missing a using directive or an assembly reference?)

Assets/Plugins/MyCustomPlugin/Assets/Scripts/MyCustomPluginHelper.cs(176,20): error CS0246: The type or namespace name 'PresetEntry' could not be found (are you missing a using directive or an assembly reference?)

Failed to find entry-points:
Mono.Cecil.AssemblyResolutionException: Failed to resolve assembly: 'Cycling74.MyCustomPluginHelper.cs, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'
  at Mono.Cecil.BaseAssemblyResolver.Resolve (Mono.Cecil.AssemblyNameReference name, Mono.Cecil.ReaderParameters parameters) [0x00105] in <ebb9e4250ed24cbfa42055e3532ef311>:0 
  at zzzUnity.Burst.CodeGen.AssemblyResolver.Resolve (Mono.Cecil.AssemblyNameReference name) [0x00039] in <a2dd15248a25411e914af2a2c82fb63f>:0 
  at Burst.Compiler.IL.AssemblyLoader.Resolve (Mono.Cecil.AssemblyNameReference name) [0x00079] in <a2dd15248a25411e914af2a2c82fb63f>:0 
  at Burst.Compiler.IL.Server.EntryPointMethodFinder.FindEntryPoints (System.String[] rootAssemblyNames, Burst.Compiler.IL.Hashing.CacheRuntime.HashCacheAssemblyStore assemblyStore, Burst.Compiler.IL.AssemblyLoader assemblyLoader, Burst.Compiler.IL.NativeCompilerOptions options, Burst.Compiler.IL.Server.ProfileDelegate profileCallback, System.Boolean includeRootAssemblyReferences, System.Boolean splitTargets, Burst.Compiler.IL.Helpers.DebugLogWriter debugWriter) [0x00055] in <a2dd15248a25411e914af2a2c82fb63f>:0 
  at Burst.Compiler.IL.Server.FindMethodsJob.Execute (Burst.Compiler.IL.Server.CompilerServerJobExecutionContext context) [0x00133] in <a2dd15248a25411e914af2a2c82fb63f>:0 

While compiling job:

unity version 2021.3.21f1, mac os 13.2.1, m1 max

x37v commented 1 year ago

@chausch did you add RNBOTypes ? https://github.com/Cycling74/rnbo.unity.audioplugin/blob/main/docs/GETTING_STARTED.md#installation

x37v commented 1 year ago

ahhh.. @chausch it looks like you're installing your custom plugin package in Assets/Plugins. If you want the plugin to be tracked with your project, I believe you want to install it in a directory next to Assets called Packages

chausch commented 1 year ago

@chausch did you add RNBOTypes ? https://github.com/Cycling74/rnbo.unity.audioplugin/blob/main/docs/GETTING_STARTED.md#installation

oh sorry, didn't see that! it works now!! thanks so much!!!

x37v commented 1 year ago

just for posterity, here is an example file structure

image
chausch commented 1 year ago

thank you very much @x37v , it's working now. [ i'm trying to work out my setup here now, mainly attaching the plugin to ~10000 audio sources, from which only a very small fraction at times will be switched on at the same time. having trouble setting individual values, but i have not experimented enough to write a clear question … 😅 ] thanks for your quick help in getting this running!