Code Monkey home page Code Monkey logo

Comments (22)

waletoye avatar waletoye commented on June 30, 2024 9

any updates on this??

from xamlstyler.

NicoVermeir avatar NicoVermeir commented on June 30, 2024 8

update on this: thanks to the MFractor team we now have an idea on where to start and are actively working on porting the VS4mac extension to VS 2022. Since there are quite a few breaking changes in the extension SDK this will however take a while.

Should anyone be interested in helping out, let me know and hopefully we can get a working version out soon.

from xamlstyler.

NicoVermeir avatar NicoVermeir commented on June 30, 2024 6

Sorry for the long silence on this everyone. I have been looking into the extension story for VS4Mac and it's all very confusing. It looks like no documentation exists, can't find an SDK and I'm reading several reports on how publishing is not possible right now either.
I have reached out to Microsoft for more information and will keep you posted.

from xamlstyler.

roughiain avatar roughiain commented on June 30, 2024 4

Install the cli tool per wiki and run xstyler -f *.xaml. Wrap that up in gulp or grunt script to look for xaml file changes and auto formatting.

from xamlstyler.

bcaceiro avatar bcaceiro commented on June 30, 2024 4

Any news regarding VSMac2022 version?

from xamlstyler.

timahrentlov avatar timahrentlov commented on June 30, 2024 3

This is the only thing missing before I can move to the new version

from xamlstyler.

roughiain avatar roughiain commented on June 30, 2024 3

not sure why the need to wrap it in a script.

Replace {macUser} with your user folder

External Tool settings

Command: /Users/{macUser}/.dotnet/tools/xstyler
Arguments: -f ${FileDir}/${FileName} -c /Users/{macUser}/projects/settings/xstyler.json I'm passing a config file with custom settings
KeyBinding: ctrl shift f

from xamlstyler.

HL-Tech avatar HL-Tech commented on June 30, 2024 2

This is highly requested! @grochocki When should we expect support for VS For Mac 2022?

from xamlstyler.

rudyspano avatar rudyspano commented on June 30, 2024 2

Not optimal, but you can use both VS external tool feature and a script

image

Script example to adapt:

#!/usr/bin/env bash

xaml_styler=$HOME/.nuget/packages/xamlstyler.console/3.0.0/tools/xstyler.exe
filename=$1

if [ ! -f $xamlstyler ]; then
    echo "XamlStyler not found ($xamlstyler)"
    exit 1
fi

mono $xaml_styler -f $filename

from xamlstyler.

NicoVermeir avatar NicoVermeir commented on June 30, 2024 2

@FreakyAli still working on it, it's not an easy upgrade :)

from xamlstyler.

tamasszadvari avatar tamasszadvari commented on June 30, 2024 1

Are there any update on this? Using VS for Mac 2022 is almost mandatory on M1 chip Macbook's, so it's really important to have the XAML Styler for that IDE too.

from xamlstyler.

NicoVermeir avatar NicoVermeir commented on June 30, 2024 1

quick update on this: basic functionality is working, but I'm having trouble getting the options panel in VS4mac. I'm not an experienced Mac UI developer so I could use some help here if anyone's up for it.

from xamlstyler.

roughiain avatar roughiain commented on June 30, 2024 1

Install as a global tool

dotnet tool install --global XamlStyler.Console

More info as using it as script here https://github.com/Xavalon/XamlStyler/wiki/Script-Integration

from xamlstyler.

Saccomani avatar Saccomani commented on June 30, 2024

I am using this script, working great!

`#!/usr/bin/env bash

xaml_styler=$HOME/.nuget/packages/xamlstyler.console/3.2206.4/tools/net6.0/any/xstyler.dll
filename=$1

if [ ! -f $xamlstyler ]; then
echo "XamlStyler not found ($xamlstyler)"
exit 1
fi

dotnet $xaml_styler -f $filename
`

from xamlstyler.

Saratsin avatar Saratsin commented on June 30, 2024

update on this: thanks to the MFractor team we now have an idea on where to start and are actively working on porting the VS4mac extension to VS 2022. Since there are quite a few breaking changes in the extension SDK this will however take a while.

Should anyone be interested in helping out, let me know and hopefully we can get a working version out soon.

@NicoVermeir , I am the author of the initial version of Visual Studio for Mac extension, maybe I can help with this port. But I definitely will need help of the MFractor team, they have much greater expertise and Microsoft has drastically changed Visual Studio for Mac 2022

from xamlstyler.

NicoVermeir avatar NicoVermeir commented on June 30, 2024

@Saratsin would love your help! I'm at the point where it builds but when I run the extension I get a file not found exceptions on the Irony library. Any ideas on that one? If you want I can publish the branch already so you can take a look

from xamlstyler.

Saratsin avatar Saratsin commented on June 30, 2024

@NicoVermeir yes, publish please your changes to the separate branch, I will check how it is working there

from xamlstyler.

NicoVermeir avatar NicoVermeir commented on June 30, 2024

@Saratsin great! here it is: https://github.com/Xavalon/XamlStyler/tree/feature/vs4mac2022

from xamlstyler.

FreakyAli avatar FreakyAli commented on June 30, 2024

Hey guys any updates, I am getting restless 😀

from xamlstyler.

FreakyAli avatar FreakyAli commented on June 30, 2024

@NicoVermeir Wish I could somehow show you my appreciation to you...

from xamlstyler.

NicoVermeir avatar NicoVermeir commented on June 30, 2024

@bcaceiro I'm still looking for help since I have limited access to a mac, and limited knowledge about vs4mac

from xamlstyler.

EmilAlipiev avatar EmilAlipiev commented on June 30, 2024

@roughiain can you please explain little bit more how this should work? do you have to download on the path /Users/{macUser}/.dotnet/tools/xstyler ? what i am supposed to have it here?

from xamlstyler.

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.