fsprojects / FsXaml

F# Tools for working with XAML Projects
http://fsprojects.github.io/FsXaml/
MIT License
171 stars 48 forks source link

Can't build x64 Solution config with FsXaml in an x64 app, and x64 library (v2) #34

Closed marklam closed 8 years ago

marklam commented 8 years ago

Description

If you create a Xaml app using FsXaml, referencing a separate library, and set their build configurations and flags to x64, then building the solution fails with this error: parse error FS3053: error : The type provider constructor has thrown an exception: Could not load file or assembly 'Testx64Library, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'. This assembly was compiled for a different processor.

Repro steps

Build the x64 configuration of the project at https://github.com/marklam/bugrepro-fsxaml-19 This includes a ViewModel assembly set to x64, and an app set to x64

Expected behavior

A working (but empty) app, as seen when building 'Any CPU'

Actual behavior

parse error FS3053: error : The type provider constructor has thrown an exception: Could not load file or assembly 'Testx64Library, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'. This assembly was compiled for a different processor.

ReedCopsey commented 8 years ago

@marklam I believe this will now be fixed in Beta 3: https://www.nuget.org/packages/FsXaml.Wpf/2.0.0-beta3

Please test and let me know if it works for you. It works in my testing.

marklam commented 8 years ago

Yes, that's working for me. Thanks!

ReedCopsey commented 8 years ago

Glad to hear it! On May 17, 2016 5:07 AM, "Mark Lambert" notifications@github.com wrote:

Yes, that's working for me. Thanks!

— You are receiving this because you modified the open/close state. Reply to this email directly or view it on GitHub https://github.com/fsprojects/FsXaml/issues/34#issuecomment-219698354