基础服务
【未分类】
备忘的一些链接
图床列表 - imgtu
【目录】生活&其它
游戏修改器-nes游戏修改记录
尝试操作系统-Community20.3
哈哈哈
警世恒言/人生谎言
使用视频采集卡让笔记本当nuc的屏幕
【已废弃】获取微信好友-itchat
获取微信好友-pc hook
易混词语(尽量避免使用)
有用的链接(工具)
zy服务版本记录
注意安全、生命、健康
日文输入法
安卓模拟器中使用微信充值微信豆
备忘小技巧
excel
网站生成
静态网站生成工具-vuepress
静态网站生成工具-hugo
【目录】代码片段
动态显示select的option列表
同时显示汉字和拼音
常用java代码
性能
jmeter
jmeter-性能
ops
kubernetes
jenkins
drone
服务升级记录
mrdoc升级记录
mysql升级记录
方案
跨语言的web服务间接口调用安全问题
【其它编程语言】
编程-javascript
编程-python
前端框架-react
编程-golang
c语言
.NET(dotnet)
【前端】
Lua简明教程
【缓存】redis
redis
服务搭建
搭建mrdoc
主机服务及端口列表
安装centos7虚拟机
docker
虚拟机-vagrant和virtualbox
安装AlpineLinux虚拟机
docker machine
docker-swarm
配置https域名
centos7服务器清理磁盘空间
vscode
multipass
ubuntu 使用
【数据库】mysql
mysql命令
mysql
HashDatabaseAndTableTest.java
mysql-快速导入100w条记录
mysql高级命令
用于排查问题的一些常见命令
基础信息
mysql5.7升级到8
maven相关
maven命令行汇总
自动升级maven工程中的项目版本
maven基础及高级
windows系统使用
windows客户端软件使用
windows 宿主机 + virtualbox虚拟机共同使用
windows常见问题记录
新的开发环境
windows11配置
windows系统下载
命令行安装软件 & 配置软件
折腾谷歌浏览器
浏览器插件列表
windows音频视频下载工具
云服务
服务-tao-道
【目录】技术分享
技术分享-todo
【目录】shell
windows常用命令
shell脚本汇总
shell命令汇总
windows常用脚本
命令行操作录制工具 asciinema-player
windows软件包管理器scoop
网络相关
服务使用
nexus
jenkins
apifox
notify (bark-server)
开发人员相关
IDEA相关配置
压力测试工具-jmeter
【目录】git集合
git常用操作
gitlab替代品:gitea搭建及简单使用
【git神技】git配置多个提交账户
【git神技】git别名使用
【git神技】一个本地仓库同时提交到github/gitlab/gitee等多个代码平台
gitlab使用记录
git问题汇总
git-for-windows配置
用过的jdk版本
内网穿透-通过公网ip访问本地web服务
常见问题的排查及工具
本文档使用 MrDoc 发布
-
+
首页
.NET(dotnet)
关键字 `dotNet` # dotnet ## difference between .net/.net framework/C# - C#是Microsoft开发的一种编程语言(和c,asm,java,Python一样),其前身就是一路从C->c++>C#逐渐升级过来的,有很多相似性,但是互相之间又很多不同。 - .NET framwork是Microsoft的软件开发框架,主要针对Microsoft Windows操作系统运行。.NET Framework只是一套工具(最常见的就是Visual Studio)和库,可帮助开发人员快速,轻松地开发安全的软件应用程序。可以使用 C#、F# 或 Visual Basic ,Python等编写 .NET 应用 - .net是.NET framwork的升级版本,主要用于开发跨平台(windo,linux,macos等)的应用。 .NET 为跨平台框架,可在 Linux、macOS 和 Windows 上运行。.NET Framework 仅在 Windows 上运行. 微软官方解释: 发展顺序:.net framework ->.net core ->.net 微软官方对.net的定义: NET 是免费的。不收取任何费用或许可成本,包括商业用途。 .NET 是开源的、跨平台的,且具有适用于 Windows, Linux, and macOS 的免费开发工具。 ## version 7 ## download and install ### linux `https://learn.microsoft.com/zh-cn/dotnet/core/install/linux-scripted-manual?source=recommendations` ``` DOTNET_FILE=dotnet-sdk-7.0.100-linux-x64.tar.gz export DOTNET_ROOT=/opt/tools/dotnet7 export PATH=$PATH:$DOTNET_ROOT:$DOTNET_ROOT/tools:/root/.dotnet/tools ``` ### windows visit `https://dotnet.microsoft.com/zh-cn/download/dotnet/7.0` and search `Windows` and click `x64`, target exe is like dotnet-sdk-7.0.401-win-x64.exe quiet install: `dotnet-sdk-7.0.401-win-x64.exe /install /quiet /norestart` you can use `dotnet` command in cmd after dotnet-sdk-7.0.xxx-win-x64.exe was installed. ## in 'vs code' - vscode - 'c#' extension ## project ### cui project dotnet new console -o MyApp -f net7.0 dotnet run dotnet build ### web project dotnet new blazorserver -o BlazorApp --no-https -f net7.0 dotnet watch ### web rest api project dotnet new webapi --no-https -o rest-api-app -f net7.0 dotnet run curl -XGET https://localhost:5000/weatherforecast dotnet tool install -g Microsoft.dotnet-httprepl Controller 派生自 ControllerBase,并添加了对视图的支持,因此它用于处理网页,而不是 Web API 请求。 rm -rf ./release-output dotnet clean dotnet publish -c Release -o ./release-output dotnet publish -r linux-x64 /p:PublishSingleFile=true #### 发布 rm -rf ./out/ docker run --rm -v $(pwd):/app -w /app mcr.microsoft.com/dotnet/sdk:7.0 dotnet publish -c Release -o out /p:PublishSingleFile=true rm -rf /tmp/rest-api0-v0.0.1 mv ./out /tmp/rest-api0-v0.0.1 ## 问题 q: Process terminated. Couldn't find a valid ICU package installed on the system. Please install libicu (or icu-libs) using your package manager and try again. Alternatively you can set the configuration flag System.Globalization.Invariant to true if you want to run with no globalization support. Please see https://aka.ms/dotnet-missing-libicu for more information. a: `yum install libicu -y`
我是张三
2024年10月16日 21:32
转发文档
收藏文档
上一篇
下一篇
手机扫码
复制链接
手机扫一扫转发分享
复制链接
eblog
Markdown文件
分享
链接
类型
密码
更新密码