App.Config Transformation for projects which are not Web Projects in Visual Studio?

I tried several solutions and here is the simplest I personally found. Dan pointed out in the comments that the original post belongs to Oleg Sych—thanks, Oleg! Here are the instructions: 1. Add an XML file for each configuration to the project. Typically you will have Debug and Release configurations so name your files App.Debug.config … Read more

What are the differences between Visual Studio Code and Visual Studio?

Visual Studio (full version) is a “full-featured” and “convenient” development environment. Visual Studio (free “Express” versions – only until 2017) are feature-centered and simplified versions of the full version. Feature-centered meaning that there are different versions (Visual Studio Web Developer, Visual Studio C#, etc.) depending on your goal. Visual Studio (free Community edition – since … Read more

How can I rename a project folder from within Visual Studio?

TFS users: If you are using source control that requires you to warn it before your rename files/folders then look at this answer instead which covers the extra steps required. To rename a project’s folder, file (.*proj) and display name in Visual Studio: Close the solution. Rename the folder(s) outside Visual Studio. (Rename in TFS … Read more

What are the various “Build action” settings in Visual Studio project properties and what do they do?

None: The file is not included in the project output group and is not compiled in the build process. An example is a text file that contains documentation, such as a Readme file. Compile: The file is compiled into the build output. This setting is used for code files. Content: Allows you to retrieve a … Read more

How do you count the lines of code in a Visual Studio solution?

I’ve found powershell useful for this. I consider LoC to be a pretty bogus metric anyway, so I don’t believe anything more formal should be required. From a smallish solution’s directory: PS C:\Path> (gci -include *.cs,*.xaml -recurse | select-string .).Count 8396 PS C:\Path> That will count the non-blank lines in all the solution’s .cs and … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)