Visual studio

Add the application as a service at Windows Server

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 […] Read more»

Windows

C# Convert DataTable to List generic collection

C# snippet below helps to read SQL data to List<T> generic collection without any extensions or frameworks only with SQL and LINQ. Read more»

.Net & C#

Read CSV file to List<T> using CSVHelper

CsvHelper

CsvHelper is a very good library for reading and writing CSV files. It’s really easy for coding and fast for work. You can install it via Nuget in Visual studio or download from the project page in GitHub https://github.com/JoshClose/CsvHelper.  Read more»

.Net & C#

How to get assembly strong name in Visual Studio

Fig.1. Create external tool for Visual Studio to get assembly strong name

When I was developing a web service for SharePoint 2010 I had to fill in “assembly strong name” in .asmx file. Below I repost a very nice method how to get an “assembly strong name” in Visual Studio. Read more»

.Net & C#

How to generate and save Connection string in Visual Studio

Figure 3. connectionStrings in web.config

Writing connection string manually is one of the worst things in software development. That’s why I always want them to be generated by any tool but not by me. Some times before I have found a way how to generate a connection string creating an .udl file in Windows (http://markimarta.com/c/how-easily-write-the-text-of-connection-string/). Now I’ve found a better […] Read more»

.Net & C#

Create a load test in Visual Studio 2013

Figure 5. Test mix model

Load test allow to understand how many users at once your server and application can process at once. Visual studio 2013 allows you to imitate user action and as robots, so and with human-like behavior. Read more»

.Net & C#

Create web test in Visual studio 2013

Figure 3. Finishing web test recording

My post yesterday was about how to get to results of load test. Now I realized that I still hadn’t posted about how to create web test and load test in Visual Studio 2013. In Visual Studio 2013 Professional it’s rather easy to do – you don’t need to install add-ons or plugins, everything is […] Read more»

.Net & C#

How to save load test results in Visual Studio 2013

Figure 1. "Open and Mange Results" button

When you execute load test in Visual Studio, you may want to see previous results or to move results to another machine if you need to make report. I had to spend some time to look for the buttons to manage results of Load test in Visual Studio 2013. Read more»

Windows

Popular Posts