Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generation from DLL containing reference to WindowsBase.dll #200

Open
mkopacka opened this issue Apr 19, 2024 · 0 comments
Open

Generation from DLL containing reference to WindowsBase.dll #200

mkopacka opened this issue Apr 19, 2024 · 0 comments

Comments

@mkopacka
Copy link

mkopacka commented Apr 19, 2024

I have library project with the classes. The project has <UseWPF> set to true as it uses WPF types.
I'd like to generate some classes from such DLL, but it throws an exception of:

image

that means, that I tried to include WindowsBase into the assemblies list. However, it requires also PresentationFramework and PresentationCore and if I add these, I receive an error about bitness problem.

image

My tgconfig looks currently like this:

{
  "generationSpecs": [ "MyGenerationSpec" ],
  "assemblies": [
    "WindowsBase.dll",
    "PresentationFramework.dll",
    "PresentationCore.dll",
    "bin/debug/net6.0/Generator.dll"
  ]
}
public class MyGenerationSpec : GenerationSpec
{
    public MyGenerationSpec()
    {
        AddClass<MyClassToBeGenerated>();
    }
}

I am unable to find out how to affect this. What is proper procedure for this case? I tried to set project to x86/x64/Any CPU so it is most likely about the tool and DLL. PresentationCore/PresentationFramework are platform-agnostic.

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant