mirror of
https://github.com/OPCFoundation/UA-.NETStandard.git
synced 2026-10-20 00:31:32 +08:00
dcc02f179d
* Update version.json (#3050) * Fix XML Encoding and decoding of Matrix Element in Variant to conform to spec (#3053) (#3054) * Fix XML Encoding and decoding to conform to spec * fix test on linux * fix typo * Add missing DataValue & DiagnosticInfo Array Types Co-authored-by: romanett <romanett98@gmail.com> * Return NodeSet to 1.05.04. * Remove OptionalPlaceholders on instances. * Fix duplicate pragas. * Fix glitches in generated files. --------- Co-authored-by: Suciu Mircea Adrian <Mircea-Adrian.Suciu@softing.com> Co-authored-by: romanett <romanett98@gmail.com> Co-authored-by: Randy Armstrong <randy@sparhawksoftware.com>
46 lines
1.2 KiB
Batchfile
46 lines
1.2 KiB
Batchfile
@echo off
|
|
setlocal
|
|
|
|
set XSD=xsd
|
|
|
|
where %XSD% >nul 2>&1
|
|
if not %ERRORLEVEL%==0 (
|
|
echo %XSD% is NOT in the PATH.
|
|
exit 1
|
|
)
|
|
|
|
set SVCUTIL=svcutil
|
|
|
|
where %SVCUTIL% >nul 2>&1
|
|
if not %ERRORLEVEL%==0 (
|
|
echo %SVCUTIL% is NOT in the PATH.
|
|
exit 1
|
|
)
|
|
|
|
echo Processing NodeSet Schema
|
|
%XSD% /classes /n:Opc.Ua.Export UANodeSet.xsd
|
|
|
|
powershell -NoProfile -Command ^
|
|
"$content = Get-Content -Raw -Encoding UTF8 'UANodeSet.cs';" ^
|
|
"$utf8NoBom = New-Object System.Text.UTF8Encoding $false;" ^
|
|
"[System.IO.File]::WriteAllText('temp1.txt', $content, $utf8NoBom)"
|
|
|
|
echo #pragma warning disable 1591 > temp2.txt
|
|
type temp1.txt >> temp2.txt
|
|
type temp2.txt > UANodeSet.cs
|
|
|
|
echo Processing SecuredApplication Schema
|
|
%SVCUTIL% /dconly /namespace:*,Opc.Ua.Security /out:SecuredApplication.cs SecuredApplication.xsd
|
|
|
|
powershell -NoProfile -Command ^
|
|
"$content = Get-Content -Raw -Encoding UTF8 'SecuredApplication.cs';" ^
|
|
"$utf8NoBom = New-Object System.Text.UTF8Encoding $false;" ^
|
|
"[System.IO.File]::WriteAllText('temp1.txt', $content, $utf8NoBom)"
|
|
|
|
echo #pragma warning disable 1591 > temp2.txt
|
|
type temp1.txt >> temp2.txt
|
|
type temp2.txt > SecuredApplication.cs
|
|
|
|
del /Q temp1.txt
|
|
del /Q temp2.txt
|