Repository navigation
Allow pulling packages only from nuget.org. Add a build workflow to ensure the build is good for PRs and CI #10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
b27a019
Add a nuget.config to ensure only nuget.org packages are used to buil…
6413c33
Add a workflow to build the data store examples and metadata-builder …
1b23322
Potential fix for pull request finding
dixonjoel b1408db
Run the metadata-builder build step even if the examples build fails.
71c48f1
Add formatting / SA checks
1406203
Update package versions to latest published
8cde82b
Update README - we now go to the temp_data folder and not the default…
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| name: Build | ||
|
|
||
| on: | ||
| push: | ||
| branches: [main, releases/**] | ||
| pull_request: | ||
| branches: [main, releases/**] | ||
| workflow_dispatch: | ||
|
|
||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }} | ||
| cancel-in-progress: ${{ github.event_name == 'pull_request' }} | ||
|
|
||
| jobs: | ||
| build: | ||
| name: Build on Windows | ||
| runs-on: windows-latest | ||
|
|
||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Setup .NET | ||
| uses: actions/setup-dotnet@v4 | ||
|
dixonjoel marked this conversation as resolved.
|
||
| with: | ||
| dotnet-version: '8.0.x' | ||
| - name: Build examples | ||
| run: dotnet build examples/Examples.slnx | ||
|
|
||
| - name: Check formatting (examples) | ||
| if: always() | ||
| run: dotnet format examples/Examples.slnx --verify-no-changes | ||
|
|
||
| - name: Build metadata-builder | ||
| if: always() | ||
| run: dotnet build metadata-builder/MetadataBuilder.slnx | ||
|
|
||
| - name: Check formatting (metadata-builder) | ||
| if: always() | ||
| run: dotnet format metadata-builder/MetadataBuilder.slnx --verify-no-changes | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,19 +1,14 @@ | ||
| # Datastore .NET Examples | ||
|
|
||
| This repo contains the source code for examples that show how to use the .NET API of NI Measurement Data Services. | ||
| These examples do not go through any build process, you can simply copy them to a system that has the necessary | ||
| software installed. | ||
| This repo contains the source code for examples that show how to use the .NET API of NI Measurement Data Services. These examples do not go through any build process, you can simply copy them to a system that has the necessary software installed. | ||
|
|
||
| ## Running the Examples | ||
|
|
||
| 1. Clone or download this repository. | ||
| 2. Copy the contents of `Examples` to a system that has NI Measurement Data Services and the .NET framework installed. | ||
| 2. Copy the contents of `examples` to a system that has NI Measurement Data Services including .NET installed. | ||
| 3. Compile and run the console applications defined in the .csproj files in the `Examples` directory. | ||
| 4. Be aware that running these examples will publish data to the default datastore location on your system. Data that is | ||
| published by a certain example may show up in queries from other examples or from your own Measurement Data Services application. | ||
| 4. Running these examples will publish data to the `examples/temp_data` folder in the repo. | ||
|
|
||
| ## Installation | ||
|
|
||
| As a prerequisite to using the DataStore .NET API, you must install Measurement Data Services | ||
| Software 2026 Q1 or later on your system. You can download and install this software using | ||
| [NI Package Manager](https://www.ni.com/en/support/downloads/software-products/download.package-manager.html). | ||
| As a prerequisite to using the DataStore .NET API, you must install Measurement Data Services Software 2026 Q1 or later on your system. You can download and install this software using [NI Package Manager](https://www.ni.com/en/support/downloads/software-products/download.package-manager.html). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <configuration> | ||
| <packageSources> | ||
| <clear /> | ||
| <add key="nuget.org" value="https://api.nuget.org/v3/index.json" /> | ||
| </packageSources> | ||
|
|
||
| <packageSourceMapping> | ||
| <clear /> | ||
| <packageSource key="nuget.org"> | ||
| <package pattern="*" /> | ||
| </packageSource> | ||
| </packageSourceMapping> | ||
|
|
||
| <config> | ||
| <add key="httpTimeout" value="180" /> | ||
| </config> | ||
| </configuration> |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.