Did you know that in Visual Studio you can execute just a selected piece of code without running the whole application? There’s a handy (and surprisingly little-known) shortcut for this:
Select the code and press Ctrl + E and then again Ctrl + E.
Did you know that in Visual Studio you can execute just a selected piece of code without running the whole application? There’s a handy (and surprisingly little-known) shortcut for this:
Select the code and press Ctrl + E and then again Ctrl + E.
When developing applications, there are times when you need to temporarily change the behavior of a working method — for example, to investigate a bug, check something quickly, or work around an issue for the moment.
(read more...)I use the context service as a singletone in the app. What do you think, is this a good way to initialize and use context the way like this (see below) is it better just to use it as disposable? See examples below and write the comments
(read more...)For a process I had to update the Author field in SharePoint online list item. This time I decided to use PnP.Core instead of PnP.Framework. Was it worth it? I don't really know, but the method is not the most difficult part of the task.
(read more...)Transform text UPPERCASE or lowercase is a very common task for a developer. And when the text is not in the required case, you obviously don't want to type it one more time. Luckily, there are the developers of Visual Studio who already thought about it.
(read more...)Once again I have to make Export of to Excel. And this time there are requirements to the template – colors, formatting and others. Not so long ago I implemented the export to Excel with XLSX package for React, and it was rendered at client. This solution is good but has many constraints. So, I started to look for another solution.
(read more...)When you execute your Web Api and at Swagger Page you can see Swagger error ‘Failed to load API definition’, you can’t really determine, where the error is. It is in one of the controllers. But do you want to check all of them?
(read more...)Class to determine if a user is in the SharePoint group or is in the AD Group, which is added to the SharePoint group. So, the admin access to a custom SharePoint module is that everybody, who exists in the admin group, has more data. The admin group is a SharePoint group, which contains SPUsers (from domain) and Domain groups, which contain AD Users. Actual for SharePoint 2016, 2019.
(read more...)When you make a SharePoint 2019 on-premises solution, you can make not only SPFX solutions, but also old-school WSP-solutions. It allows you not only to use SharePoint API, but also to use your own API services. With SharePoint 2019 you can use WCF service. For example, it’s a good way when you develop an application which uses the external database. This works also for SharePoint 2013 and SharePoint 2016.
(read more...)You can add the service with PowerShell. New-Service and Get-service are available in PowerShell 5, for 'Remove-Service' PowerShell >= 6 required. Otherwise you can use 'sc.exe DELETE MyMegaServiceApplication'. You should execute it with as an administrator. Not any application you can start a service. As a .Net developer, I usually create .Net solutions, in this case you should create application based on 'worker service' template in VS 2022 or any other IDE.
(read more...)