I'm still struggling to get this to work with a custom model importer.
| namespace MyNamespace |
| { |
| public class MyImporter : ContentImporter<MeshContent> |
| { |
| //... |
| } |
| } |
Looking at typical Content xml I see something like:
<Reference Include="MyImporter, Version=1.0.0.0, Culture=neutral, processorArchitecture=x86">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\..\..\bin\x86\Debug\MyImporter.dll</HintPath>
</Reference>
So I'm assuming I would need to do something like:
| BuildItem item = msBuildProject.AddNewItem("Reference", "MyImporter, Version=1.0.0.0, Culture=neutral, processorArchitecture=x86"); |
| item.SetMetadata("SpecificVersion", "false"); |
item.SetMetadata("HintPath", "C:\\MyImporter\\bin\\x86\\Debug\\MyImporter.dll");
|
| |
But I still get the error: Cannot find importer 'MyImporter'.
Actually the only way i've got it to even pick up my importer code is to do:
msBuildProject.AddNewImport("C:\\MyImporter\\MyImporter.csproj", null);
But even then it doesn't find all the source files and fails to compile.. Also this is for use at runtime, so I need to use the DLL.
Any ideas? Am I missing something obvious here?
thanks
/Steve