Posted 14 September 2020, 4:49 am EST
I am attempting to run the Localize.bat file to create a German version of the WpfViewer files, as described in the post https://www.grapecity.com/activereports/docs/v14/online/localize-activereports-resources.html.
I have copied the files from localization files from C:\Program Files (x86)\GrapeCity\ActiveReports 14\Localization to my temp folder, c:\Temp\Localize:
- “Localize.bat
NameCompleter.exe
NameCompleter.exe.config
publickey.snk
WpfViewer.bat
WpfViewer.zip”
I have modified WpfViewer.bat file, changing the Culture to German:
set Culture=de-DE
I also modified the C:\Temp\Localize\WpfViewer\Res\ActiveReports\Viewer\Wpf\WpfResources.resx with some of the translated-to-German text that I need.
When I execute the batch file by running “Localize WpfViewer” in the command prompt, it appears to run fine until the section below:
**********************************************************************
** Visual Studio 2019 Developer Command Prompt v16.6.1
** Copyright (c) 2020 Microsoft Corporation
**********************************************************************
" "
Parameters:
Create
Unhandled Exception: System.Exception: Parameters mismatch
at NameCompleter.NameCompleter..ctor(String[] parameters)
at NameCompleter.Program.Main(String[] args)
Microsoft (R) Build Engine version 16.6.0+5ff7b0c9e for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
MSBUILD : error MSB1009: Project file does not exist.
Switch: \Res\build.msbuild
Parameters:
Clean
Unhandled Exception: System.Exception: Parameters mismatch
at NameCompleter.NameCompleter..ctor(String[] parameters)
at NameCompleter.Program.Main(String[] args)
"For testsing purpose you must register assembly for strong name verification skipping - required admin permissions."
At line 5, there is a quoted empty string. At this point, I have added the line to see what it was doing, but it only shows an empty string:
echo "%ProjectName% %BaseNamespace% %Culture%"
What can I do to resolve the issue so it builds correctly. It looks like it is not picking up the project name, and I’m going to pursue that, but perhaps you can shed some light on what is happening.