webapinetcore - Microsoft.AspNetCoreOData.WebApiTemplate.8.0 1.0.0-Nightly202510080508

OData ASP.NET Core Web Template Pack for Microsoft Template Engine

To install the templates in this package, run 'dotnet new --install Microsoft.AspNetCoreOData.WebApiTemplate.8.0::1.0.0-Nightly202510080508'.

PM> Install-Package Microsoft.AspNetCoreOData.WebApiTemplate.8.0 -Version 1.0.0-Nightly202510080508 -Source https://www.myget.org/F/webapinetcore/api/v3/index.json

Copy to clipboard

> nuget.exe install Microsoft.AspNetCoreOData.WebApiTemplate.8.0 -Version 1.0.0-Nightly202510080508 -Source https://www.myget.org/F/webapinetcore/api/v3/index.json

Copy to clipboard

> dotnet add package Microsoft.AspNetCoreOData.WebApiTemplate.8.0 --version 1.0.0-Nightly202510080508 --source https://www.myget.org/F/webapinetcore/api/v3/index.json

Copy to clipboard
<PackageReference Include="Microsoft.AspNetCoreOData.WebApiTemplate.8.0" Version="1.0.0-Nightly202510080508" />
Copy to clipboard
source https://www.myget.org/F/webapinetcore/api/v3/index.json

nuget Microsoft.AspNetCoreOData.WebApiTemplate.8.0  ~> 1.0.0-Nightly202510080508
Copy to clipboard

> choco install Microsoft.AspNetCoreOData.WebApiTemplate.8.0 --version 1.0.0-Nightly202510080508 --source https://www.myget.org/F/webapinetcore/api/v2

Copy to clipboard
Import-Module PowerShellGet
Register-PSRepository -Name "webapinetcore" -SourceLocation "https://www.myget.org/F/webapinetcore/api/v2"
Install-Module -Name "Microsoft.AspNetCoreOData.WebApiTemplate.8.0" -RequiredVersion "1.0.0-Nightly202510080508" -Repository "webapinetcore" -AllowPreRelease
Copy to clipboard

ASP.NET Core OData Web API Template


Component Build Status
ASP.NET Core ODataDotNetTemplate Rolling Build Status
ASP.NET Core ODataDotNetTemplate Nightly Build Status

This repository provides a .NET template for creating an ASP.NET Core Web API project with OData support. It supports configurations for .NET 8.0 and above, with appropriate setups for each version.

Prerequisites

Getting Started

Follow these steps to use the template locally:

1. Clone the Repository

git clone https://github.com/OData/AspNetCoreODataDotNetTemplate.git

2. Project Build and Content Generation

This project uses MSBuild to automate the build process and generate content from templates. Below are key files involved in this process.

Files

  • Directory.Build.targets: tools/Directory.Build.targets contains custom MSBuild targets applied to all projects in the directory and its subdirectories. Also contains targets for managing version information.
  • Directory.Build.props: Directory.Build.props contains common properties applied to all projects in the directory and its subdirectories.

3. Build Repo

Navigate to the cloned repository directory and build the project to restore necessary packages and dependencies:

cd <repository-directory>/AspNetCoreODataDotNetTemplate/sln
dotnet build

4. Use build.cmd/build.ps1 Script

At the root, there is a PowerShell script (build.ps1) that automates building, creating NuGet packages, and testing the AspNetCoreOData template project.

Usage

To run the script, open a PowerShell terminal, navigate to the directory containing the build.cmd file, and execute the script with the -help parameter:

build.cmd -help

Examples

  1. Build the solution with default settings:
.\build.cmd
  1. Build the solution in Debug configuration and run tests with detailed verbosity:
.\build.cmd -SolutionPath ".\sln\MySolution.sln" -c "Debug" -Test -v "Detailed"
  1. Build the solution and create NuGet packages:
.\build.cmd -SolutionPath ".\sln\MySolution.sln"
  1. Running tests:
.\build.cmd -Test

Artifacts

Building this repo produces artifacts in the following structure:

artifacts/
  bin/                 = Compiled binaries and executables
  obj/                 = Intermediate object files and build logs
  log/
    *.log            = Log files for test runs and individual tests
  $(Configuration)/
    *.binlog         = Binary logs for most build phases
  packages/
  $(Configuration)/
    *.nupkg        = NuGet packages for nuget.org

IncrementVersion.ps1

This script increments the version number in the specified msbuild props file. The version number can be incremented in the following ways:

  • Major version increment
  • Minor version increment
  • Revision version increment
  • Version release number increment

Parameters

  • versionPath: The path to the msbuild props file where the version number is specified.
  • lastReleaseCommit: The ID of the last commit to be released.
  • forceMajorIncrement: Whether to force an increment of the major version number.
  • versionRelease: The version number to be released. For example, preview, beta, alpha, etc.
  • forceMinorIncrement: Whether to force an increment of the minor version number.
  • Help: Show help.

Examples

Increment the minor version number in the Directory.Build.targets file:

Template Project Structure

The generated project will have the following structure:

ODataWebApiApplication/
├── Controllers/
│   └── CustomersController.cs
├── Models/
│   └── Customer.cs
│   └── Order.cs
├── Properties/
│   └── launchSettings.json
├── EdmModelBuilder.cs
├── ODataWebApiApplication.csproj
├── ODataWebApiApplication.http
├── Program.cs
└── appsettings.Development.json
└── appsettings.json

Code of Conduct

This project has adopted the .NET Foundation Contributor Covenant Code of Conduct. For more information see the Code of Conduct FAQ.

.NET Foundation

This project is supported by the .NET Foundation.

ODataDotNetTemplate is a Copyright of © .NET Foundation and other contributors. It is licensed under MIT License

  • .NETFramework 8.0

Signature validation information

Informational

Signature Hash Algorithm: SHA256

Timestamp: 10/8/2025 5:10:05 AM

Verifying author primary signature's timestamp with timestamping service certificate: 
  Subject Name: CN=DigiCert SHA256 RSA4096 Timestamp Responder 2025 1, O="DigiCert, Inc.", C=US
  SHA1 hash: DD6230AC860A2D306BDA38B16879523007FB417E
  SHA256 hash: 4AA03FA22CD75C84C55C938F828E676B9CAECAB33FE36D269AA334F146110A33
  Issued by: CN=DigiCert Trusted G4 TimeStamping RSA4096 SHA256 2025 CA1, O="DigiCert, Inc.", C=US
  Valid from: 6/4/2025 12:00:00 AM to 9/3/2036 11:59:59 PM

Signature type: Author

Verifying the author primary signature with certificate: 
  Subject Name: CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
  SHA1 hash: F25C45D17C53D4E0D1DC9FB9DFD0731FCF904B77
  SHA256 hash: 566A31882BE208BE4422F7CFD66ED09F5D4524A5994F50CCC8B05EC0528C1353
  Issued by: CN=DigiCert Trusted G4 Code Signing RSA4096 SHA384 2021 CA1, O="DigiCert, Inc.", C=US
  Valid from: 7/27/2023 12:00:00 AM to 10/17/2026 11:59:59 PM

Owners

OData Team

Authors

ODataWebApiTemplate

Project URL

https://github.com/OData/ODataDotNetTemplate

License

Unknown

Tags

aspnet templates web webapi api service odata

Signature

Validation: Valid

Info

2 total downloads
0 downloads for version 1.0.0-Nightly202510080508
Download (34.88 KB)
Found on the current feed only

Package history

Version Size Last updated Downloads Mirrored?
1.0.0-Nightly202510080508 34.88 KB Wed, 08 Oct 2025 05:17:42 GMT 0
1.0.0-Nightly202510070508 34.88 KB Tue, 07 Oct 2025 05:17:46 GMT 0
1.0.0-Nightly202508270508 34.88 KB Wed, 27 Aug 2025 05:27:39 GMT 0
1.0.0-Nightly202508250508 34.88 KB Mon, 25 Aug 2025 05:17:14 GMT 0
1.0.0-Nightly202508200509 34.88 KB Wed, 20 Aug 2025 05:18:48 GMT 0
1.0.0-Nightly202508190510 34.88 KB Tue, 19 Aug 2025 05:19:32 GMT 0
1.0.0-Nightly202508180508 34.88 KB Mon, 18 Aug 2025 05:19:37 GMT 0
1.0.0-Nightly202508150508 34.88 KB Fri, 15 Aug 2025 05:19:54 GMT 0
1.0.0-Nightly202508140511 34.88 KB Thu, 14 Aug 2025 05:21:21 GMT 0
1.0.0-Nightly202507030507 34.82 KB Thu, 03 Jul 2025 05:16:07 GMT 0
1.0.0-Nightly202505280507 34.82 KB Wed, 28 May 2025 05:17:58 GMT 0
1.0.0-Nightly202504210507 34.82 KB Mon, 21 Apr 2025 05:17:16 GMT 0
1.0.0-Nightly202503130504 34.82 KB Thu, 13 Mar 2025 05:12:57 GMT 2
1.0.0-Nightly202503100506 34.82 KB Mon, 10 Mar 2025 05:14:41 GMT 0
1.0.0-Nightly202503070750 34.82 KB Fri, 07 Mar 2025 07:58:56 GMT 0