sass / libsass-net

A lightweight wrapper around libsass
MIT License
94 stars 35 forks source link

Processor Architecture warning #39

Closed BarryFogarty closed 7 years ago

BarryFogarty commented 8 years ago

Hi,

I've been trying to get this library working via another project which consumes it (https://github.com/JimBobSquarePants/Cruncher), but it fails at runtime and the following warning is reported in Visual Studio 2012:

Warning There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "libsassnet, Version=1.0.0.0, Culture=neutral, processorArchitecture=AMD64", "AMD64". This mismatch may cause runtime failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and references, or take a dependency on references with a processor architecture that matches the targeted processor architecture of your project.

More detials on the runtime error are reported here https://github.com/JimBobSquarePants/Cruncher/issues/28

darrenkopp commented 8 years ago

Are you referencing libsass.x86 or libsass.x64?

BarryFogarty commented 8 years ago

libsass.x64

darrenkopp commented 8 years ago

And you definitely installed Visual C++ 2013 redist for x64? Not the 2012 one? That warning always appears when you choose MSIL but are referencing an assembly that has been compiled for a specific platform.

BarryFogarty commented 8 years ago

Yep pretty sure I have the right redist installed:

screenshot 2015-11-24 09 05 42

Looks like there are also older versions installed too though, maybe it's conflicting?

ericrovtar commented 8 years ago

I'm seeing this too with v2.1.3. If I try to upgrade the NuGet package to 2.1.3.1 it will build and throw the same warnings, but pages won't load. At least with v2.1.3, pages are still loading.

I have the Visual C++ 2013 Redistributable installed (both 32 & 64 bit): capture

As @BarryFogarty said, maybe the other packages are conflicting, though I haven't manually installed any of these. They've been installed by apps like Visual Studio and SQL Express, so I'm hesitant to remove any of them.

I'm referencing libsass.x64.

Any thoughts?

darrenkopp commented 7 years ago

Not sure if this is still an issue or not, but the new packages (alpha on nuget) released today are all MSIL for the .net assemblies, though you'll still need the redistributables for libsass