serving the solutions day and night

Pages

Showing posts with label visual studio. Show all posts
Showing posts with label visual studio. Show all posts

Sunday, August 23, 2020

Visual Studio Code

Install the latest version of C# for Visual Studio Code from the marketplace or via the Extensions tab. 

With Visual Studio Code open, press Ctrl+Shift+X and search for C#, install  C# for Visual Studio Code by Microsoft.

Install  .NET Core 3.0 SDK or later 




Saturday, August 15, 2020

.NET Core CLI Commands

  • dotnet new: Creates a new project from the specified template. If you want to create an MVC application, you can use dotnet new mvc
  • dotnet restore: Restores all the NuGet dependencies of our application. 
  • dotnet build: Builds our project. 
  • dotnet run: Executes our project. 
  • dotnet watch run: Runs our project and watches for file changes to rebuild and rerun it. 
  • dotnet publish: Creates a deployable build (the .dll) of our project. 
  • dotnet --list-sdks : look all net version in your computer

 


Monday, October 23, 2017

Visual Studio 2017 - C# 7.0 Features


1. Out Variables
static void Main(string[] args)
{
    string first = "M";
    string last = "K";
    string name = string.Empty; //have to pre-declare before using the out.
    GetName(first, last, out name);

    //In c# 7.0, you can declare in the variable line
    GetName(first, last, out string name1);
    GetName(first, last, out var name2); ////use var instead of string
}

static void GetName(string first, string last, out string name)
{
    name = first + " " + last;
}

Thursday, May 16, 2013

Intellisense in Dynamics CRM 2011 Customizations using Visual Studio

Intellisense in Dynamics CRM 2011 Customizations using Visual Studio

Goto Visual Studio -> Select XML Tab -> Select Schemas...


'XML Schemas' window will be popup, Press 'Add' button to add crm sdk schemas

(CRM2011\sdk_5.0.9690.3339\schemas\)

Sunday, May 8, 2011

Debug Directive

If the code is only for development environment not in the live or release environment use Debug Directive or Conditional attribute For exmple, Some of the code only run while in debugggin mode, but you don't want to shift to production server or code to run while in live

If the application/compilation running in the debug mode, then the debug code will execute, but if you complied the same code in the release mode, then debug code will not execute.

In Debug environment, output is
If Debug
No If
Conditional Debug
No Conditional

Sunday, August 8, 2010

Free Download Visual Studio 2010 Express/Professional Edition

Microsoft released Visual Studio 2010 and .NET Framework 4. Lots of great things being included in Visual Studio 2010 with regards to ASP.NET 4, ASP.NET MVC 2, Entity Framework 4, new Windows Presentation Framework(WPF) code editor, multi-monitor support, etc.