visual-studio - VS2019 - VSTS - .NET Core 3.1:%LAUNCHER_PATH% 被替换
问题描述
我需要使用VSTS在远程IIS 服务器上部署.NET Core API
但是 Visual Studio 更改web.config,将变量processPath修改为我的本地 IIS 配置,每次我在本地运行应用程序时,即使我更改它
<aspNetCore processPath="some_local_path_not_existing_on_remote_server\myapi.exe" arguments="" stdoutLogEnabled="true" stdoutLogFile=".\logs\stdout" hostingModel="InProcess">
所以当我部署应用程序时,路径与远程服务器路径不匹配
我尝试在 web.config 中使用%LAUNCHER_PATH% ,它也被替换了
我可以使用 VSTS 替换 web.config 中的值,但 %LANCHER_PATH% 更便携
为什么当我在本地运行应用程序时它会被替换?如何避免这种情况?
问候
解决方案
推荐阅读
- javascript - 如何在反应js javascript中使用for循环动态更新html内容
- mysql - ERROR tool.BaseSqoopTool: Error parsing arguments for import: 将 Mysql 数据导入 S3 时
- android - 有没有办法以编程方式对 Android 上的系统权限对话框执行输入操作?
- swift - sum.swift:29:19:错误:在范围内找不到“CFAbsoluteTimeGetCurrent”
- python - 删除链表元素
- excel - 溢出范围内的过滤范围
- python - 加载具有一列的 csv 文件,其中包含一个以字符串形式写入的 numpy 数组
- docker - Dockerfile 无法连接代理服务器
- pandas - 如何重命名熊猫数据框列的数据?
- python - 为什么 python c api 不适用于用 c 编写的 apache 模块?