ASPNET/monoDevelop: Create and Deploy a Web Api in monoDevelop - asp.net

I am new in monoDevelop.. I installed it in Ubuntu 16.04·
I installed aspnet for monoDevelop and when I create the new project I only see MVC options. I would like to see WebApi if can be possible.
how can I create a Web Api of ASPNet 5 in monodevelop?
How can I deploy it too? I have installed mono-xsp but I don't know how can I configure monoDevelop.
Thx

Related

Wix Installer - Custom Action for updating appsettings.json (.net core3.1)

I have created .Net core Web API application which will be self-hosted on a local machine and one configuration utility to update the API application configurations.
There is one key in appsetting.json (IN API Project), which returns the absolute path for the other projects configuration file.
{
"ConfigFilePath": "<INSTALL DIRECTORY>\\..\\ConfigurationApplication\\Configuration\\ActualConfig.json"
}
I have created the MSI installer using WIX (I am new to WIX Installer) and integrated both the projects into one product and used WixUI_InstallDir to get the installation directory from the user.
I want to update the appsettings.json, ConfigFilePath value pointing to the installation directory which the user has selected.
Through some googling, I have found that it can be achieved by CustomAction in WIX.
But What my questions are,
WIX Custom action project is created in the .net framework, So If I create the CustomAction Project and refer the same into the installer, Will it required the .net framework dependency on the installer machine?
Is there any alternative to update the appsettings.json of .net core application from WIX?
WIX Custom action project is created in the .net framework, So If I create the CustomAction Project and refer the same into the installer,
Will it required the .net framework dependency on the installer
machine?
Yes, if your custom action is written in .NET, it will require .NET to run.
Is there any alternative to update the appsettings.json of .net core application from WIX?
The WixJsonExtension is written in C++ and doesn't require .NET to be installed on the target machine.

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.

Install the IIS ASP.NET Core module via Powershell

In a continuous deployment scenario I'm trying to deploy a .Net core web application on IIS starting from a clean machine. During the automated tasks I download and execute the dotnet-install.ps1 script that is responsible of installing the .Net runtime in the user's %LocalAppData%\Microsoft\dotnet folder.
Now I need to provide IIS with the AspNet Core Module that allows it to run .Net core applications, but I found that the only way to install it is to download the .Net core runtime from the official web site and install it.
Instead, what I would like to do is to preserve the way I install the .Net core runtime via the dotnet-install.ps1 script (which automatically checks for upgrades and handles all the installation) while being able to install only the IIS AspNet Core Module.
Is there any installation method to support me installing only the IIS AspNet core module?
Thanks

MVC 3 Install problem

Somebody allready installed MVC 3? I have Windows 7 + VS 2010. Trying to install with Web Platform Installer,- its show me "OK" but there isn't Web MVC3 Application in New Project template =\
Somebody allready installed MVC 3?
Yes.
Try downloading the installer and running it locally. Make sure you have removed any previous RC versions you might have installed. The new project template shows when creating a new Web Application (not Web Site).

How to set the IIS File Security to Integrated Windows authentication with a Web Setup Project installer?

I wrote an ASP.NET web application with an installer. For the installer, I'm using the Web Setup Project under the Setup and Deployment project types in Visual Studio 2008.
How do I set the IIS File Security to Integrated Windows Authentication on only one .aspx page or directory during the installation process using a Web Setup Project? If it is not possible with the Web Setup Project how would I automate that task?
Currently I'm installing the application with the installer and manually setting the security permissions.
Look at the CustomAction Class for the Install Method.
Here's a sample:
http://www.codeproject.com/KB/install/SetIISettings.aspx

Resources