András Tóth‘s professional blog
banditoth.net

Hey there 👋, I’m banditoth a .NET MAUI developer from Hungary.
I write about software development with .NET technologies.

You can find me on:
LinkedIn | Github | StackOverflow | X / Twitter | Threads

Tag: osx

  • Visual Studio for Mac : Delete all ‘bin’ and ‘obj’ with script

    Visual Studio for Mac : Delete all ‘bin’ and ‘obj’ with script

    This content has 4 years. Some of the information in this post may be out of date or no longer work. Please, read this page keeping its age in your mind.

    Open a terminal where your source codes are stored, and give out the following command:

    sudo find . -iname "bin" -o -iname "obj" | xargs rm -rf
    

    Type your superuser password when the terminal prompts it. This will clean up some hard disk space for you.

  • Azure DevOps / VisualStudio.com hosted version controlling with SourceTree on MacOSX

    This content has 4 years. Some of the information in this post may be out of date or no longer work. Please, read this page keeping its age in your mind.

    If you want to access your Git based repository with SourceTree, you need to genereate a Personal Access Token for your account in DevOps. Follow the tutorial above:

    https://docs.microsoft.com/hu-hu/azure/devops/organizations/accounts/use-personal-access-tokens-to-authenticate?view=azure-devops&viewFallbackFrom=vsts&tabs=preview-page

    After you have done with setting up PAT, set up SourceTree on Mac:

    1. SourceTree > Preferences
    2. Accounts > Add…

    Enter your devops server url. ex: https://AnAwesomeCompany.visualstudio.com/
    As username, enter your e-mail address
    As password, paste your private access token
    Set the protocol to HTTPS.

    After the success configuration, you will see your remote repositories on the main screen of Remotes section.

  • Multilingual App Toolkit build fail Visual Studio Mac-en

    This content has 5 years. Some of the information in this post may be out of date or no longer work. Please, read this page keeping its age in your mind.
    ProjectName is Multilingual build enabled, but the Multilingual App Toolkit is unavailable during the build
    

    Mivel a Mac-es VS-hez nincs Multilingual App Toolkit, ezért ideiglenesen ki kell kapcsolni a buildből a Toolkitet. Ezt a solution unloadolásával tehetjük meg, majd szerkesztjük a .csproj fájlt a következőek szerint:

    A fájl végén található Import tageket ki-XML-kommentezzük:

    <!-- <Import Project="$(MSBuildExtensionsPath)\Microsoft\Multilingual App Toolkit\Microsoft.Multilingual.ResxResources.targets" Label="MultilingualAppToolkit" Condition="Exists('$(MSBuildExtensionsPath)\Microsoft\Multilingual App Toolkit\v$(MultilingualAppToolkitVersion)\Microsoft.Multilingual.ResxResources.targets')" /> -->
      <!-- <Target Name="MATPrerequisite" BeforeTargets="PrepareForBuild" Condition="!Exists('$(MSBuildExtensionsPath)\Microsoft\Multilingual App Toolkit\Microsoft.Multilingual.ResxResources.targets')" Label="MultilingualAppToolkit">
        <Warning Text="$(MSBuildProjectFile) is Multilingual build enabled, but the Multilingual App Toolkit is unavailable during the build. If building with Visual Studio, please check to ensure that toolkit is properly installed." />
      </Target> -->