How do I Build and Publish .Net Website using Azure DevOPs Pipeline - asp.net

Is there support for building and publishing a .net Website (not a webapp) in Azure Devops?

How do I Build and Publish .Net Website using Azure DevOPs Pipeline
The short answer is yes.
Azure DevOPs support configure continuous integration (CI) and continuous delivery (CD) for .NET core or ASP.NET application, the ASP.NET application including the ASP.NET web site.
There is a template ASP.NET, which you can use it to build the website project (Adjust your tasks as needed):
Check this document Continuous Integration Using Azure DevOps Pipelines And .NET Project for some more details.
Hope this helps.

Related

Does aws codebuild support asp.net application?

Trying to build and publish asp.net(Not Core) application using aws CodeBuild.
Does aws codebuild support traditional .net application?
Gone through older thread on stackoverflow but still not clear.
Tried with sample asp.net application on aws Codebuild, it's able to build but not able to Publish and get all the artifacts i need to deploy on IIS.
Anyone tried aws codebuild with asp.net application?
This question sounds silly but having hard time publishing asp.net application using codebuild. Tried most of the MSbuild command given for this online.
Yes, CodeBuild supports .NET Framework applications, please refer to the following link which is a tutorial:
https://docs.aws.amazon.com/codebuild/latest/userguide/sample-windows.html
... and the following blog post:
https://aws.amazon.com/blogs/devops/creating-ci-cd-pipelines-for-asp-net-4-x-with-aws-codepipeline-and-aws-elastic-beanstalk/
Excerpt of configuring CodeBuild project:
After choosing Next, select AWS CodeBuild as the build provider.
Select your region, then choose Create project, which will open CodeBuild in another browser window.
In the CodeBuild window, you can optionally assign your build project a name and description.
Under Environment, select the Custom image option, and select Windows as the environment type.
For building ASP.NET 4.x (.NET Framework) web projects, it’s easiest to start out with Microsoft’s .NET Framework SDK docker image,
which they host on their registry. Select Other registry, and use
mcr.microsoft.com/dotnet/framework/sdk:[version-tag] as the registry
URL. Replace version-tag with the .NET framework version. For .NET
Framework 4.x, the most likely options are 4.7.1, 4.7.2 or 4.8. This
example uses mcr.microsoft.com/dotnet/framework/sdk:4.7.2.

Deploy ASP.NET Web API in Ubuntu

I'm a .NET developer, I want to develop an ASP.NET Web API that will be deployed on ubuntu and will be called by a J2EE application.
is that what I would have deploying problems on ubuntu?
do you think that ASP.NET Web API is a good choice? or should I develop my API in ASP.NET CORE?
thanks.
You should choose Asp.Net Core over Asp.Net .
You can not deploy asp.net web api application to ubuntu, but you can with asp.net core web api.
Its better to go for asp.net core for linux platform. You can deploy this with the help of docker as well.

Visual Studio - deploy existing website/webAPI to Azure

In my VS(2015) solution, I have a ASP.Net website and a WebAPI project. For normal development, I want to use IIS on local machine for dev/test. However, I also want the option to be able to deploy the same sites to Azure on demand.
I know I can 'Convert' an existing project to Azure project from VS. But then it'll become a cloud project only. I don't want to convert it to cloud project.
Is there a way I can use my existing projects in VS and deploy/publish them to Azure?
Thanks
You don't need to "convert" your project to an Azure project, you can simply create a publishing profile in Visual Studio and push the build to Azure.
The Microsoft documentation explains how to do this, follow the steps from the "Publish to Azure" section onwards.

Deployment of ASP.NET vNext Application to Azure Cloud Services

Is it possible to deploy an ASP.NET vNext web application to Azure Cloud Services? And if yes, does it matter if it's build on the aspnet50 or the aspnetcore50 framework?
The Azure Cloud Service Visual Studio template, even in 2015 CTP seems to support only .NET Framework 4.x.
It's not supported yet but if you really want to you can do something like create a worker role setup script (which installs the kvm, kre etc.), then follow steps like this http://www.codeproject.com/Articles/331425/Running-an-EXE-in-a-WebRole-on-Windows-Azure to run it and bootstrap your aspnetcore50 app. It's not pretty or easy but it's the only way to run ASP.NET 5.0 stuff in a worker role at the moment.

Deploy ASP.NET Website (.NET 2) using Visual Studio 2012

I have an ASP.NET 2 Website that I need to deploy using Visual Studio 2012. I need a compiled single Assembly.
The latest version of the publish feature (described here and available with the Azure 1.8 SDK) now supports pre-compilation for both Web Site projects and Web Application projects. This is the replacement for Web Deployment Projects, which was previously available for VS2005/2008/2010. It also supports all of the publish scenarios equally for both types of projects (e.g. web.config transforms, database deployment, etc...).

Resources