Skip to content

Make url configuration optional#16046

Open
afscrome wants to merge 4 commits intomicrosoft:mainfrom
afscrome:dynamic-urls
Open

Make url configuration optional#16046
afscrome wants to merge 4 commits intomicrosoft:mainfrom
afscrome:dynamic-urls

Conversation

@afscrome
Copy link
Copy Markdown
Contributor

@afscrome afscrome commented Apr 10, 2026

Description

Make it so that aspire can use dynamic ports for ASPIRE_DASHBOARD_OTLP_ENDPOINT_URL, ASPIRE_RESOURCE_SERVICE_ENDPOINT_URL and other urls that previously had to be specifeid in launchsettings.json if they're missing.

This does a number of things such as:

  • Make it easier to use a dashboard within tests - you can now enable the dashboad simply by setting DistributedApplicationBuilderOptions.DisableDashboard = false, and not needing to set a bunch of magic env vars. (Which then get ignored anyway due to Port randomisation for testing)

  • A single file app host should now be possible, without needing to specify aspire.config.json or apphost.run.json. (Not quite possible yet due to Dashboard doesn't load if ASPNETCORE_ENVIRONMENT is not Development #16069)

Helps towards #15999 and #13746

Checklist

  • Is this feature complete?
    • Yes. Ready to ship.
    • No. Follow-up changes expected.
  • Are you including unit tests for the changes and scenario tests if relevant?
    • Yes
    • No
  • Did you add public API?
    • Yes
      • If yes, did you have an API Review for it?
        • Yes
        • No
      • Did you add <remarks /> and <code /> elements on your triple slash comments?
        • Yes
        • No
    • No
  • Does the change make any security assumptions or guarantees?
    • Yes
      • If yes, have you done a threat model and had a security review?
        • Yes
        • No
    • No
  • Does the change require an update in our Aspire docs?

Make it so that aspire can use dynamic ports for `ASPIRE_DASHBOARD_OTLP_ENDPOINT_URL`, `ASPIRE_RESOURCE_SERVICE_ENDPOINT_URL` and other urls that previously had to be specifeid in `launchsettings.json` if they're missing.

This does a number of things such as:

- Make it easier to use a dashboard within tests - you can now enable the dashboad simply by setting `DistributedApplicationBuilderOptions.DisableDashboard = false`

- A single file app host should now be possible, without needing to specify `aspire.config.json` or `apphost.run.json`
@afscrome afscrome requested a review from mitchdenny as a code owner April 10, 2026 20:34
Copilot AI review requested due to automatic review settings April 10, 2026 20:34
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 10, 2026

🚀 Dogfood this PR with:

⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.

curl -fsSL https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 16046

Or

  • Run remotely in PowerShell:
iex "& { $(irm https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 16046"

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates Aspire dashboard/resource-service configuration to treat several URL settings as optional, enabling dynamic port allocation (reducing the need for launchSettings.json-pinned URLs) and making it easier to enable the dashboard in tests and single-file app host scenarios.

Changes:

  • Relaxes transport/dashboard option validation so missing/blank URLs can succeed and be dynamically allocated.
  • Auto-configures dashboard frontend + OTLP endpoints when configuration is missing/blank.
  • Updates/extends tests and removes pinned dashboard/resource-service URL env vars from many playground launch profiles/config files.

Reviewed changes

Copilot reviewed 73 out of 77 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
tests/Aspire.Hosting.Tests/Dashboard/TransportOptionsValidatorTests.cs Updates expectations so missing/blank URLs validate successfully.
tests/Aspire.Hosting.Tests/Dashboard/DashboardResourceTests.cs Adds coverage for dynamic OTLP + frontend endpoint auto-configuration.
tests/Aspire.Hosting.Tests/Dashboard/DashboardOptionsTests.cs Adds coverage for blank OTLP endpoint normalization to null.
src/Aspire.Hosting/Dashboard/TransportOptionsValidator.cs Makes app/OTLP/resource-service URL settings optional (only validate when present).
src/Aspire.Hosting/Dashboard/DashboardServiceHost.cs Chooses default scheme for dynamic resource service hosting based on AllowUnsecuredTransport.
src/Aspire.Hosting/Dashboard/DashboardOptions.cs Normalizes blank OTLP endpoint URLs to null; removes dashboard option validation.
src/Aspire.Hosting/Dashboard/DashboardEventHandlers.cs Adds dynamic dashboard frontend endpoint when ASPNETCORE_URLS missing; always adds OTLP endpoint annotations.
playground/yarp/Yarp.AppHost/Properties/launchSettings.json Removes pinned dashboard/resource-service endpoint env vars; updates applicationUrl host.
playground/withdockerfile/WithDockerfile.AppHost/Properties/launchSettings.json Removes pinned dashboard/resource-service endpoint env vars; updates applicationUrl host.
playground/webpubsub/WebPubSub.AppHost/Properties/launchSettings.json Removes pinned dashboard OTLP env var; updates applicationUrl host.
playground/waitfor/WaitForSandbox.DbSetup/Properties/launchSettings.json JSON formatting fix (closing brace).
playground/waitfor/WaitForSandbox.AppHost/Properties/launchSettings.json Removes pinned dashboard/resource-service endpoint env vars; updates applicationUrl host.
playground/TypeScriptApps/RpsArena/aspire.config.json Removes pinned dashboard/resource-service endpoint env vars from profile.
playground/TypeScriptApps/RpsArena/apphost.run.json Removes pinned dashboard/resource-service endpoint env vars; JSON formatting fix.
playground/TypeScriptApps/AzureFunctionsSample/AppHost/apphost.run.json Removes pinned dashboard/resource-service endpoint env vars; JSON formatting fix.
playground/TypeScriptAppHost/apphost.run.json Removes pinned dashboard/resource-service endpoint env vars.
playground/TestShop/TestShop.AppHost/Properties/launchSettings.json Removes pinned dashboard/resource-service endpoint env vars; updates applicationUrl host.
playground/Stress/Stress.AppHost/Properties/launchSettings.json Removes pinned dashboard/resource-service endpoint env vars; updates applicationUrl host.
playground/SqlServerScript/AppHost1/Properties/launchSettings.json Removes pinned dashboard OTLP env var.
playground/SqlServerEndToEnd/SqlServerEndToEnd.DbSetup/Properties/launchSettings.json JSON formatting fix (closing brace).
playground/SqlServerEndToEnd/SqlServerEndToEnd.AppHost/Properties/launchSettings.json Removes pinned dashboard/resource-service endpoint env vars; updates applicationUrl host; JSON formatting fix.
playground/signalr/SignalR.AppHost/Properties/launchSettings.json Removes pinned dashboard/resource-service endpoint env vars; updates applicationUrl host.
playground/seq/Seq.AppHost/Properties/launchSettings.json Removes pinned dashboard/resource-service endpoint env vars; updates applicationUrl host.
playground/Redis/Redis.AppHost/Properties/launchSettings.json Removes pinned dashboard/resource-service endpoint env vars; updates applicationUrl host.
playground/Qdrant/Qdrant.AppHost/Properties/launchSettings.json Removes pinned dashboard/resource-service endpoint env vars; updates applicationUrl host.
playground/PythonAppHost/apphost.run.json Removes pinned dashboard/resource-service endpoint env vars (keeps MCP endpoint).
playground/python/Python.AppHost/Properties/launchSettings.json Removes pinned dashboard/resource-service endpoint env vars; updates applicationUrl host.
playground/publishers/Publishers.DbSetup/Properties/launchSettings.json JSON formatting fix (closing brace).
playground/publishers/Publishers.AppHost/Properties/launchSettings.json Removes pinned dashboard/resource-service endpoint env vars; updates applicationUrl host.
playground/ProxylessEndToEnd/ProxylessEndToEnd.AppHost/Properties/launchSettings.json Removes pinned dashboard/resource-service endpoint env vars; updates applicationUrl host.
playground/ProjectResourceExtensions/ProjectResourceExtensions.AppHost/Properties/launchSettings.json Removes pinned dashboard/resource-service endpoint env vars; updates applicationUrl host.
playground/PostgresEndToEnd/PostgresEndToEnd.AppHost/Properties/launchSettings.json Removes pinned dashboard/resource-service endpoint env vars; updates applicationUrl host.
playground/pipelines/Pipelines.AppHost/Properties/launchSettings.json Removes pinned dashboard/resource-service endpoint env vars; updates applicationUrl host.
playground/ParameterEndToEnd/ParameterEndToEnd.AppHost/Properties/launchSettings.json Removes pinned dashboard/resource-service endpoint env vars; updates applicationUrl host.
playground/orleans/Orleans.AppHost/Properties/launchSettings.json Removes pinned dashboard/resource-service endpoint env vars; updates applicationUrl host.
playground/OracleEndToEnd/OracleEndToEnd.AppHost/Properties/launchSettings.json Removes pinned dashboard/resource-service endpoint env vars; updates applicationUrl host.
playground/OpenAIEndToEnd/OpenAIEndToEnd.AppHost/Properties/launchSettings.json Removes pinned dashboard/resource-service endpoint env vars; updates applicationUrl host.
playground/nats/Nats.AppHost/Properties/launchSettings.json Removes pinned dashboard/resource-service endpoint env vars; updates applicationUrl host.
playground/mysql/MySqlDb.AppHost/Properties/launchSettings.json Removes pinned dashboard/resource-service endpoint env vars; updates applicationUrl host.
playground/mongo/Mongo.AppHost/Properties/launchSettings.json Removes pinned dashboard/resource-service endpoint env vars; updates applicationUrl host.
playground/milvus/MilvusPlayground.AppHost/Properties/launchSettings.json Removes pinned dashboard/resource-service endpoint env vars; updates applicationUrl host.
playground/keycloak/Keycloak.AppHost/Properties/launchSettings.json Removes pinned dashboard/resource-service endpoint env vars; updates applicationUrl host.
playground/kafka/KafkaBasic.AppHost/Properties/launchSettings.json Removes pinned dashboard/resource-service endpoint env vars; updates applicationUrl host.
playground/JavaAppHost/aspire.config.json Removes pinned dashboard/resource-service endpoint env vars; updates applicationUrl host.
playground/HealthChecks/HealthChecksSandbox.AppHost/Properties/launchSettings.json Removes pinned dashboard/resource-service endpoint env vars; updates applicationUrl host.
playground/GitHubModelsEndToEnd/GitHubModelsEndToEnd.AppHost/Properties/launchSettings.json Removes pinned dashboard/resource-service endpoint env vars; updates applicationUrl host.
playground/FoundryEndToEnd/FoundryEndToEnd.AppHost/Properties/launchSettings.json Removes pinned dashboard/resource-service endpoint env vars; updates applicationUrl host.
playground/FoundryAgentBasic/FoundryAgentBasic.AppHost/Properties/launchSettings.json Removes pinned dashboard/resource-service endpoint env vars; updates applicationUrl host.
playground/FileBasedApps/apphost.settings.json Adds Dashboard config section (DetailedErrors).
playground/FileBasedApps/apphost.run.json.old Removes pinned dashboard/resource-service endpoint env vars.
playground/ExternalServices/ExternalServices.AppHost/Properties/launchSettings.json Removes pinned dashboard/resource-service endpoint env vars; updates applicationUrl host.
playground/DotnetTool/DotnetTool.AppHost/Properties/launchSettings.json Removes pinned dashboard/resource-service endpoint env vars; updates applicationUrl host.
playground/DevTunnels/DevTunnels.AppHost/Properties/launchSettings.json Removes pinned dashboard/resource-service endpoint env vars; updates applicationUrl host.
playground/deployers/Deployers.AppHost/Properties/launchSettings.json Removes pinned dashboard/resource-service endpoint env vars; updates applicationUrl host.
playground/DatabaseMigration/DatabaseMigration.AppHost/Properties/launchSettings.json Removes pinned dashboard/resource-service endpoint env vars; updates applicationUrl host.
playground/CustomResources/CustomResources.AppHost/Properties/launchSettings.json Removes pinned dashboard/resource-service endpoint env vars; updates applicationUrl host.
playground/CosmosEndToEnd/CosmosEndToEnd.AppHost/Properties/launchSettings.json Removes pinned dashboard/resource-service endpoint env vars; updates applicationUrl host.
playground/cdk/CdkSample.AppHost/Properties/launchSettings.json Removes pinned dashboard/resource-service endpoint env vars; updates applicationUrl host.
playground/BrowserTelemetry/BrowserTelemetry.AppHost/Properties/launchSettings.json Removes pinned OTLP/resource-service endpoint env vars; updates applicationUrl host.
playground/bicep/BicepSample.AppHost/Properties/launchSettings.json Removes pinned dashboard/resource-service endpoint env vars; updates applicationUrl host.
playground/AzureVirtualNetworkEndToEnd/AzureVirtualNetworkEndToEnd.AppHost/Properties/launchSettings.json Removes pinned dashboard/resource-service endpoint env vars; updates applicationUrl host.
playground/AzureStorageEndToEnd/AzureStorageEndToEnd.AppHost/Properties/launchSettings.json Removes pinned dashboard/resource-service endpoint env vars; updates applicationUrl host.
playground/AzureServiceBus/ServiceBus.AppHost/Properties/launchSettings.json Removes pinned dashboard/resource-service endpoint env vars; updates applicationUrl host.
playground/AzureSearchEndToEnd/AzureSearch.AppHost/Properties/launchSettings.json Removes pinned dashboard/resource-service endpoint env vars; updates applicationUrl host.
playground/AzureOpenAIEndToEnd/AzureOpenAIEndToEnd.WebStory/Properties/launchSettings.json JSON formatting fix (closing brace).
playground/AzureOpenAIEndToEnd/AzureOpenAIEndToEnd.AppHost/Properties/launchSettings.json Removes pinned dashboard/resource-service endpoint env vars; updates applicationUrl host.
playground/AzureKusto/AzureKusto.AppHost/Properties/launchSettings.json Removes pinned dashboard/resource-service endpoint env vars; updates applicationUrl host.
playground/AzureFunctionsWithDts/AzureFunctionsWithDts.AppHost/Properties/launchSettings.json Removes pinned dashboard/resource-service endpoint env vars; updates applicationUrl host.
playground/AzureFunctionsEndToEnd/AzureFunctionsEndToEnd.AppHost/Properties/launchSettings.json Removes pinned dashboard/resource-service endpoint env vars; updates applicationUrl host.
playground/AzureDataLakeEndToEnd/AzureDataLakeEndToEnd.AppHost/Properties/launchSettings.json Removes pinned dashboard/resource-service endpoint env vars; updates applicationUrl host.
playground/AzureContainerApps/AzureContainerApps.AppHost/Properties/launchSettings.json Removes pinned dashboard/resource-service endpoint env vars; updates applicationUrl host.
playground/AzureAppService/AzureAppService.AppHost/Properties/launchSettings.json Removes pinned dashboard/resource-service endpoint env vars; updates applicationUrl host.
playground/AzureAppConfiguration/AzureAppConfiguration.AppHost/Properties/launchSettings.json Removes pinned dashboard/resource-service endpoint env vars; updates applicationUrl host.
playground/AspireWithNode/AspireWithNode.AppHost/Properties/launchSettings.json Removes pinned dashboard/resource-service endpoint env vars; updates applicationUrl host.
playground/AspireWithMaui/AspireWithMaui.AppHost/Properties/launchSettings.json Removes pinned dashboard/resource-service endpoint env vars; updates applicationUrl host.
playground/AspireWithJavaScript/AspireJavaScript.AppHost/Properties/launchSettings.json Removes pinned dashboard/resource-service endpoint env vars; updates applicationUrl host.
playground/AspireEventHub/EventHubs.AppHost/Properties/launchSettings.json Removes pinned dashboard/resource-service endpoint env vars; updates applicationUrl host.

Comment on lines 410 to 425
var uriScheme = allowUnsecureTransport ? "http" : "https";
var endpointName = allowUnsecureTransport ? "http" : "https";
dashboardResource.Annotations.Add(new EndpointAnnotation(ProtocolType.Tcp, name: endpointName, uriScheme: uriScheme, isProxied: true));
}
Copy link

Copilot AI Apr 10, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dashboardUrls is parsed in the foreach loop before the new string.IsNullOrWhiteSpace(dashboardUrls) check. If ASPNETCORE_URLS is set to whitespace (or contains whitespace-only entries), Split(..., RemoveEmptyEntries) will still yield whitespace strings and BindingAddress.Parse(d) will throw at runtime before the dynamic endpoint fallback runs. Consider guarding the loop with if (!string.IsNullOrWhiteSpace(dashboardUrls)) (and trimming entries) and using the else branch for the dynamic endpoint case.

Copilot uses AI. Check for mistakes.
Comment on lines +638 to +643
private static EndpointAnnotation CreateDashboardOtlpEndpointAnnotation(string? endpointUrl, string endpointName, string? transport = null)
{
if (string.IsNullOrWhiteSpace(endpointUrl))
{
return new EndpointAnnotation(ProtocolType.Tcp, name: endpointName, uriScheme: "https", isProxied: true, transport: transport);
}
Copy link

Copilot AI Apr 10, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When endpointUrl is missing/blank, CreateDashboardOtlpEndpointAnnotation hard-codes uriScheme: "https". This ignores ASPIRE_ALLOW_UNSECURED_TRANSPORT and can unintentionally create HTTPS endpoints (triggering HTTPS certificate configuration) even when the dashboard is otherwise configured for HTTP-only, which may break unsecured scenarios. Consider selecting the default scheme based on AllowUnsecuredTransport (or on the frontend scheme) when auto-configuring dynamic OTLP endpoints.

Copilot uses AI. Check for mistakes.
Comment on lines 50 to 56
internal class ValidateDashboardOptions : IValidateOptions<DashboardOptions>
{
public ValidateOptionsResult Validate(string? name, DashboardOptions options)
{
var builder = new ValidateOptionsResultBuilder();

if (string.IsNullOrEmpty(options.DashboardUrl))
{
builder.AddError($"Failed to configure dashboard resource because {KnownConfigNames.AspNetCoreUrls} environment variable was not set.");
}

if (string.IsNullOrEmpty(options.OtlpGrpcEndpointUrl) && string.IsNullOrEmpty(options.OtlpHttpEndpointUrl))
{
builder.AddError($"Failed to configure dashboard resource because {KnownConfigNames.DashboardOtlpGrpcEndpointUrl} and {KnownConfigNames.DashboardOtlpHttpEndpointUrl} environment variables are not set. At least one OTLP endpoint must be provided.");
}

return builder.Build();
return ValidateOptionsResult.Success;
}
}
Copy link

Copilot AI Apr 10, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ValidateDashboardOptions.Validate now always returns Success, so registering this validator no longer provides any validation and can be misleading for maintainers (and makes the comment in ConfigureEnvironmentVariables about validated options inaccurate). Either remove this validator registration or add targeted validation that is still required with the new optional-URL behavior (e.g., validating DashboardPath when present).

Copilot uses AI. Check for mistakes.
Comment on lines 521 to 526
var options = dashboardOptions.Value;

// Options should have been validated these should not be null

Debug.Assert(options.DashboardUrl is not null, "DashboardUrl should not be null");
Debug.Assert(options.OtlpGrpcEndpointUrl is not null || options.OtlpHttpEndpointUrl is not null, "OtlpGrpcEndpointUrl and OtlpHttpEndpointUrl should not both be null");

var environment = options.AspNetCoreEnvironment;
var browserToken = options.DashboardToken;
Copy link

Copilot AI Apr 10, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comment "Options should have been validated these should not be null" is now outdated because ValidateDashboardOptions no longer performs any validation and the Debug.Assert checks were removed. Consider removing/updating the comment (and ensuring downstream code paths tolerate nulls where appropriate).

Copilot uses AI. Check for mistakes.
@github-actions
Copy link
Copy Markdown
Contributor

Re-running the failed jobs in the CI workflow for this pull request because 1 job was identified as retry-safe transient failures in the CI run attempt.
GitHub was asked to rerun all failed jobs for that attempt, and the rerun is being tracked in the rerun attempt.
The job links below point to the failed attempt jobs that matched the retry-safe transient failure rules.

@@ -8,9 +8,7 @@
"applicationUrl": "https://filebasedapps.dev.localhost:17123;http://filebasedapps.dev.localhost:15234",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why keep this?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oops, didn't mean to commit - Can't fully remove this file yey as the dashboard fails to load if ASPNETCORE_ENVIRONMENT is not set

"Microsoft.AspNetCore": "Warning"
}
},
"Dashboard" : {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

??

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My bad, again didn't mean to commit. This was to try and see if I could work out why the dashboard wasn't loading. Got as far as working out it was caued by the missing ASPNETCORE_ENVIRONMENT env var

Copy link
Copy Markdown
Contributor

@davidfowl davidfowl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When OTLP endpoint URLs are not specified (null/blank), CreateDashboardOtlpEndpointAnnotation always creates endpoints with "https" scheme, even when ASPIRE_ALLOW_UNSECURED_TRANSPORT=true.

The frontend dashboard endpoint correctly respects allowUnsecureTransport to choose http vs https (line ~422-424), but the OTLP endpoints dont — CreateDashboardOtlpEndpointAnnotation hardcodes "https" when endpointUrl is null (line ~642).

This means when users set ASPIRE_ALLOW_UNSECURED_TRANSPORT=true and dont specify OTLP URLs, the dashboard will try to bind OTLP endpoints using HTTPS, which will fail without dev certificates — defeating the purpose of the flag.

Suggested fix: Pass allowUnsecuredTransport to CreateDashboardOtlpEndpointAnnotation and use it for the default scheme:

uriScheme: allowUnsecuredTransport ? "http" : "https"

Also missing a test case combining allowUnsecuredTransport=true with blank OTLP URLs to verify they use HTTP.

@github-actions
Copy link
Copy Markdown
Contributor

Re-running the failed jobs in the CI workflow for this pull request because 1 job was identified as retry-safe transient failures in the CI run attempt.
GitHub was asked to rerun all failed jobs for that attempt, and the rerun is being tracked in the rerun attempt.
The job links below point to the failed attempt jobs that matched the retry-safe transient failure rules.

@microsoft-github-policy-service
Copy link
Copy Markdown

@afscrome please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information.

@microsoft-github-policy-service agree [company="{your company}"]

Options:

  • (default - no company specified) I have sole ownership of intellectual property rights to my Submissions and I am not making Submissions in the course of work for my employer.
@microsoft-github-policy-service agree
  • (when company given) I am making Submissions in the course of work for my employer (or my employer has intellectual property rights in my Submissions by contract or applicable law). I have permission from my employer to make Submissions and enter into this Agreement on behalf of my employer. By signing below, the defined term “You” includes me and my employer.
@microsoft-github-policy-service agree company="Microsoft"
Contributor License Agreement

Contribution License Agreement

This Contribution License Agreement (“Agreement”) is agreed to by the party signing below (“You”),
and conveys certain license rights to Microsoft Corporation and its affiliates (“Microsoft”) for Your
contributions to Microsoft open source projects. This Agreement is effective as of the latest signature
date below.

  1. Definitions.
    “Code” means the computer software code, whether in human-readable or machine-executable form,
    that is delivered by You to Microsoft under this Agreement.
    “Project” means any of the projects owned or managed by Microsoft and offered under a license
    approved by the Open Source Initiative (www.opensource.org).
    “Submit” is the act of uploading, submitting, transmitting, or distributing code or other content to any
    Project, including but not limited to communication on electronic mailing lists, source code control
    systems, and issue tracking systems that are managed by, or on behalf of, the Project for the purpose of
    discussing and improving that Project, but excluding communication that is conspicuously marked or
    otherwise designated in writing by You as “Not a Submission.”
    “Submission” means the Code and any other copyrightable material Submitted by You, including any
    associated comments and documentation.
  2. Your Submission. You must agree to the terms of this Agreement before making a Submission to any
    Project. This Agreement covers any and all Submissions that You, now or in the future (except as
    described in Section 4 below), Submit to any Project.
  3. Originality of Work. You represent that each of Your Submissions is entirely Your original work.
    Should You wish to Submit materials that are not Your original work, You may Submit them separately
    to the Project if You (a) retain all copyright and license information that was in the materials as You
    received them, (b) in the description accompanying Your Submission, include the phrase “Submission
    containing materials of a third party:” followed by the names of the third party and any licenses or other
    restrictions of which You are aware, and (c) follow any other instructions in the Project’s written
    guidelines concerning Submissions.
  4. Your Employer. References to “employer” in this Agreement include Your employer or anyone else
    for whom You are acting in making Your Submission, e.g. as a contractor, vendor, or agent. If Your
    Submission is made in the course of Your work for an employer or Your employer has intellectual
    property rights in Your Submission by contract or applicable law, You must secure permission from Your
    employer to make the Submission before signing this Agreement. In that case, the term “You” in this
    Agreement will refer to You and the employer collectively. If You change employers in the future and
    desire to Submit additional Submissions for the new employer, then You agree to sign a new Agreement
    and secure permission from the new employer before Submitting those Submissions.
  5. Licenses.
  • Copyright License. You grant Microsoft, and those who receive the Submission directly or
    indirectly from Microsoft, a perpetual, worldwide, non-exclusive, royalty-free, irrevocable license in the
    Submission to reproduce, prepare derivative works of, publicly display, publicly perform, and distribute
    the Submission and such derivative works, and to sublicense any or all of the foregoing rights to third
    parties.
  • Patent License. You grant Microsoft, and those who receive the Submission directly or
    indirectly from Microsoft, a perpetual, worldwide, non-exclusive, royalty-free, irrevocable license under
    Your patent claims that are necessarily infringed by the Submission or the combination of the
    Submission with the Project to which it was Submitted to make, have made, use, offer to sell, sell and
    import or otherwise dispose of the Submission alone or with the Project.
  • Other Rights Reserved. Each party reserves all rights not expressly granted in this Agreement.
    No additional licenses or rights whatsoever (including, without limitation, any implied licenses) are
    granted by implication, exhaustion, estoppel or otherwise.
  1. Representations and Warranties. You represent that You are legally entitled to grant the above
    licenses. You represent that each of Your Submissions is entirely Your original work (except as You may
    have disclosed under Section 3). You represent that You have secured permission from Your employer to
    make the Submission in cases where Your Submission is made in the course of Your work for Your
    employer or Your employer has intellectual property rights in Your Submission by contract or applicable
    law. If You are signing this Agreement on behalf of Your employer, You represent and warrant that You
    have the necessary authority to bind the listed employer to the obligations contained in this Agreement.
    You are not expected to provide support for Your Submission, unless You choose to do so. UNLESS
    REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING, AND EXCEPT FOR THE WARRANTIES
    EXPRESSLY STATED IN SECTIONS 3, 4, AND 6, THE SUBMISSION PROVIDED UNDER THIS AGREEMENT IS
    PROVIDED WITHOUT WARRANTY OF ANY KIND, INCLUDING, BUT NOT LIMITED TO, ANY WARRANTY OF
    NONINFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE.
  2. Notice to Microsoft. You agree to notify Microsoft in writing of any facts or circumstances of which
    You later become aware that would make Your representations in this Agreement inaccurate in any
    respect.
  3. Information about Submissions. You agree that contributions to Projects and information about
    contributions may be maintained indefinitely and disclosed publicly, including Your name and other
    information that You submit with Your Submission.
  4. Governing Law/Jurisdiction. This Agreement is governed by the laws of the State of Washington, and
    the parties consent to exclusive jurisdiction and venue in the federal courts sitting in King County,
    Washington, unless no federal subject matter jurisdiction exists, in which case the parties consent to
    exclusive jurisdiction and venue in the Superior Court of King County, Washington. The parties waive all
    defenses of lack of personal jurisdiction and forum non-conveniens.
  5. Entire Agreement/Assignment. This Agreement is the entire agreement between the parties, and
    supersedes any and all prior agreements, understandings or communications, written or oral, between
    the parties relating to the subject matter hereof. This Agreement may be assigned by Microsoft.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants