Comments (6)
Closing this as I have added logic to try and detect the correct libraries to copy with AnyCPU.
from skiasharp.
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.
Adding new Platform x64 in Configuration Manager solved my same issue.
from skiasharp.
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.
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.
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)
- [CRASH] System.NullReferenceException when Invalidating an SKGLView after porting Xamarin.Forms app to MAUI HOT 4
- [BUG] SKCanvasView's PaintSurface is being called even when hidden from view upon invalidating surface of another SKCanvasView HOT 4
- [BUG] On iOS only, .NET 9.0 / SkiaSharp 3.0 SKCanvasView inside a custom control does not draw itself upon first appearance of the first page HOT 1
- [BUG] XAML Live Preview for Android shows most SKCanvasViews distorted (Visual Studio 2022 17.10 Preview 2 / .NET 9.0 Preview 2)
- [FEATURE] Support Direct3D HOT 4
- [BUG] `SKNativeObject` instances are not kept alive during native API calls
- [BUG] Annoying warning on .NET Framework 4.8 project with SkiaSharp 2.88.6 or 2.88.7 HOT 17
- [BUG] Text Missing When Running From AWS Lambda HOT 3
- [BUG] SkiaSharp 3.0 Preview 3.1 crashes the release version of the .NET MAUI app at start, debug works fine HOT 9
- [BUG] Drawing is warped during window resize on NVIDIA graphics card
- Canvas Info shows huge size when using Chrome Debugger and using Device Emulation
- [BUG] Build outputs duplicate native libraries HOT 2
- Skia Blazor Runs in debugger but not when deployed
- [BUG] SKGLElement gives black screen on Intel integrated graphics
- [BUG] SKGLView on .NET MAUI is missing a handler (the return) HOT 6
- [BUG] On iOS, with .NET 9.0 Preview 2 and 3 and SkiaSharp 3.0 Preview 2.1 / 3.1, SKGLView corrupts SkiaSharp memory and stops SkiaSharp from functioning HOT 7
- [BUG] The position draw on SKXamCanvas is not correct. #1585 Was this a bug that you worked around? HOT 3
- [PERFORMANCE] On iOS, layout speed of pages with SKGLView is slow, making layout wobbly at start (SKCanvasView is instantaneous)
- [BUG] SkiaSharp 2.88.8 (Xamarin) crashes randomly with Mali GPUs HOT 4
- [BUG] SKPaint's IsAntiAlisasing is on on Android but off on iOS by default (Xamarin / SkiaSharp 2.88.8) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from skiasharp.