Skip to main content

Posts

Showing posts with the label .net versions

Dockerize a dotnet core application with SQL connectivity

Before reading this article, I am assuming that you know Docker, Dotnet core and have a dotnet core application which is trying to connect to SQL server. Read how to build aspnet core app, docker and run the docker container. If docker container is running and you are not able to connect to database, this blog should help you fix it.  Prerequisite -  Make sure code is working via running aspnet core locally via visual studio or command line. Port 1433 is opened for connecting to SQL server. Solution If you have Docker file ready, it should somewhat look like below file -  FROM mcr.microsoft.com/dotnet/core/sdk:3.1 AS build-env WORKDIR /app # Copy csproj and restore as distinct layers COPY /SampleAPI/*.csproj ./ RUN dotnet restore # Copy everything else and build COPY . . WORKDIR /app/SampleAPI RUN dotnet publish -c Production -o publish # Build runtime image FROM mcr.microsoft.com/dotnet/core/aspnet:3.1 WORKDIR /app/SampleAPI COPY --from=build-env /app/Sa...

C#, Visual Studio(VS), .Net & CLR version information

C#, Visual Studio(VS), .Net & CLR version along with release date C# version VS version .Net version CLR version Release date 1.0 2002 1.0 1.0 Feb 2002 1.2 2003 1.1 1.1 Apr 2003 2.0 2005 2.0 3.0 2.0 2.0 Nov 2005 Nov 2006 3.0 2008 3.5 2.0 Nov 2007 4.0 2010 4.0 4.0 Apr 2010 5.0 2012 4.5 4.0 Aug 2012 5.0 2013 4.5.1 4.5.2 4.0 4.0 Oct 2013 May 2014 6.0 2015 4.6 4.6.1 4.6.2 4.0 4.0 4.0 July 2015 Nov 2015 Aufg 2016 7.0 7.1 7.2 7.3 2017 4.7 4.7.1 4.7.2 4.0 4.0 4.0 Mar 2017 May 2017 Aug 2017 Oct 2017 Dec 2017 Apr 2018 May 2018 8.0 2019 4.8 4.0 Apr 2019 Disclaimer - The above data is collected from different websites and best of knowledge. Blog does not have any liability to any descripency.