I am a student and an apprentice developer. Currently I have been assigned a .NET core mvc project, the task I have to perform is to deploy the project on my own computer and test the CRUD.
I have a windows 10 on my machine. I have already installed visual studio code. For the database I use xampp - mysql.
I would like you to help me to connect visual studio with xampp to test the CRUD. Thank you very much. If you have a link or tutorials you can send them to me too. Thank you!!!
You can build data-driven apps using Object Relational Mapper (ORM) like Entity Framework Core or Dapper.
Both Dapper and EFCore work with many SQL databases like SQL Server, MySql, PostgreSQL, SQLite, and so on. You can pick the database of your choice.
For more information and tutorials you can visit the official documentation for EfCore on the Microsoft Docs website:
https://learn.microsoft.com/en-us/ef/core/
In order to deploy your .NET Core app, you can build your project in release mode and deploy it on IIS which comes pre-installed on a Windows machine. Refer to the following link to know more about hosting .NET apps on IIS:
https://learn.microsoft.com/en-us/aspnet/core/host-and-deploy/iis/?view=aspnetcore-5.0
Related
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.
I'm developing a school project with ASP.net core 2.0. I own a Mac and it is really great to use Visual Studio to create ASP.net core applications, but my partners have Windows machines. The thing is, if I create a repository and push my MVC project to GitHub, my partners can't open the solution from the repo, neither by cloning the project nor downloading the zip. If they create the MVC project in a new repo of GitHub using Visual Studio for Windows, I'm able to open the project in Visual Studio for Mac, but there is no compatibility with LocaDB so my program is not able to do a CRUD actions because of that.
Do you know if there's a possibility to work with .net Core while the team members have different operating systems? I mean maybe using the .gitignore or by doing migrations? Or do you recommend using only the same OS for Core 2.0 development?
I am using Visual Studio 2013 Community Edition for an ASP.NET MVC project which targets a database on an SQL Server 2012 instance.
I want to be able to continue development when not connected to the network so therefore need a copy of the database which I would have in my App_Data folder.
I have not come across a quick and easy solution to pull down a copy of the database into my project, which would include schema and data (the database I am working with is fairly small).
Is there anything already in Visual Studio which would allow me to take a copy and update when required? If not, what other methods are people using?
EDIT:
The full database engine is not installed locally, only the supporting applications SSMS, BIDS etc. The Express LocalDB versions are available as they were installed as part of the Visual Studio installation.
I want to deploy a Website which i have created using Microsoft Visual Studio 2008 Express Edition onto a server having Microsoft Windows Server 2008.
I dont know anything about deployment. I want to know what are the things required on the Server in order to make the application work.
i had used ajax toolkit VS2008 Express Edition and mysql on my developer machine.
Do you have full access to the server or are you using a hosting provider?
When you say Website, do you mean your project is a Website project or is it a Web Application project?
If it's a website project you should use the WebDeploy project add-in. In fact you'll need this since the Web Deploy project will merge all your pages into one dll. I'm not sure of the limitation of the Express Edition no you'll need to check.
WebDeployment Project post
Deploying a WebSite project
Deploying a Web Application Project
We have built an ASP.NET application in 4.0 (we can change it to 3.5 if necessary) with a SQL Server database.
I am looking to create an installation package (exe or msi) so that I can provide this file to my clients and they can install it on all of their laptops. This asp.net application will be running on laptops that don't have access to the internet.
Some of these laptops have XP Home, Win 7 Home, and other windows operating systems and not all of them have IIS installed. Is there some sort of simple application that I can use to create an Installer application where it will install IIS or some other web server, SQL Express, and .NET framework 4.0. If these applications are installed already, then it shouldn't install it. Any suggestions?
Thanks!
You could accomplish this using a Setup Project in Visual Studio.
I know about Web Deployment Packages. See if that helps in some way.
Check this extensive list of useful links:
Overview Post for Web Deployment in VS 2010
My company (Comet Way) makes a product that is designed for this: http://www.neokernel.com. Our customers use it when they need to access web databases offline on laptops. It's an assembly that you can distribute with your product without requiring a separate install, it works on any machine with .NET (or Mono), and it implements a full featured secure web server that runs any website that IIS will run.
Hope this helps,
Damien