-
Notifications
You must be signed in to change notification settings - Fork 182
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
Method not found: 'Void System.AppDomainSetup.set_ApplicationBase(System.String)'. #1357
Comments
It looks like some assembly is missing (or the wrong version) during the build. Why don't you try to do something as simple as managed events? They are a great low-effort alternative to setup managed custom actions. Something like that: var project = new ManagedProject("MyProduct",
new Dir(@"%ProgramFiles%\My Company\My Product"),
. . .);
project.AfterInstall = arg =>
{
if (arg.IsInstalling || arg.IsUpgrading)
{
// do your get dll stuff
}
else
{
// possibly remove the downloaded dll
}
}; BTW |
I don't have AfterInstall available in Project. I am using those versions
|
It needs to be wixsharp/Source/src/WixSharp.Samples/Wix# Samples/Managed Setup/SetupEvents/setup.cs Line 172 in 6a60ce1
|
The error about a method not being found in the assembly. Meaning that the assembly is not what is expected to be. Any chance you are building on .NET instead of .NET Framework? Debugging build steps is easier than one can think. Wir WixSharp 4. Remove from the project file the post-build event, which runs the MSI builder assembly and now you can run the builder by yourself with F5 and breakpoints. This model can help you understand how it all works: |
It explains. WiX (not WixSharp) does not support .NET Core family. Only .NET Framework. That's why I always recommend creating a WixSharp project from the VS WixSharp template (it comes as a VS extension). There is no other way. If you are building CA then it has to be .NET Framework. |
Hello, I got this error when compiling with a managed action. It works when I remove it. Do you have any idea how to fix it? Thanks in advance.
The project
The line triggering the error
var installerPath = Compiler.BuildMsi(project);
The custom action:
Dependencies:
The text was updated successfully, but these errors were encountered: