Skip to content

A source generator to add a user-defined set of Win32 P/Invoke methods and supporting types to a C# project.

License

Notifications You must be signed in to change notification settings

microsoft/CsWin32

Repository files navigation

Your Library

An awesome template for your awesome library

NuGet package Build Status codecov

Features

  • Follow the best and simplest patterns of build, pack and test with dotnet CLI.
  • Static analyzers: FxCop and StyleCop
  • Read-only source tree (builds to top-level bin/obj folders)
  • Auto-versioning (via Nerdbank.GitVersioning)
  • Azure Pipeline via YAML with all dependencies declared for long-term serviceability.
  • Testing on .NET Framework, multiple .NET Core versions
  • Testing on Windows, Linux and OSX
  • Code coverage published to Azure Pipelines
  • Code coverage published to codecov.io so GitHub PRs get code coverage results added as a PR comment

Consumption

Once you've expanded this template for your own use, you should:

  1. Verify the license is suitable for your goal as it appears in the LICENSE and stylecop.json files and the Directory.Build.props file's PackageLicenseExpression property.
  2. Search the repo for all PLACEHOLDER occurrences and replace them.
  3. Regenerate src\strongname.snk file: sn -k src\strongname.snk
  4. Rename project files, directories, namespaces, and update sln file to match.
  5. Reset or remove the codecov_token variable in azure-pipelines.yml
  6. Reset or replace the badges at the top of this file.

About

A source generator to add a user-defined set of Win32 P/Invoke methods and supporting types to a C# project.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages