首页 > 其他分享 >dotnet commands

dotnet commands

时间:2023-04-12 16:36:23浏览次数:39  
标签:commands -- FirstProject dotnet new NET sdk

 

dotnet --list-sdks

 

dotnet new webapi --no-https

 

dotnet new page -n Counter

 

 

dotnet new globaljson --sdk-version 6.0.100 --output FirstProject
dotnet new mvc --no-https --output FirstProject --framework net6.0
dotnet new sln -o FirstProject
dotnet sln FirstProject add FirstProject

  

 dotnet publish

 

Publish an ASP.NET Core app to IIS | Microsoft Learn

dotnet publish --configuration Release

  

 

deploy to fedora

Install .NET on Fedora - .NET | Microsoft Learn

install sdk and runtime
sudo dnf install dotnet-sdk-7.0
sudo dnf install aspnetcore-runtime-7.0
   check runtime     dotnet --list-sdks     dotnet --list-runtimes    

标签:commands,--,FirstProject,dotnet,new,NET,sdk
From: https://www.cnblogs.com/zyip/p/17305122.html

相关文章

  • dotnet CLI推送Nuget
    前提:准备好要发布的包选择一个打包工具,可以是dotnetCLI、nuget.exeCLI、MSBuild准备好Nuget官方APIKey自述文件  先必须添加Readme.md到项目中(包含在项目中),双击项目文件,添加README.md(注意路径),并制定文件地址:--javascripttypescriptbashsqljsonhtmlcs......
  • dotnet-exec 让 C# 程序更简单【转】
    Introdotnet-exec是一个可以执行C#程序而不需要项目文件的命令行工具,并且你可以指定自定义的入口方法不仅仅是Main方法在python/NodeJs里,可以使用pythonxx.py/nodexx.js来运行代码,在C#中一般是需要项目文件才能dotnetrun运行代码,这对于一些比较简单的代码来说会显得麻......
  • 【Dotnet 工具箱】探索 LiveCharts2:一款强大的跨平台图表库
    你好,这里是Dotnet工具箱,定期分享Dotnet有趣,实用的工具和组件,希望对您有用!LiveCharts2LiveCharts2是一个简单、灵活、交互式以及功能强大的跨平台图表库。LiveCharts2现在几乎可以在任何地方运行,包括Maui、UnoPlatform、Blazor-wasm、WPF、WinForms、Xamarin、Avalonia......
  • The Vim commands cheat sheet (ubuntu) vi编辑器常用的命令及快捷键
    HowtoExit :q[uit]QuitVim.Thisfailswhenchangeshavebeenmade.:q[uit]!Quitwithoutwriting.:cq[uit]Quitalways,withoutwriting.:wqWritethecurrentfileandexit.:wq!Writethecurrentfileandexitalways.:wq{file}Writeto{file}.Exitifnotedi......
  • dotnet-sharp 笔记(二)
    C#新特性泛型属性创建属性时可直接使用泛型//声明一个泛型属性publicclassGenericAttribute<T>:Attribute{}//使用[GenericAttribute<string>()]publicstringMethod()=>default;字符串内可插入换行符$"{\r\n}"原始字符串三个双引号开头并结尾,可以包含任......
  • ubuntu ftp 基本FTP命令 Basic FTP Commands
    YoucanuseFTPtotransferfilesfromyourMacOSXSnowLeopardcomputerwithanFTPserverbyusingthecommand-lineinterface(CLI);tousetheCLI,opena......
  • High availability · AzureAD/microsoft-authentication-library-for-dotnet Wiki ·
    Highavailability·AzureAD/microsoft-authentication-library-for-dotnetWiki·GitHubPro-activetokenrenewalToimproveavailabilityMSALtriestoensuret......
  • Linux 运行dotnet Core发布的单个文件
    1、发布  2、拷贝  3、运行cd/MySelf/Core_Jun./Core.Jun.DataCollect2>&1 ......
  • dotnet-csharp
    为什么要从基础看起从.netframework3.5就开始接触c#,到现在.net7的崛起,期间有大量的新技术和框架冲击着我,MVC1.0的时候放弃过,感觉无所适从,linq也是近几年才开始使用,感觉......
  • Dockerfile 构建 dotnet + python 镜像
    1编写DockerfileFROMmcr.microsoft.com/dotnet/aspnet:6.0WORKDIR/rootRUNaptupdate\&&aptinstallwgetbuild-essentialzlib1g-devlibncurses5-devli......