M
Mike Carroll Mac5iron
Guest
Hi,
I am trying to find the types (classes) that are part of the ViewModels for an Asp.net Core 3.1 web app executable.
I am using an asp.net core 3.1 console app as part of the post build process. (The idea being that I would like to auto generate some typescript files based on the classes marked by custom attributes))
I can load other dlls in the target directory using Assembly.LoadFrom(filepath). But when I try to load the exe using this technique it fails due to "Bad IL Format". I have created the simplest solution with a simple web app and a simple console app each using the same target and the same cpu configuration. I have even added the <loadFromRemoteSources enabled="true|false"/> to the app.config.
Nothing I have tried has stopped this error from being raised.
Any thoughts or direction would be appreciated.
Thanks,
Mike
Continue reading...
I am trying to find the types (classes) that are part of the ViewModels for an Asp.net Core 3.1 web app executable.
I am using an asp.net core 3.1 console app as part of the post build process. (The idea being that I would like to auto generate some typescript files based on the classes marked by custom attributes))
I can load other dlls in the target directory using Assembly.LoadFrom(filepath). But when I try to load the exe using this technique it fails due to "Bad IL Format". I have created the simplest solution with a simple web app and a simple console app each using the same target and the same cpu configuration. I have even added the <loadFromRemoteSources enabled="true|false"/> to the app.config.
Nothing I have tried has stopped this error from being raised.
Any thoughts or direction would be appreciated.
Thanks,
Mike
Continue reading...