AmmyUI
AmmyUI copied to clipboard
Don't add `lib.ammy` to main project
The idea is to link lib.ammy without referencing it in the main project. The navigation (F12 or Ctrl+Click) would still work.
That's the idea I has proposed a month ago and there are my thoughts backing it:
Lib.ammywas conceived as kind ofBCL- it should provide common set of Ammy aliases and mixins. There is no point of modifying it by user - he could always create a newammy-file with his own mixins. He could also add thatammyfile as an "existing item" (linked file) to other projects. All the new aliases and mixins suggestions could be posted here in Github for including inLib.ammy.- Currently
Lib.ammyis added into the root of the project during the nuget installation. If user moved it away, a newLib.ammywill be added during nuget update and user will have MSBuild errors because there are twoLib.ammyfiles with the same aliases and mixins defined. - Also
Lib.ammyis overwritten during nuget update, potentially loosing changes done by user. MovingLib.ammyaway from the project will prevent user from editing it. Otherwise it's simply not safe to forceLib.ammyoverwriting, but keeping old file is also not a good idea. - Having some enforced file in the root of the project is not a good idea. In my particular case, all the markup files are go into
UIsubfolder. But currently Ammy enforcingLib.ammyadding into the root folder of the project. It leads to the issue described at point 2.
@ionoy
The navigation (F12 or Ctrl+Click) would still work.
Very good! But you will need to mark file as read only as well, and add comment header that "this file is not editable because...".
Regards!
+1 to this. Should I be adding it to my .gitignore in the meantime?