7c6c8e02e3
* Bump Xamarin.MacDev.
New commits in xamarin/Xamarin.MacDev:
* xamarin/Xamarin.MacDev@1e738e9 [Xamarin.MacDev] Extract the code to convert between Mac Catalyst versions to a separate file. (#89)
* xamarin/Xamarin.MacDev@a3bb12c [Xamarin.MacDev] Add methods to map between iOS and macOS versions for Mac Catalyst. (#88)
Diff:
|
||
---|---|---|
.. | ||
xlf | ||
MSBStrings.Designer.cs | ||
MSBStrings.resx | ||
README.md | ||
Xamarin.Localization.MSBuild.csproj |
README.md
MSBuild Localization
Messages for new MSBuild error codes live in MSBStrings.resx
.
If changes are made to MBStrings.resx
, you will hit:
XliffTasks.targets(91,5): error : 'xlf\MSBStrings.cs.xlf' is out-of-date with 'MSBStrings.resx'.
Run `msbuild /t:UpdateXlf` to update .xlf files or set UpdateXlfOnBuild=true to update them on every build,
but note that it is strongly discouraged to set UpdateXlfOnBuild=true in official/CI build environments
as they should not modify source code during the build.
To regenerate the .xlf
files run:
$ msbuild msbuild/Xamarin.Localization.MSBuild/Xamarin.Localization.MSBuild.csproj -restore -t:UpdateXlf
For mtouch
, Errors.resx
contains the localizable strings. Use
these commands instead to update .xlf
files:
$ nuget restore tools
$ msbuild tools/mtouch/mtouch.csproj -t:UpdateXlf
For generator
, src/Resources.resx
, contains the localizable
strings. To update the .xlf
files:
$ nuget restore src
$ msbuild src/generator.csproj -t:UpdateXlf
NOTE: nuget restore
can be used instead of the MSBuild -restore
switch for projects using packages.config
See dotnet/xliff-tasks or Xamarin.Android's documentation for details.