-
-
Notifications
You must be signed in to change notification settings - Fork 33
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
InjectModuleInitializer.exe for .NET 4.5 or greater #18
Comments
Creating a .config in the same folder as the executable with a supportedRuntime entry should work. |
We have the same problem - our builds are failing on Jenkins because .NET 3.5 isn't installed on the build agents. This also makes it a little bit difficult to create the .config file, as Nuget is managing the packages. |
For anyone who comes hunting for a solution to this, I have a workaround. The symptom is that your build will fail with something like:
The solution is to add a .config file to InjectModuleInitializer.exe as part of the build process, so whenever Nuget fetches a new version we add the config file alongside it. To do this:
Note the Hey presto, the config file will be copied alongside InjectModuleInitializer.exe just before it is used and it will run under .NET 4. |
Currently the InjectModuleInitializer.exe needs .NET 3.5 to run. Could you create a version that targets the .NET framework 4.5 or greater?
The text was updated successfully, but these errors were encountered: