1. 安装 .net framework sdk

小于等于 .net framework 4.5 版本的 .net framework sdk 通过 windows sdk 工具安装

从下面额链接找到对应的windows SDK下载:

http://msdn.microsoft.com/en-us/library/windows/desktop/ff851942.aspx

Win8.1 对应 .NET Framework V4.5.1

Win8   对应 V4.5

2.安装msbuild

 安装包下载地址 https://visualstudio.microsoft.com/zh-hans/thank-you-downloading-visual-studio/?sku=BuildTools&rel=16

 安装步骤

 

3.部署到远程服务器

不用 PublishProfile

"C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin\msbuild.exe" ./WebApi.csproj /p:Configuration=Release /p:DeployOnBuild=true /p:DeployTarget=MsDeployPublish /p:MsDeployServiceUrl=192.168.xxx.xxx /p:AllowUntrustedCertificate=True /p:MSDeployPublishMethod=WMSvc /p:UserName="xxxxx" /p:Password="xxxxx" /p:DeployIISAppPath="xxxxx" /p:VisualStudioVersion=16.0

用 PublishProfile

"C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin\msbuild.exe" ./WebApi.csproj /p:Configuration=Release /p:CreatePackageOnPublish=True /p:DeployOnBuild=true /p:PublishProfile=./Properties/PublishProfiles/FolderProfile.pubxml  /p:VisualStudioVersion=16.0 /p:Password="xxxxx"

VisualStudioVersion 对应具体的 vs

最新文章

  1. gitlab使用个人版v16.11
  2. C程序范例(1)——学生管理系统”数组“实现
  3. mbed学习之 PWMOUT
  4. [06]APUE:系统数据文件和信息
  5. Ubuntu14中supervisor的安装及配置
  6. [转]backbone.js 初探
  7. [荐]Js apply()和call()方法详解 - http://www.w3cfuns.com/article-5596443-1-1.html
  8. nginx:配置详细说明
  9. ThinkPHP跳转与重定向的区别在哪里
  10. VHDL学习札记:library and Package
  11. JVM基础知识总结
  12. .net视图中日期格式化
  13. linux版本qq的安装
  14. Orchard开源ASP.NET MVC CMS简介
  15. css超简单实现div页面居中【适合做弹出框】
  16. Flask-SQLAlchemy.........>model创建表
  17. 毕加索的艺术——Picasso,一个强大的Android图片下载缓存库,OkHttpUtils的使用,二次封装PicassoUtils实现微信精选
  18. 使用VMware安装Ubuntu虚拟机,创建后开启显示黑屏的解决方法
  19. 改造一下jeecg中的部门树
  20. Ubuntu16.04安装Ambari 2.7.3

热门文章

  1. python爬取站长之家植物图片
  2. first集合follow集的求法
  3. linux 管道,输出重定向,后端执行
  4. Bag of Tricks for Image Classification with Convolutional Neural Networks笔记
  5. GStreamer: your gstreamer installation is missing a required plugin in funct
  6. 项目Beta冲刺(团队)——05.23(1/7)
  7. ubuntu及Cenos国内镜像下载
  8. JPA批量插入优化
  9. 如果用了flex去加一个箭头怎么让他剧中
  10. [原创]App弱网测试方法介绍