13 Star 57 Fork 25

黄昏MMM / h-opc

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
configure.ps1 682 Bytes
一键复制 编辑 原始数据 按行查看 历史
jmbeach 提交于 2018-02-11 14:35 . output generated configs as ascii
Write-Host 'Configure Test Project:'
$baseConfig = @'
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="UATestEndpoint" value="${uaEndpoint}"/>
</appSettings>
</configuration>
'@
# Configure Test UA server endpoint
$uaAddress = Read-Host -Prompt 'Enter the address of your UA Test server (default: "opc.tcp://localhost:61210/UA/SampleServer")'
if ([string]::IsNullOrEmpty($uaAddress))
{
$uaAddress = 'opc.tcp://localhost:61210/UA/SampleServer'
}
$baseConfig = $baseConfig.Replace('${uaEndpoint}', $uaAddress)
$baseConfig | Out-File 'tests\App.config' -Encoding ascii
Write-Host 'Configured project successfully'
C#
1
https://gitee.com/lishilei0523/h-opc.git
git@gitee.com:lishilei0523/h-opc.git
lishilei0523
h-opc
h-opc
master

搜索帮助