Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/MarcosCobena/XamarinCrumbs
A set of source code files —including XAML ones— which I tend to reuse once and again
https://github.com/MarcosCobena/XamarinCrumbs
Last synced: 3 months ago
JSON representation
A set of source code files —including XAML ones— which I tend to reuse once and again
- Host: GitHub
- URL: https://github.com/MarcosCobena/XamarinCrumbs
- Owner: MarcosCobena
- Archived: true
- Created: 2018-08-10T12:56:33.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-11-22T14:14:47.000Z (almost 6 years ago)
- Last Synced: 2024-05-13T00:01:57.647Z (6 months ago)
- Language: C#
- Homepage:
- Size: 17.6 KB
- Stars: 8
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-xamarin-forms - Xamarin Crumbs ★8
README
***IMPORTANT NOTE:** I decided to move this effort into the post series [Xamarin.Forms XAML](https://marcoscobena.com/?i=xf-xaml) so won't be updating this project anymore.*
# Xamarin Crumbs
A set of source code files —including XAML ones— which I tend to reuse once and again.
Instead of going to the last project I made, the idea is to look here. NuGet looks too much for me here, that's the reason why a simple Shared Project aglutinates everything I may need. I simply take all those pieces likely to reuse, clean them a little bit up (as changing its namespace, for instance) and ready to go.
**NOTE:** It's not intended to provide a buildable project, it hasn't got value per se. Its actual value is to server as a small repository of files which can be copied into our actual solutions.
## How can I use this?
Ideally, you can clone this repo as a submodule into your current project. Adding XamarinCrumbs.shproj to your Solution will make it easier to pick any file.
However, you can also navigate through GitHub and simply copy & paste.
## Project structure
### XamarinForms/
We recommend writting XAML by having one attribute per line —we call this Merge-friendly XAML. The main reason's just
that: merges are easier to handle when changes appear per line, instead of having to look which attribute/s were changed
among a bunch. Also, having a limit of 120 chars per line help us work with multiple files open as columns.
### Settings.StyleCop
1. With a Solution opened, add [StyleCop.MSBuild](https://www.nuget.org/packages/StyleCop.MSBuild/) NuGet to every project you'd like to enforce coding guidelines
2. On such same projects, edit the .csproj to add the following line:```
[...]
false```
1. At the Solution root, place a Settings.StyleCop file like [this](https://marcoscobena.com/items/documents/Settings.StyleCop)
2. Bonus: You can edit visually which rules to apply by running this through CMD:`PathToYourSolution\packages\StyleCop.MSBuild.5.0.0\tools>StyleCop.SettingsEditor.exe ..\..\..\Settings.StyleCop`