Browsed by
Tag: C#

PendingIntent on S+ devices

PendingIntent on S+ devices

One of my Android apps includes a widget that auto-updates both at a fixed interval (AlarmService) and when tapping on the widget. In the past this was accomplished with something like this (C# Xamarin): This has worked for years just fine, not realizing that S+ devices (or anything targeting version 31 or above) on Android requires a PendingIntentFlag value in that GetBroadcast call. A brief search returned how “easy” this is, just add in a flag for PendingIntentFlags.UpdateCurrent or PendingIntentFlags.Mutable…

Read More Read More

Azure DevOps Error MAUI0000: System.IO.IOException: The process cannot access the file ‘D:\a\1\s\obj\Release\net6.0-android\resizetizer\r\drawable\icon.png’ because it is being used by another process.

Azure DevOps Error MAUI0000: System.IO.IOException: The process cannot access the file ‘D:\a\1\s\obj\Release\net6.0-android\resizetizer\r\drawable\icon.png’ because it is being used by another process.

This was driving me nuts for a few days, and unfortunately there’s very little documentation online on .Net MAUI…I’m hoping because it’s still relatively new. Don’t get me started on how frustrating both .Net MAUI and Xamarin can be…I’m sure you already know.

SharePoint: Updating file/folder metadata with a # in the name

SharePoint: Updating file/folder metadata with a # in the name

For the longest time this wasn’t an issue. There were just certain characters that weren’t allowed as file or folder names in the Windows world (%&#/\ and so on). Not too long ago, Microsoft decided it’s ok to accept files and folders in SharePoint with either the % or the # in the file or folder name. Great for end users who enjoy that sort of thing…awful for us developers. For example, in the past I’m sure you did something…

Read More Read More

Writing to the ULS in SharePoint 2010

Writing to the ULS in SharePoint 2010

Here’s a quick, easy, 3 step method to log your custom events to the ULS while writing a SharePoint 2010 solution: Add a reference to Microsoft.Office.Server (located in C:Program FilesCommon FilesMicrosoft SharedWeb Server Extensions14ISAPI on your SharePoint server) Add a using statement at the top of your code like so: using Microsoft.Office.Server.Diagnostics; Add the following line wherever you want the message to appear in the ULS PortalLog.LogString(<whatever you want to put in the ULS>) See? That wasn’t so bad!

Visual Studio language support for C# not installed

Visual Studio language support for C# not installed

What?  I just get a new dev laptop (yeah, pretty proud myself, HP Pavilion dv7, triple-core i5, 6GB RAM, 640GB HD, 17.3″ display…) and I install VS 2008 and 2010, SQL, etc.  Start working on an existing website using VS 2008 and it says “Visual Studio language support for C# is not installed.  Code-editing Intellisense will not be available.  Markup Intellisense for server controls may not work”.  You gotta be kidding me… So I hit the googleverse and attempt to…

Read More Read More