Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

salesforce/NetStandardLibraryTemplate

NetStandard Library Template

Looking to start a new repo for a cross-platform .net library? Use this template to get started.

What's Included

  1. NetStandard library
  2. NetStandard Test project
  3. Sample Apps (using Xamarin Forms so you only need to write UI once)
    • UWP
    • iOS
    • macOS
    • Android

Instructions

  1. Create your new repo
  2. 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/ .
  3. Commit as your initial commit
  4. 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.
  5. Update the actual library and the tests and the Forms sample app UI

Requirements

To build from command line

msbuild /t:restore
msbuild

Future Improvements

  • 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

About

Looking to start a new repo for a cross-platform .net library? Use this template to get started.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published