Difference between platform and platform target in VS

The first screen shot is showing the solution configuration (Debug) and solution platform (Mixed Platforms). What this is saying is that building a Debug version of the solution, the projects that make up the solution can target Mixed Platforms. If you explicitly chose x86, that means all your projects in your solution should use this … Read more

Make Visual Studio auto reload solution when project files change

Finally found a solution: http://lostechies.com/jimmybogard/2011/01/27/reloading-all-projects-with-vscommands/ Quoting from the site: Quite often I’ll find myself working in situations where multiple projects have changed, and Visual Studio asks to reload them, one at a time. This happens when I’m working a lot with source control, and doing things like switching branches, performing merges, or just integrating upstream … Read more

How do I change the line spacing in Visual Studio 2012?

I’ve found a workaround which works pretty well, partly alread described in this comment. You need to download and install TypeLight (free for personal use), and open the Consolas.ttf file inside. To adjust the line spacing, go to Font -> Metrics -> Advanced and change the “Line Gap” to your desire (I changed “Type Line … Read more

Folders or Projects in a Visual Studio Solution? [closed]

By default, always just create new folder within the same project You will get single assembly (without additional ILMerge gymnastic) Easier to obfuscate (because you will have less public types and methods, ideally none at all) Separating your source code into multiple projects makes only sense if you… Have some portions of the source code … Read more

How do I get the ClickOnce Publish version to match the AssemblyInfo.cs File version?

We use Team Foundation Server Team Build and have added a block to the TFSBuild.proj’s AfterCompile target to trigger the ClickOnce publish with our preferred version number: <MSBuild Projects=”$(SolutionRoot)\MyProject\Myproject.csproj” Properties=”PublishDir=$(OutDir)\myProjectPublish\; ApplicationVersion=$(PublishApplicationVersion); Configuration=$(Configuration);Platform=$(Platform)” Targets=”Publish” /> The PublishApplicationVersion variable is generated by a custom MSBuild task to use the TFS Changeset number, but you could use your … Read more

Import Visual Studio syntax highlighting in Notepad++

Close Notepad++ Download Notepad++ Visual Studio Theme Extract the files to C:\Program Files\Notepad++\themes then start Notepad++ (create themes folder if it does not exist) In the menu bar, open Settings→Style Configurator… Click the Select theme dropdown and select the Visual Studio theme. Click Save & Close button. Information about theme can be found on archived … Read more

Windows Service Template for Visual Studio 2017

Just checked here. I see project “Windows Service (.NET Framework)” under the Windows Classic Desktop folder under Visual C#. (Visual Basic has a similar entry.) Only some templates are shown in parent folders, for more specialist templates you need to be more specific. But also the search finds both. NB I selected “.NET Desktop” workload … Read more

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