Looking to start a new repo for a cross-platform .net library? Use this template to get started.
- NetStandard library
- NetStandard Test project
- Sample Apps (using Xamarin Forms so you only need to write UI once)
- UWP
- iOS
- macOS
- Android
- Create your new repo
- Copy all files from this repo to your new repo (don't forget the hidden files as well,
.gitignore
,.gitattributes
,.vscode
)- The command will probably look something like this:
cd MyNewRepo cp -r ~/Downloads/NetStandardLibraryTemplate-master/ .
- Commit as your initial commit
- Now update your library name by running the powershell script
./RenameLibrary.ps1 -NewLibraryName "<your library name here in PascalCase>"
- If you aren't on Windows that's ok, powershell is available for all platforms.
- Update the actual library and the tests and the Forms sample app UI
- Visual Studio (2017 or VS for Mac)
- .Net Core SDK (to build from command line)
msbuild /t:restore
msbuild
- Update template to include a platform specific implementation
- Provide sample docs to include in a library's repo, like:
- How to build
- How to publish builds
- How to setup CI
- How to run tests