Code Monkey home page Code Monkey logo

Comments (6)

mattleibow avatar mattleibow commented on May 14, 2024 1

Closing this as I have added logic to try and detect the correct libraries to copy with AnyCPU.

from skiasharp.

pauldendulk avatar pauldendulk commented on May 14, 2024

Simply select one of the alternative profiles from the compile targets dropdown, like 'Debug|x86'. Perhaps the 'Release' and 'Debug' targets could be removed.

from skiasharp.

KvanTTT avatar KvanTTT commented on May 14, 2024

Adding new Platform x64 in Configuration Manager solved my same issue.

from skiasharp.

tdoneal avatar tdoneal commented on May 14, 2024

I mean, why doesn't it just default to whatever the compiler is using if not specified? Or at minimum, it should default to x86...

from skiasharp.

mattleibow avatar mattleibow commented on May 14, 2024

This is related to #190

The latest changes make a choice to use the native bits that the platform specifies (and just copies both for AnyCPU), but at an app level, the platform needs to be specified.

On your point of picking the default (aka, pick x86 or x64), we might be able to do something like that... I am just preparing to release the next version, but maybe I can fit this in:

How does adding a MSBuild property in the csproj sound? So, we can still target AnyCPU, but if there is something like this:

<OverrideSkiaSharpPlatform>x86</OverrideSkiaSharpPlatform>

then, instead of copying both platforms to the output location, it just pretends it is an x86 app?

from skiasharp.

tdoneal avatar tdoneal commented on May 14, 2024

I don't understand MSBuild at all, so I won't comment there. I would just say it's worth it to not have to google an error message and waste time fixing configuration issues. So whatever makes it "just work" is likely best (in my humble opinion).

from skiasharp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.