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

.net core: project.Platform is incompatible with project.WxsFiles.Add() #1728

Open
fredemmott opened this issue Jan 18, 2025 · 2 comments
Open

Comments

@fredemmott
Copy link

project.Platform = Platform.x64;
project.WxsFiles.Add("installer/WixUI_Minimal_NoEULA.wxs");

results in:

wix.exe : error WIX0268: The argument -arch value 'x64C:\Users\fred\code\OpenKneeboard\build-relwithdebinfo\out\RelWithDebInfo\installer\WixUI_Minimal_NoEULA.wxs' is invalid. Use one of the following values x86, x64, arm64

As a workaround, I'll be embedding the elements I need in a WixSourceGenerated handler.

@oleg-shilo
Copy link
Owner

Thank you. There is a mistake in the code. It's corrected now ad will be available in the very next release.

In the meantime please use this workaround:

project.WixBuildCommandGenerated += 
    command => command.Replace("-arch x64", "-arch x64 ");

@oleg-shilo
Copy link
Owner

Done. Please update to v2.4.4

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

No branches or pull requests

2 participants