The New Visual Studio 2015 is finally here

The New Visual Studio Launch event has already started, and you can watch it live here:

https://www.visualstudio.com/en-us/visualstudio-release-event-vs

[Sneak Peek] I just heard a new feature that made me drool – Lambda Debugging!

How to install iOS and Android SDKs for Visual Studio 2013 Premium & Ultimate

I was going to install Visual Studio Community 2013, but it asked me to uninstall Visual Studio 2013. I started checking some demos about Visual Studio Community 2013 (you can check the demo from Channel 9) and noticed that you can install the same tools as in Visual Studio Community 2013 to Visual Studio 2013. So let’s get started.

Continue reading

Create iOS and Android apps using Visual Studio and .NET

IC764760

Microsoft today announced some amazing news:

First the big news. Microsoft just launched the preview versions of Visual Studio 2015 and .NET 2015. This release includes the “Roslyn” .NET compiler platform, new language features in C#, improved debugging and profiling, and code analysis tools. And the biggest new of all – VS2015 supports “C#, C++ and HTML/JavaScript development targeting iOS, Android, Windows and more.” There’s even a Visual Studio Emulator for Android (see picture below).  I’m drooling! Continue reading

How to open a razor link in a new tab – Quickie

link-new-tab

An MVC code quickie to open a Razor link in a new tab:

RunReport”, “Performance”, new { reportView = Model.ReportView.ToString() })”
type=”submit”
id=”runReport”
target=”_blank”
class=”button Secondary”>
@Reports.RunReport
</a>

Hope this helps 😉

Format Date in SQL Server

It’s very common to show the current date (i.e., month, day, and year) in different formats. Although you can obtain the current date with Microsoft SQL Server’s GETDATE function, getting the returned date in the format you need can take a lot of effort and code. The FormatDate UDF (user-defined function) provides dates in various formats by using the following options: Continue reading

Problem with Database Restore

Last week, I restored a database from backup and was having the following error when trying to access the tables:

“The SELECT permission was denied on the object ‘extended_properties’, database ‘mssqlsystemresource’, schema ‘sys'”.

After some research, I found the next solution: Continue reading

Installing Windows 8 Developer Preview

So I think that everyone heard that a New Windows is coming to town. This week, on Tuesday, which was also the Programmer’s Day, Microsoft showed the New Windows 8 OS during it’s BUILD Conference. And it was really a great present for all Programmers!! At least I’m really excited to try the new OS and start using the new Developer Tools. You can find more info on Windows 8 in the next links:

http://www.winsupersite.com/article/windows8/windows-8-developer-preview-140546

http://www.engadget.com/2011/09/13/windows-8-details-new-features-ui-enhancements-and-everything/

Installing

I’m upgrading my Windows 7 laptop to Windows 8, so it’s not a clean install. Up till now it’s 77% and it took about 25 mins. A clean install would definitely take less time.

The laptop is a bit old, in fact it was a Windows XP laptop. It’s a VAIO powered by 1.6GHz Single Core Centrino CPU and 1GB of RAM. With Windows 7 it was running fine for normal day to day use. We’ll see how it fares with Windows 8! I’ll keep you posted. Anyone installed the Windows 8 Developer Preview? What do you think?

UPDATE 1: And it’s ready installing. For an upgrade on a 1.6GHz Centrino laptop, with 10% of free hard disk space, it took around 40 mins.

UPDATE 2: Getting devices ready and now Applying User Settings from the Windows 7 installation!

Continue reading

Solution | Unable to write output file ‘…pdb’; unspecified error

Visual Studio 2005 / 2008

During this weekend, I started having a problem when building a solution in Visual Studio. It would load the following error:

Unable to write to output file Solution_Name.pdb

This Visual Studio solution has 8 projects, and a lot of files and folders. I tried several solutions that I found on the net, which worked for others, but none worked for my case including:

  • Delete the .pdb file from the solution – Didn’t Work
  • Delete the Debug folder – Still Didn’t work
  • Delete the whole obj Folder – Nothing Continue reading

SQL Server 2005 | Add days, months and years to GetDate()

To get the current date in Sql Server queries and stored procedures, you use the GetDate() method. But what about to add a day or two to the current date, or add a month or years? To do it, you use the following query:

Add One Day

SELECT DateAdd(dd, 1, GetDate())

Add One Month Continue reading