Files
opcfoundation-org dcc02f179d Update to 1.05.04 nodeset (#3091)
* 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>
2025-06-23 13:44:42 +03:00

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