SDK for using Mapbox APIs with C#. If you'd like to contribute to the project, read CONTRIBUTING.md.
With an IDE:
MapboxSdkCs.sln
with Visual Studio or Xamarin StudioDebugNet
for targeting .NetFramework >=3.5DebugUWP
for targeting UWPBuild -> Rebuild Solution
bin\Debug\net35\
bin\Debug\uap10
On the command line:
nuget restore MapboxSdkCs.sln
msbuild MapboxSdkCs.sln /p:Configuration=<DebugNet|DebugUWP>
mono nuget.exe restore MapboxSdkCs.sln
xbuild MapboxSdkCs.sln /p:Configuration=<DebugNet|DebugUWP>
bin\Debug\net35\
bin\Debug\uap10
Currently tests are only available with configuration DebugNet
.
To run the tests you need to have the MAPBOX_ACCESS_TOKEN
environment variable set.
Log into your Mapbox account at https://www.mapbox.com/studio to obtain an access token.
Before publishing verify that there no build or test errors locally and on AppVeyor and Travis!
versions.txt
dlls
: will patch the AssemblyVersion
attribute in src\SharedAssemblyInfo.cs
, e.g.: dlls:1.0.0.1
. Convention is <major version>.<minor version>.<build number>.<revision>
.nupkg
: defines the version of the nuget package, e.g.: nupkg:1.0.0-alpha04
.
This may be different from dlls
as Nuget allows for custom postfixes to identify pre-releases, see https://docs.nuget.org/ndocs/create-packages/prerelease-packages#semantic-versioning[publish nuget]
(can be anywhere within the commit message)nupkg
version[publish docs]
[publish nuget]
gh-pages
This should not be done unless there is an emergency (e.g. AppVeyor is down)
SET MAPBOX_ACCESS_TOKEN=<MAPBOX-ACCESS-TOKEN>
SET NUGET_API_KEY=<NUGET-API-KEY-WITH-PERMISSION-TO-PUSH-NUPKG>
SET GITHUB_TOKEN=<GITHUB-TOKEN-WITH-PERMISSION-TO-PUSH-TO-GHPAGES>
versions.txt
build-local.bat "APPVEYOR_REPO_COMMIT_MESSAGE=[publish nuget] [publish docs]"