当前位置:网站首页>ASP. Net1==visual studio create asp net demo
ASP. Net1==visual studio create asp net demo
2022-07-19 04:19:00 【A java development】
ASP.NET
Personally feel benchmarking java Namely java+jsp, perhaps springboot+theymleaf
Download and install visual studio 2022, Choose to install related components

install net sdk, I don't know what's going on , Install the latest sdk When you create a new project, you can't find it in the list ASP.NET, So refer to this article to download this version SDK Sure
Download .NET 6.0 SDK (v6.0.302) - Windows x64 Installer
start-up
New projects



Start project , Automatic pop-up cmd window , And pop up the browser to open the default home page . And from visual studio You can see from the console output that the previously installed sdk


==============================
Actually, he web Development should be a reference tomcat+java Of , So there is another way to run
First go to the official website to download one donet6 Of sdk, And install it locally
.NET download (Linux、macOS and Windows)

Download and unzip it to the local , Configure it to the environment variable

I don't know why the configuration of environment variables still doesn't work , But since it is the compressed package that can be decompressed and used , Whether to configure environment variables does not affect the use
copy donet.exe The path of
"E:\Develop\dotnet-sdk-6.0.302-win-x64\dotnet.exe"
Later, it was found that the command was wrong , The command to view the version is
dotnet --version
==================================
Before opening demo The address of , take wwwroot Copy folder to \bin\Debug\net6.0, Used to tomcat I knew it was supposed to be this demo Default static resource file


Then open in this directory cmd , Use the previously installed sdk function dll File can , Visit the address to see the same web page
"E:\Develop\dotnet-sdk-6.0.302-win-x64\dotnet.exe" 02aspdonetdemo.dll
"E:\Develop\dotnet-sdk-6.0.302-win-x64\dotnet.exe" 02aspdonetdemo.dll --urls="http://localhost:8080"


Execute the command in the root directory of the project
"E:\Develop\dotnet-sdk-6.0.302-win-x64\dotnet.exe" run

边栏推荐
- 可省近90%服务器,反欺诈效率却大增,PayPal打破「AI内存墙」的方案为何如此划算?
- wpf 找不到资源文件问题
- 小程序毕设作品之微信电子书阅读小程序毕业设计(4)开题报告
- Ftxui basic notes (botton button component Foundation)
- 【数据库】期末必知必会-----第七章 数据库完整性
- Wechat official account page authorization 40029 error "suggested collection"
- Intensive reading series of papers
- Chapter 2 performance platform godeye source code analysis - data module
- 巧用企业网盘收取报告或总结
- Technical writing guide for programmers to leave work early
猜你喜欢

Intel helps open medical service and promote the intellectualization of ultrasonic prenatal examination

寻找数组的中心下标

无心剑汉英双语诗005.《抒怀》

小程序毕设作品之微信电子书阅读小程序毕业设计(4)开题报告

英特尔+联想共同推出开源云解决方案

Idea configures SFTP and SSH, which is very convenient to deploy and locate error logs

笔记本电脑插入耳机仍然外放(亲测有效)

Wechat online education video on demand learning applet graduation design (1) development outline

Academic sharing | design and development of multi staining pathological image information evaluation system based on openvino

基于stm32f103的智能风扇系统
随机推荐
Build a portrait matting server based on openvino model server
Find the central subscript of the array
软件测试-进阶篇
[database] must know and be able at the end of the term ----- Chapter 11 concurrency control
priority_ Introduction and use of queue
最小生成树
Structure gets the address of the main structure (struct) through member variables
小程序毕设作品之微信电子书阅读小程序毕业设计(1)开发概要
[database] must know at the end of the term ----- Chapter VII database integrity
C# 使用this关键字串联构造函数调用方法
WPF cannot find resource file problem
牛客2021训练联盟热身训练赛Interstellar Love(并查集)
Live broadcast of cloud intelligence face to face is waiting for you: computing power redefines productivity
机器学习11:代价敏感学习
小程序毕设作品之微信电子书阅读小程序毕业设计(2)小程序功能
windows10:vscode下go语言的适配
MAUI 框架入门学习05 MVVM数据模型理解
C# 构造函数(Constructors)简单讲解
C# 字符串(string)常用方法
【数据库】期末必知必会-----第二章 关系数据模型