How to change Visual Studio 2012 Razor colors

Optional: Install the color theme editor: http://visualstudiogallery.msdn.microsoft.com/366ad100-0003-4c9a-81a8-337d4e7ace05 In the theme editor or Tools > Options > Environment > Fonts and Colors Search for: ‘HTML Server-Side Script’ to edit the foreground & background of @ and other tags. Search for: ‘Razor Code’ to edit the background of the Razor code.

How to get rid of “The solution you are trying to open is bound to source control” message

You need to clean the solution file (.sln) by removing the following GlobalSection: GlobalSection(TeamFoundationVersionControl) = preSolution SccNumberOfProjects = 2 SccEnterpriseProvider = {4CA58AB2-18FA-4F8D-95D4-32DDF27D184C} SccTeamFoundationServer = http://example.com/tfs/defaultcollection SccLocalPath0 = . /// — more solution specific stuff omitted — /// EndGlobalSection and you need to remove the source control references from every single project file (.csproj for C# … Read more

How to view database diagram in a Code First using localdb

Install Entity Framework Power Tools Beta 4, restart Visual Studio, right-click on the context in your solution view and you’ll see a new ‘Entity Framework’ option in the context menu. Select ‘View Entity Data Model’ to see a beautiful visual database diagram in Visual Studio. Voilà! Entity Framework 6 Power Tools: Link

Resolution of std::chrono::high_resolution_clock doesn’t correspond to measurements

I’m going to guess you are using Visual Studio 2012. If not, disregard this answer. Visual Studio 2012 typedef‘s high_resolution_clock to system_clock. Sadly, this means it has crappy precision (around 1 ms). I wrote a better high-resolution clock which uses QueryPerformanceCounter for use in Visual Studio 2012… HighResClock.h: struct HighResClock { typedef long long rep; typedef std::nano period; typedef std::chrono::duration<rep, … Read more

Visual Studio 2012 Website Publish Not Copying .pdb files

In VS2012 Website publishing, symbols are always excluded by default. Why? It comes down to a design issue where website projects don’t actually have a build configuration. If you look at the configuration manager in VS when your solution is in Release mode, the website project will always be in Debug mode; there are no … Read more

Could not load file or assembly Exception from HRESULT: 0x80131040

Finally found the answer!! Go to References –> right cilck on dll file that causing the problem –> select the properties –> check the version –> match the version in properties to web config <dependentAssembly> <assemblyIdentity name=”YourDllFile” publicKeyToken=”2780ccd10d57b246″ culture=”neutral” /> <bindingRedirect oldVersion=”0.0.0.0-YourDllFileVersion” newVersion=”YourDllFileVersion” /> </dependentAssembly>

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