HakanL / resxtranslator

Resx Resource Translator
GNU General Public License v2.0
139 stars 30 forks source link

Error compiling with Visual Studio 2017 - Impossible to find value 'Ctrl' requested #41

Closed bovirus closed 4 years ago

bovirus commented 4 years ago

src\Windows\MainWindow.resx(596,5): error MSB3103: file Resx not valid. Impossible to find value 'Ctrl' requested. Row 596, position 5.

Klocman commented 4 years ago

The build works fine for me. Make sure your VS is fully updated and that you have the .NET 4.x targeting packs installed.

bovirus commented 4 years ago

Visual Studio 2017 15.9.20 installed and updated. .Net Framework installed (bundled 4.8 with Windows 10).

Probably your source is developed basing a OS like Windows 7 and previous Framework.net version (in the sources there are references about Framework .net 3.5.1 and 4.0.0).

Could you please update the source with teh files pf this PR

https://github.com/HakanL/resxtranslator/pull/40

and release a new build that contain also Italian language?

Thanks.

Klocman commented 4 years ago

I'm currently using Windows 10, it shouldn't affect anything. The targeting packs are not the same as the .Net version used by your OS. You need to install those through the Visual Studio installer (Tools > Get tools and features).

A clean installation of either VS 2017 or VS 2019 should work without any issues, there must be something wrong with your environment.

bovirus commented 4 years ago

I already reinstalled from scratch Visual Studio 2017.

What kind of Framework.net are yoiu using in Windows 10? 4.8? Because in teh source there are referenecs to 3.5. and 4.0.0.

When you mentioend to install it from "Tools" -> "Get tools and features" and what modules are referring?

Klocman commented 4 years ago

The version of .Net in Windows 10 does not matter, you should always have the newest version installed and it will run apps compiled for all previous versions without issues.

You should have .NET Destop Development workload and all targeting packs for .NET Framework installed. Capture

bovirus commented 4 years ago

I checked that all framework.net are like yours.

In src\CellEditor\CellEditorWindows.resx tehre is a mention about .net framework 3.5.1

ScintillaNET.Scintilla, ScintillaNET, Version=3.5.10.0, Culture=neutral, PublicKeyToken=null

Is it normal? To bypass it I instaleld FRamwerk.net 3.5.

Loading the .sln file I got this error

src\Properties\Settings.Designer.cs(27,72,27,96): error CS0246: The type or namespace name 'PortableSettingsProvider' could not be found (are you missing a using directive or an assembly reference?)

Klocman commented 4 years ago

Clone a fresh copy of the repository and try building that instead.

bovirus commented 4 years ago

Now it works. Thanks.