xamarin-macios/msbuild/Xamarin.Localization.MSBuild
Rolf Bjarne Kvinge b48958be8e
[msbuild] Rework code signing to sign everything at the end of the build. (#13956)
* Add support for specifying metadata on items that are to be codesigned to
  override any general codesign setting.

* Make the Codesign task able to sign files and directories that may depend on
  eachother.

  Implement support for ordering signing so that directories containing files
  that also must be signed are signed after those files.

  This is implemented by:

  1. Normalize all input (resolve symlinks, create full path, etc.)

  2. Sort by path length (longest to shortest paths). This way we're certain
     that if we find a directory, we'll know that we won't find any files
     later in the list from inside that directory.

  3. Group into an ordered list of buckets, where each bucket contains files
     and directories that don't depend on eachother (i.e. they can all be
     signed in parallel).

  This makes it possible to call Codesign once, listing both the app bundle
  itself, and all the individual files or directories inside that need
  signing, and the Codesign task will sign the items in an order that ensures
  parent directories are always signed after any files or directories inside.

* Finally rework code signing to sign everything with a single call to the
  Codesign task in the _CodesignAppBundle target for the executable project,
  instead of having multiple calls to the Codesign task from multiple targets
  (and projects). This makes it easier to reason about what's being signed,
  and it also makes it easier to add files to the signing process.

* Also make the Codesign task able to figure out if something needs to be
  signed, and change the _CodesignAppBundle target to not keep track of
  inputs/outputs, because it becomes quite complex (for directories, it needs
  to keep track of all the files inside that directory, and also if there's
  anything in the directory that's also being signed).
2022-02-08 10:41:51 +01:00
..
TranslatedAssemblies Localized file check-in by OneLocBuild Task: Build definition ID 14411: Build ID 5659994 (#13853) 2022-01-24 15:36:28 -06:00
MSBStrings.Designer.cs [msbuild] Rework code signing to sign everything at the end of the build. (#13956) 2022-02-08 10:41:51 +01:00
MSBStrings.resx [msbuild] Rework code signing to sign everything at the end of the build. (#13956) 2022-02-08 10:41:51 +01:00
README.md Updating Localization READMEs (#11738) 2021-06-01 09:51:38 -05:00
Xamarin.Localization.MSBuild.csproj [msbuild] Sign the localization assembly as well. (#12869) 2021-09-30 07:32:06 +02:00

README.md

MSBuild Localization

Messages for new MSBuild error codes live in MSBStrings.resx.

  • You can now make changes to MSBStrings.resx in the Visual Studio for Mac IDE or from any text editor.

  • If you make changes in the IDE, you should see changes automatically copy into MSBStrings.Designer.cs. Be sure to rebuild the project after making your changes.

  • If you make changes from a text editor, be sure to run make inside the xamarin-macios/msbuild/Xamarin.Localization.MSBuild directory.

See Localization Wiki for more details on our localization process

or the OneLocBuild Wiki for information on OneLocBuild.