Giter Club home page Giter Club logo

Comments (13)

SKProCH avatar SKProCH commented on June 8, 2024 1

It's should probably covered by this project: https://github.com/CastelloBrancoTecnologia/Material.Icons.UNO/

from material.icons.

SKProCH avatar SKProCH commented on June 8, 2024

Hello. Did you mean a package for WinUI or some set of WinUI styled icons?

from material.icons.

tinmac avatar tinmac commented on June 8, 2024

A set of material icons we can use in winui 3

from material.icons.

tinmac avatar tinmac commented on June 8, 2024

@SKProCH Im using WinAppSDK, Material.Icons.Uno is for Uno -> WinUI 3

WinAppSDK/WinUI 3 is gaining a bit of traction now, I have no clue how to go about this so relying on more of an expert in the font field

from material.icons.

SKProCH avatar SKProCH commented on June 8, 2024

Sorry, I can't fully get your point. Uno is just basically WinUI3 as far as I understand it. And also WinUI3 is a part of WinAppSDK. And you want a library for the WinAppSDK, so why is the Uno (WinUI) variant not suitable for you?

I just don't fully understand all this MS's zoo of UI frameworks.

from material.icons.

tinmac avatar tinmac commented on June 8, 2024

Here is a minimal GitHub project showing the issue

I appreciate it isnt your repo as such but it demonstrates the issue

from material.icons.

SKProCH avatar SKProCH commented on June 8, 2024

Seems like I can't build your project:

dotnet build
MSBuild version 17.8.3+195e7f5a3 for .NET
  Determining projects to restore...
  All projects are up-to-date for restore.
C:\Users\SKProCH\.nuget\packages\microsoft.windowsappsdk\1.4.230913002\buildTransitive\Microsoft.UI.Xaml.Markup.Compiler.interop.targets(590,9): error MSB3073: The command ""C:\Users\SKProCH\.nuget\packages\microsoft.windowsappsdk\1.4.230913002\buildTransitive\..\tools\net5.0\..\net472\XamlCompiler.exe" "obj\ARM64\Debug\net8.0-windows10.0.19041.0\\input.json" "obj\ARM
64\Debug\net8.0-windows10.0.19041.0\\output.json"" exited with code 1. [C:\Users\SKProCH\Downloads\WinUI3_MaterialIcons-master\WinUI3_MaterialIcons\WinUI3_MaterialIcons.csproj]

Looks like this issue: microsoft/microsoft-ui-xaml#8871

Probably you need to address this issue on the Material.Icons.Uno repository. In fact, the library for Uno/WinUI is located in a different repository, because I couldn't build the library for Uno/WinUI that was offered to me. Details and logs can be read here #26

I would really like to help, but apparently I won’t be able - all of Microsoft’s attempts at UI frameworks after WPF have such shitty cursed tooling that it’s naturally impossible to use them. Sorry.

from material.icons.

tinmac avatar tinmac commented on June 8, 2024

You would need to be on VS 2022 or VS Code (not sure about rider or other IDE's) & on a windows PC for the project to compile & run.

No worries tho I understand if its not your usual stack. Appreciate you trying to help 👍

from material.icons.

SKProCH avatar SKProCH commented on June 8, 2024

Can't manage VS Code to work properly - same error as just dotnet build. Forced to install VS, and seems like finally able to compile the project. Such awful developing experience! Require VS installing to just build project - not surprised why all these UI frameworks failed to get community love.

After commenting the button reference in code behind to fix the

The name 'myButton' does not exist in the current contex

After that I've getting this exception:

Type universe cannot resolve assembly: Uno.UI, Version=255.255.255.255

Is this exception what you experience?

After a bit of googling seems like fix described here:
https://platform.uno/docs/articles/uno-community-toolkit.html?tabs=tabid-winui#referencing-the-windows-community-toolkit-from-a-cross-targeted-library

Probably the problem is in <PackageReference Include="Uno.WinUI" Version="5.0.48" /> which should be conditionally imported as stated in link above.

from material.icons.

tinmac avatar tinmac commented on June 8, 2024

Sorry for the late reply

I don't see those errors you are getting, did you install the desktop workloads for VS 2022?

In Mainwindow if you comment out <icons:MaterialIcon ... it should build and run ok.

Here is the error I'm seeing

image

from material.icons.

SKProCH avatar SKProCH commented on June 8, 2024

Yep, seems like this is similar error. When I'm removing the element app will start fine.

Here is my errors:

image
image

Still think what conditional importing should help.

from material.icons.

tinmac avatar tinmac commented on June 8, 2024

Experimenting with the namespace but get a slightly different error

image

from material.icons.

SKProCH avatar SKProCH commented on June 8, 2024

This is because icons2 refer to main library Material.Icons which doesn't contains any controls - just icons data.

Still think that this issues should be resolved in Material.Icons.Uno repository using this Uno guide: https://platform.uno/docs/articles/uno-community-toolkit.html?tabs=tabid-winui#referencing-the-windows-community-toolkit-from-a-cross-targeted-library
There is nothing what I can do on my side.

from material.icons.

Related Issues (17)

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.