Showing posts with label Visual Studio. Show all posts
Showing posts with label Visual Studio. Show all posts

Monday, January 13, 2025

How to add the .NET MAUI App Accelerator in Visual Studio

 To add the .NET MAUI App Accelerator in Visual Studio, follow these steps:

Prerequisites:

  1. Ensure you have Visual Studio 2022 (17.3 or later) installed on your machine.
  2. During installation, include the .NET Multi-platform App UI (MAUI) workload.

Steps to Add the .NET MAUI App Accelerator:

  1. Open Visual Studio: Launch Visual Studio on your system.

  2. Install the .NET MAUI Workload (if not installed):

    • Go to the Visual Studio Installer.
    • Modify your current installation of Visual Studio.
    • In the Workloads tab, check .NET Multi-platform App UI development.
    • Click Modify to install the necessary components.
  3. Launch the .NET MAUI App Accelerator:

    • Open Visual Studio and go to Extensions > Manage Extensions.
    • In the search bar, type Maui App Accelerator.
    • Select the appropriate entry and click Download.
  4. Restart Visual Studio: After downloading the extension, you need to restart Visual Studio to complete the installation.

  5. Use the App Accelerator:

    • After restarting, create a new project.
    • Look for the Maui App Accelerator template in the project types.
    • Select it and proceed with the configuration to generate a base .NET MAUI project structure with the accelerator’s features.
  6. Install Additional Dependencies (Optional): If your app requires specific libraries or templates, configure these after project creation via NuGet Package Manager.

Let me know if you need help with any step!

Tuesday, April 30, 2024

If you’re using Visual Studio to build your .NET MAUI app on a Mac, locating the IPA (iOS App Package) file can be a bit tricky

 If you’re using Visual Studio to build your .NET MAUI app on a Mac, locating the IPA (iOS App Package) file can be a bit tricky. Let’s explore where you can find it:

  1. Build Server Location:

    • When building a .NET MAUI app with a Mac as a build server, the “Show IPA File on Build Server” option in Visual Studio is grayed out.

    • However, you can still find the IPA file on the Mac.

    • Navigate to the following directory on your Mac:


~/Library/Caches/Xamarin/mtbs/builds

    • Replace ~ with your user’s home directory.

    • Keep in mind that the user’s Library folder is hidden by default. You can either:

      • Show hidden files using Cmd + Shift + . in Finder.
      • Navigate through the terminal or Finder’s “Go to folder…” option using Cmd + Shift + G.
  1. IPA File Location:

    • Inside the builds folder, you’ll find the generated IPA files corresponding to your .NET MAUI builds.


Remember that the ~/Library/Caches/Xamarin/mtbs/builds directory contains the IPA files created during the build process. If you encounter any issues or don’t see the expected files, double-check the path and ensure that you’re looking in the correct location.

Tuesday, April 13, 2021

How To Fix TF30063 Error - You Are Not Authorized To Access Team Foundation Service Error

If you get this error in Visual Studio TFS which says "You are not authorised to access Team Foundation Service" with error code TF30063. This error mostly happens when you are going to check in pending changes to TFS.

I was able to fix this error using following steps:

1) Try to connect to  project again, just click to icon next to Home icon and choose your project and then right click on project and click to Connect. This will be reconnected with project and we will able to access your project.


2). As we know, TFS is directly connect with IE browser. So, just open your Internet Explorer and logout with TFS account if you logged in. After successfully logging out, you just need to login again with your TFS account in IE. Before logginin into IE, please check the version of IE browser. It should be above IE 9. Once you have successfully logged in with TFS in IE, go to Visual Studio and check  and the error will be gone.

3) you can clear TFS cache:

C:\Users\UserName\AppData\Local\Microsoft\Team Foundation\7.0\Cache

4) If all above steps have failed to resolve this issue, try removing  TFS server and add again with Visual Studio.


Wednesday, June 10, 2020

Publish smaller apps with the Android App Bundle in Visual Studio

The Android App Bundle (.aab) is a new upload format that includes all of your app’s compiled code and resources, but defers APK generation and signing to Google Play at install time.

If you’re using Visual Studio, you can build your project as a signed app bundle in just a few clicks.

To enable support for Android App Bundles, you’ll need to opt-in to the bundle value of the Android Package Format property within your Android options. As you do this, ensure you change your project to a Release configuration as app bundles are intended for release packages only. To do this you can follow these steps:
  1. Right click your project, and select Properties.
  2. Navigate to Android Options.
  3. Change your configuration to Release.
  4. Change the Android Package Format to bundle.

Monday, May 14, 2018

How to prevent little black boxes not to be displayed in Simulator.

Disable Visual Studio  extra debug option
Try unchecking this option:
Tools > Options > Debugging > General > Enable UI Debugging Tools for XAML > Show runtime tools in the application

This will help in getting good screenshots because the little black boxes are displayed in Simulator.

Friday, May 4, 2018

Unable to launch Windows Simulator on machine

For microsoft account users:

C:\Windows\System32\runas.exe /user:MyEmailaddress@Sample.com "C:\Program Files (x86)\Common Files\microsoft shared\Windows Simulator\15.0\Microsoft.Windows.Simulator.exe"

You can either copy the command to cmd or create a shortcut.

Thursday, May 3, 2018

The breakpoint will not currently be hit. No symbols have been loaded

In Visual Studio:
Go to properties of portable solution. Build->Advanced->Debugging Information and change it from portable to full

Friday, September 2, 2016

How can I completely remove TFS Bindings

How can I completely remove TFS Bindings

In Visual Studio, try following:
File -> Source Control -> Advanced -> Change Source Control and then unbind and/or disconnect all projects and the solution.

Wednesday, December 23, 2015

Error Type universe cannot resolve assembly: System.Runtime, Version=4.0.0.0, in Visual Studio 2016


How to fix the Error  Type universe cannot resolve assembly: System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a

Run  the following command in the Package Manager Console 
PM> Install-Package Microsoft.NETCore.UniversalWindowsPlatform

Wednesday, November 20, 2013

Building Office 365 cloud business apps with Visual Studio 2013:

A really solid  article just released from MSDN Magazine about building Office 365 cloud business apps with Visual Studio 2013: http://spr.ly/6184jwiA

Monday, May 20, 2013

3rd Party library for Visual Studio

1) Callisto
A control suite for some common things a Windows 8 XAML application might want to include such as a Flyout, Menu, Rating, Settings Pane, and Pivot control.

To install Callisto, run the following command in the Package Manager Console
PM> Install-Package Callisto

2) Translator Service
http://translatorservice.codeplex.com/
To install Translator Service, run the following command in the Package Manager Console
PM> Install-Package TranslatorService.Speech

3) Windows Phone toolkit
Install-Package WPToolkit

4)AdDuplex control
Install-Package AdDuplexWindows

5)WIndows Azure Mobile Servuce
Install-Package WindowsAzure.MobileServices


TO  BE CONTINUED......

Tuesday, October 4, 2011

IE treeview control not displaying properly in .Net 2003 project

IE treeview control not displaying properly in .Net 2003 project
In one of my C# .Net 2003 Web project I had problem with IE treeview control displaying only lines of text, with no tree view formatting(when running from local host).


First check on your machine if ..\wwwroot\webctrl_client directory is there. If not you may have to download webcontrol from the following location.

http://www.microsoft.com/downloads/details.aspx?FamilyID=fac6350c-8ad6-4bca-8860-8a6ae3f64448&DisplayLang=en

My problem with treeview control not displaying properly was fixed by installing it from above mentioned location.

You may need to check this post if you still have issues:

http://forums.asp.net/p/969272/1217956.aspx

Thursday, September 15, 2011

How to Break on All Errors in Visua; Studio 2010?

Try make the following step.

 Go to Click on Debug / Exceptions... / Select in Common Language Runtime Exceptions and checked "Thrown".

Wednesday, July 27, 2011

Package Load Failure error with VisulStudio 2008

My Visual Studio 2008 as giving me following error whenever I tried to add web service to my project:


"Package ‘Visual Studio Explorers and Designers Package’ has failed to load properly ( GUID = {8D8529D3-625D-4496-8354-3DAD630ECC1B} ). Please contact package vendor for assistance. Application restart is recommended, due to possible environment corruption. Would you like to disable loading this package in the future? You may use ‘devenv /resetskippkgs’ to re-enable package loading"

I tried running devenv /resetskippkgs but it was still not helpful.

To fix this issue I had to remove the Source Analysis Tool for C# which I had installed couple of months back. Source Analysis is an internal tool that does somewhat FxCop does. While FxCop analyse the IL, Source Analysis analyse the source code itself.

How to upload app to macOS

1. Open Terminal Press Cmd (⌘) + Space , type Terminal , and hit Enter . 2. Navigate to Your Build Output Directory Your .app file is likel...