aspnet/AspNetCore -> dotnet/aspnet
Except aspnet/AspNetCore-Internal.
This commit is contained in:
parent
06b32685ec
commit
0517745c08
|
|
@ -121,7 +121,7 @@ stages:
|
||||||
|
|
||||||
# Build the x86 shared framework
|
# Build the x86 shared framework
|
||||||
# TODO: make it possible to build for one Windows architecture at a time
|
# TODO: make it possible to build for one Windows architecture at a time
|
||||||
# This is going to actually build x86 native assets. See https://github.com/aspnet/AspNetCore/issues/7196
|
# This is going to actually build x86 native assets. See https://github.com/dotnet/aspnetcore/issues/7196
|
||||||
- script: ./build.cmd
|
- script: ./build.cmd
|
||||||
-ci
|
-ci
|
||||||
-arch x86
|
-arch x86
|
||||||
|
|
|
||||||
|
|
@ -81,7 +81,7 @@ jobs:
|
||||||
enablePublishUsingPipelines: ${{ variables._PublishUsingPipelines }}
|
enablePublishUsingPipelines: ${{ variables._PublishUsingPipelines }}
|
||||||
enablePublishTestResults: true # publish test results to AzDO (populates AzDO Tests tab)
|
enablePublishTestResults: true # publish test results to AzDO (populates AzDO Tests tab)
|
||||||
enableTelemetry: true
|
enableTelemetry: true
|
||||||
helixRepo: aspnet/AspNetCore
|
helixRepo: dotnet/aspnetcore
|
||||||
helixType: build.product/
|
helixType: build.product/
|
||||||
workspace:
|
workspace:
|
||||||
clean: all
|
clean: all
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,6 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/labeler@v2
|
- uses: actions/labeler@v2
|
||||||
if: github.repository == 'aspnet/AspNetCore'
|
if: github.repository == 'dotnet/aspnetcore'
|
||||||
with:
|
with:
|
||||||
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
|
|
|
||||||
|
|
@ -3,13 +3,13 @@
|
||||||
One of the easiest ways to contribute is to participate in discussions on GitHub issues. You can also contribute by submitting pull requests with code changes.
|
One of the easiest ways to contribute is to participate in discussions on GitHub issues. You can also contribute by submitting pull requests with code changes.
|
||||||
|
|
||||||
## General feedback and discussions?
|
## General feedback and discussions?
|
||||||
Start a discussion on the [repository issue tracker](https://github.com/aspnet/AspNetCore/issues).
|
Start a discussion on the [repository issue tracker](https://github.com/dotnet/aspnetcore/issues).
|
||||||
|
|
||||||
## Bugs and feature requests?
|
## Bugs and feature requests?
|
||||||
For non-security related bugs, log a new issue in the appropriate GitHub repository. Here are some of the most common repositories:
|
For non-security related bugs, log a new issue in the appropriate GitHub repository. Here are some of the most common repositories:
|
||||||
|
|
||||||
* [Docs](https://github.com/aspnet/Docs)
|
* [Docs](https://github.com/aspnet/Docs)
|
||||||
* [AspNetCore](https://github.com/aspnet/AspNetCore)
|
* [AspNetCore](https://github.com/dotnet/aspnetcore)
|
||||||
* [Entity Framework Core](https://github.com/dotnet/efcore)
|
* [Entity Framework Core](https://github.com/dotnet/efcore)
|
||||||
* [Tooling](https://github.com/aspnet/Tooling)
|
* [Tooling](https://github.com/aspnet/Tooling)
|
||||||
* [Extensions](https://github.com/dotnet/extensions)
|
* [Extensions](https://github.com/dotnet/extensions)
|
||||||
|
|
@ -31,8 +31,8 @@ Our team members also monitor several other discussion forums:
|
||||||
We accept fixes and features! Here are some resources to help you get started on how to contribute code or new content.
|
We accept fixes and features! Here are some resources to help you get started on how to contribute code or new content.
|
||||||
|
|
||||||
* Look at the [Contributor documentation](/docs/) to get started on building the source code on your own.
|
* Look at the [Contributor documentation](/docs/) to get started on building the source code on your own.
|
||||||
* ["Help wanted" issues](https://github.com/aspnet/AspNetCore/labels/help%20wanted) - these issues are up for grabs. Comment on an issue if you want to create a fix.
|
* ["Help wanted" issues](https://github.com/dotnet/aspnetcore/labels/help%20wanted) - these issues are up for grabs. Comment on an issue if you want to create a fix.
|
||||||
* ["Good first issue" issues](https://github.com/aspnet/AspNetCore/labels/good%20first%20issue) - we think these are a good for newcomers.
|
* ["Good first issue" issues](https://github.com/dotnet/aspnetcore/labels/good%20first%20issue) - we think these are a good for newcomers.
|
||||||
|
|
||||||
### Identifying the scale
|
### Identifying the scale
|
||||||
|
|
||||||
|
|
@ -42,7 +42,7 @@ If you would like to contribute to one of our repositories, first identify the s
|
||||||
|
|
||||||
You will need to sign a [Contributor License Agreement](https://cla.dotnetfoundation.org/) when submitting your pull request. To complete the Contributor License Agreement (CLA), you will need to follow the instructions provided by the CLA bot when you send the pull request. This needs to only be done once for any .NET Foundation OSS project.
|
You will need to sign a [Contributor License Agreement](https://cla.dotnetfoundation.org/) when submitting your pull request. To complete the Contributor License Agreement (CLA), you will need to follow the instructions provided by the CLA bot when you send the pull request. This needs to only be done once for any .NET Foundation OSS project.
|
||||||
|
|
||||||
If you don't know what a pull request is read this article: https://help.github.com/articles/using-pull-requests. Make sure the repository can build and all tests pass. Familiarize yourself with the project workflow and our coding conventions. The coding, style, and general engineering guidelines are published on the [Engineering guidelines](https://github.com/aspnet/AspNetCore/wiki/Engineering-guidelines) page.
|
If you don't know what a pull request is read this article: https://help.github.com/articles/using-pull-requests. Make sure the repository can build and all tests pass. Familiarize yourself with the project workflow and our coding conventions. The coding, style, and general engineering guidelines are published on the [Engineering guidelines](https://github.com/dotnet/aspnetcore/wiki/Engineering-guidelines) page.
|
||||||
|
|
||||||
### Tests
|
### Tests
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<Project>
|
<Project>
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<RepoRoot>$(MSBuildThisFileDirectory)</RepoRoot>
|
<RepoRoot>$(MSBuildThisFileDirectory)</RepoRoot>
|
||||||
<RepositoryUrl>https://github.com/aspnet/AspNetCore</RepositoryUrl>
|
<RepositoryUrl>https://github.com/dotnet/aspnetcore</RepositoryUrl>
|
||||||
<RepositoryType>git</RepositoryType>
|
<RepositoryType>git</RepositoryType>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ Follow the [Getting Started](https://docs.microsoft.com/aspnet/core/getting-star
|
||||||
|
|
||||||
Also check out the [.NET Homepage](https://www.microsoft.com/net) for released versions of .NET, getting started guides, and learning resources.
|
Also check out the [.NET Homepage](https://www.microsoft.com/net) for released versions of .NET, getting started guides, and learning resources.
|
||||||
|
|
||||||
See the [Issue Management Policies](https://github.com/aspnet/AspNetCore/blob/anurse/issue-policies/docs/IssueManagementPolicies.md) document for more information on how we handle incoming issues.
|
See the [Issue Management Policies](https://github.com/dotnet/aspnetcore/blob/anurse/issue-policies/docs/IssueManagementPolicies.md) document for more information on how we handle incoming issues.
|
||||||
|
|
||||||
## How to Engage, Contribute, and Give Feedback
|
## How to Engage, Contribute, and Give Feedback
|
||||||
|
|
||||||
|
|
@ -19,7 +19,7 @@ and make pull-requests.
|
||||||
* [Download our latest daily builds](./docs/DailyBuilds.md)
|
* [Download our latest daily builds](./docs/DailyBuilds.md)
|
||||||
* Follow along with the development of ASP.NET Core:
|
* Follow along with the development of ASP.NET Core:
|
||||||
* [Community Standup](https://live.asp.net): The community standup is held every week and streamed live to YouTube. You can view past standups in the linked playlist.
|
* [Community Standup](https://live.asp.net): The community standup is held every week and streamed live to YouTube. You can view past standups in the linked playlist.
|
||||||
* [Roadmap](https://github.com/aspnet/AspNetCore/wiki/Roadmap): The schedule and milestone themes for ASP.NET Core.
|
* [Roadmap](https://github.com/dotnet/aspnetcore/wiki/Roadmap): The schedule and milestone themes for ASP.NET Core.
|
||||||
* [Build ASP.NET Core source code](./docs/BuildFromSource.md)
|
* [Build ASP.NET Core source code](./docs/BuildFromSource.md)
|
||||||
* Check out the [contributing](CONTRIBUTING.md) page to see the best places to log issues and start discussions.
|
* Check out the [contributing](CONTRIBUTING.md) page to see the best places to log issues and start discussions.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -93,7 +93,7 @@ Running tests.
|
||||||
build.ps1 -test
|
build.ps1 -test
|
||||||
|
|
||||||
.LINK
|
.LINK
|
||||||
Online version: https://github.com/aspnet/AspNetCore/blob/master/docs/BuildFromSource.md
|
Online version: https://github.com/dotnet/aspnetcore/blob/master/docs/BuildFromSource.md
|
||||||
#>
|
#>
|
||||||
[CmdletBinding(PositionalBinding = $false, DefaultParameterSetName='Groups')]
|
[CmdletBinding(PositionalBinding = $false, DefaultParameterSetName='Groups')]
|
||||||
param(
|
param(
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ Build ASP.NET Core from Source
|
||||||
|
|
||||||
Building ASP.NET Core from source allows you to tweak and customize ASP.NET Core, and to contribute your improvements back to the project.
|
Building ASP.NET Core from source allows you to tweak and customize ASP.NET Core, and to contribute your improvements back to the project.
|
||||||
|
|
||||||
See https://github.com/aspnet/AspNetCore/labels/area-infrastructure for known issues and to track ongoing work.
|
See https://github.com/dotnet/aspnetcore/labels/area-infrastructure for known issues and to track ongoing work.
|
||||||
|
|
||||||
## Install pre-requisites
|
## Install pre-requisites
|
||||||
|
|
||||||
|
|
@ -48,7 +48,7 @@ ASP.NET Core uses git submodules to include the source from a few other projects
|
||||||
|
|
||||||
For a new copy of the project, run:
|
For a new copy of the project, run:
|
||||||
```
|
```
|
||||||
git clone --recursive https://github.com/aspnet/AspNetCore
|
git clone --recursive https://github.com/dotnet/aspnetcore
|
||||||
```
|
```
|
||||||
|
|
||||||
To update an existing copy, run:
|
To update an existing copy, run:
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ For full information, see the [official docs for git submodules](https://git-scm
|
||||||
|
|
||||||
## Fundamental concept
|
## Fundamental concept
|
||||||
|
|
||||||
The parent repo (aspnet/AspNetCore) stores two pieces of info about each submodule.
|
The parent repo (dotnet/aspnetcore) stores two pieces of info about each submodule.
|
||||||
|
|
||||||
1. Where to clone the submodule from. This is stored in the .gitmodules file
|
1. Where to clone the submodule from. This is stored in the .gitmodules file
|
||||||
2. The commit hash of the submodule to use.
|
2. The commit hash of the submodule to use.
|
||||||
|
|
@ -22,7 +22,7 @@ Other info may appear in the .gitmodules file, but it is only used when attempti
|
||||||
|
|
||||||
By default, submodules will not be present. Use `--recursive` to clone all submodules.
|
By default, submodules will not be present. Use `--recursive` to clone all submodules.
|
||||||
|
|
||||||
git clone https://github.com/aspnet/AspNetCore.git --recursive
|
git clone https://github.com/dotnet/aspnetcore.git --recursive
|
||||||
|
|
||||||
If you have already cloned, run this to initialize all submodules.
|
If you have already cloned, run this to initialize all submodules.
|
||||||
|
|
||||||
|
|
@ -72,7 +72,7 @@ that contains the new commit.
|
||||||
git add modules/KestrelhttpServer/
|
git add modules/KestrelhttpServer/
|
||||||
git commit -m "Update Kestrel to latest version"
|
git commit -m "Update Kestrel to latest version"
|
||||||
|
|
||||||
## PowerShell is slow in aspnet/AspNetCore
|
## PowerShell is slow in dotnet/aspnetcore
|
||||||
|
|
||||||
Many users have post-git, and extension that shows git status on the prompt line. Because `git status` with submodules
|
Many users have post-git, and extension that shows git status on the prompt line. Because `git status` with submodules
|
||||||
on Windows is very slow, it can make PowerShell unbearable to use.
|
on Windows is very slow, it can make PowerShell unbearable to use.
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@
|
||||||
<!-- Additional assembly attributes are already configured to include the source revision ID. -->
|
<!-- Additional assembly attributes are already configured to include the source revision ID. -->
|
||||||
<IncludeSourceRevisionInInformationalVersion>false</IncludeSourceRevisionInInformationalVersion>
|
<IncludeSourceRevisionInInformationalVersion>false</IncludeSourceRevisionInInformationalVersion>
|
||||||
<!--
|
<!--
|
||||||
Until package baselines are updated (see aspnet/AspNetCore#12702), ignore them and PatchConfig.props. This also
|
Until package baselines are updated (see dotnet/aspnetcore#12702), ignore them and PatchConfig.props. This also
|
||||||
gives us time to build the entire repo and settle the infrastructure. Do _not_ do this when stabilizing versions.
|
gives us time to build the entire repo and settle the infrastructure. Do _not_ do this when stabilizing versions.
|
||||||
-->
|
-->
|
||||||
<DisableServicingFeatures Condition=" '$(DisableServicingFeatures)' == '' AND '$(StabilizePackageVersion)' != 'true' ">true</DisableServicingFeatures>
|
<DisableServicingFeatures Condition=" '$(DisableServicingFeatures)' == '' AND '$(StabilizePackageVersion)' != 'true' ">true</DisableServicingFeatures>
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
Workaround https://github.com/aspnet/AspNetCore/issues/4257.
|
Workaround https://github.com/dotnet/aspnetcore/issues/4257.
|
||||||
The web sdk adds an implicit framework reference. This removes it until we can update our build to use framework references.
|
The web sdk adds an implicit framework reference. This removes it until we can update our build to use framework references.
|
||||||
-->
|
-->
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|
@ -25,7 +25,7 @@
|
||||||
<Reference Include="Microsoft.AspNetCore.Mvc" Condition="'$(UsingMicrosoftNETSdkWeb)' == 'true' AND '$(TargetFrameworkIdentifier)' == '.NETCoreApp' AND '$(GenerateRazorAssemblyInfo)' == 'true'" />
|
<Reference Include="Microsoft.AspNetCore.Mvc" Condition="'$(UsingMicrosoftNETSdkWeb)' == 'true' AND '$(TargetFrameworkIdentifier)' == '.NETCoreApp' AND '$(GenerateRazorAssemblyInfo)' == 'true'" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<!-- Workaround https://github.com/aspnet/AspNetCore/issues/7503. This chains GenerateSourceLinkFile before razor component targets run. -->
|
<!-- Workaround https://github.com/dotnet/aspnetcore/issues/7503. This chains GenerateSourceLinkFile before razor component targets run. -->
|
||||||
<!-- Workaround https://github.com/dotnet/source-build/issues/1112. Source link is currently disabled in source build so do not apply this worksaround. -->
|
<!-- Workaround https://github.com/dotnet/source-build/issues/1112. Source link is currently disabled in source build so do not apply this worksaround. -->
|
||||||
<Target Condition="'$(DotNetBuildFromSource)' != 'true'"
|
<Target Condition="'$(DotNetBuildFromSource)' != 'true'"
|
||||||
Name="_EnsureSourceLinkHappensBeforeRazorComponentGeneration"
|
Name="_EnsureSourceLinkHappensBeforeRazorComponentGeneration"
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<HelixSource>pr/aspnet/aspnetcore</HelixSource>
|
<HelixSource>pr/dotnet/aspnetcore</HelixSource>
|
||||||
<HelixBuild>private-$(USERNAME)</HelixBuild>
|
<HelixBuild>private-$(USERNAME)</HelixBuild>
|
||||||
<HelixBuild Condition=" '$(USERNAME)' == '' ">private-$(USER)</HelixBuild>
|
<HelixBuild Condition=" '$(USERNAME)' == '' ">private-$(USER)</HelixBuild>
|
||||||
<IsExternal>true</IsExternal>
|
<IsExternal>true</IsExternal>
|
||||||
|
|
|
||||||
|
|
@ -120,7 +120,7 @@ try {
|
||||||
|
|
||||||
foreach ($unexpectedVar in $versionVars) {
|
foreach ($unexpectedVar in $versionVars) {
|
||||||
LogError `
|
LogError `
|
||||||
"Version variable '$unexpectedVar' does not have a matching entry in Version.Details.xml. See https://github.com/aspnet/AspNetCore/blob/master/docs/ReferenceResolution.md for instructions on how to add a new dependency." `
|
"Version variable '$unexpectedVar' does not have a matching entry in Version.Details.xml. See https://github.com/dotnet/aspnetcore/blob/master/docs/ReferenceResolution.md for instructions on how to add a new dependency." `
|
||||||
-filepath "$repoRoot\eng\Versions.props"
|
-filepath "$repoRoot\eng\Versions.props"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@
|
||||||
Run the installer without UI and wait for installation to complete.
|
Run the installer without UI and wait for installation to complete.
|
||||||
.LINK
|
.LINK
|
||||||
https://visualstudio.com
|
https://visualstudio.com
|
||||||
https://github.com/aspnet/AspNetCore/blob/master/docs/BuildFromSource.md
|
https://github.com/dotnet/aspnetcore/blob/master/docs/BuildFromSource.md
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
To install VS 2019 Enterprise, run this command in PowerShell:
|
To install VS 2019 Enterprise, run this command in PowerShell:
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -86,7 +86,7 @@ namespace Microsoft.AspNetCore.Analyzers
|
||||||
// This analyzer expects MiddlewareItem instances to appear in the order in which they appear in source
|
// This analyzer expects MiddlewareItem instances to appear in the order in which they appear in source
|
||||||
// which unfortunately isn't true for chained calls (the operations appear in reverse order).
|
// which unfortunately isn't true for chained calls (the operations appear in reverse order).
|
||||||
// We'll avoid doing any analysis in this event and rely on the runtime guardrails.
|
// We'll avoid doing any analysis in this event and rely on the runtime guardrails.
|
||||||
// We'll use https://github.com/aspnet/AspNetCore/issues/16648 to track addressing this in a future milestone
|
// We'll use https://github.com/dotnet/aspnetcore/issues/16648 to track addressing this in a future milestone
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -56,7 +56,7 @@ namespace Microsoft.AspNetCore.Analyzers
|
||||||
}
|
}
|
||||||
|
|
||||||
// This test code needs to be updated to support distributed testing.
|
// This test code needs to be updated to support distributed testing.
|
||||||
// See https://github.com/aspnet/AspNetCore/issues/10422
|
// See https://github.com/dotnet/aspnetcore/issues/10422
|
||||||
#pragma warning disable 0618
|
#pragma warning disable 0618
|
||||||
var solutionDirectory = TestPathUtilities.GetSolutionRootDirectory("Analyzers");
|
var solutionDirectory = TestPathUtilities.GetSolutionRootDirectory("Analyzers");
|
||||||
#pragma warning restore 0618
|
#pragma warning restore 0618
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
<RootNamespace>Microsoft.AspNetCore.Analyzers</RootNamespace>
|
<RootNamespace>Microsoft.AspNetCore.Analyzers</RootNamespace>
|
||||||
|
|
||||||
<!-- Tests do not work on Helix or when bin/ directory is not in project directory due to undeclared dependency on test content. -->
|
<!-- Tests do not work on Helix or when bin/ directory is not in project directory due to undeclared dependency on test content. -->
|
||||||
<!-- https://github.com/aspnet/AspNetCore/issues/10422 -->
|
<!-- https://github.com/dotnet/aspnetcore/issues/10422 -->
|
||||||
<BuildHelixPayload>false</BuildHelixPayload>
|
<BuildHelixPayload>false</BuildHelixPayload>
|
||||||
<BaseOutputPath />
|
<BaseOutputPath />
|
||||||
<OutputPath />
|
<OutputPath />
|
||||||
|
|
|
||||||
|
|
@ -247,7 +247,7 @@ namespace Microsoft.AspNetCore.Analyzers
|
||||||
[Fact]
|
[Fact]
|
||||||
public async Task StartupAnalyzer_UseAuthorizationConfiguredAsAChain_ReportsNoDiagnostics()
|
public async Task StartupAnalyzer_UseAuthorizationConfiguredAsAChain_ReportsNoDiagnostics()
|
||||||
{
|
{
|
||||||
// Regression test for https://github.com/aspnet/AspNetCore/issues/15203
|
// Regression test for https://github.com/dotnet/aspnetcore/issues/15203
|
||||||
// Arrange
|
// Arrange
|
||||||
var source = Read(nameof(TestFiles.StartupAnalyzerTest.UseAuthConfiguredCorrectlyChained));
|
var source = Read(nameof(TestFiles.StartupAnalyzerTest.UseAuthConfiguredCorrectlyChained));
|
||||||
|
|
||||||
|
|
@ -298,7 +298,7 @@ namespace Microsoft.AspNetCore.Analyzers
|
||||||
[Fact]
|
[Fact]
|
||||||
public async Task StartupAnalyzer_UseAuthorizationConfiguredBeforeUseRoutingChained_ReportsDiagnostics()
|
public async Task StartupAnalyzer_UseAuthorizationConfiguredBeforeUseRoutingChained_ReportsDiagnostics()
|
||||||
{
|
{
|
||||||
// This one asserts a false negative for https://github.com/aspnet/AspNetCore/issues/15203.
|
// This one asserts a false negative for https://github.com/dotnet/aspnetcore/issues/15203.
|
||||||
// We don't correctly identify chained calls, this test verifies the behavior.
|
// We don't correctly identify chained calls, this test verifies the behavior.
|
||||||
// Arrange
|
// Arrange
|
||||||
var source = Read(nameof(TestFiles.StartupAnalyzerTest.UseAuthBeforeUseRoutingChained));
|
var source = Read(nameof(TestFiles.StartupAnalyzerTest.UseAuthBeforeUseRoutingChained));
|
||||||
|
|
|
||||||
|
|
@ -3,4 +3,4 @@ Antiforgery
|
||||||
|
|
||||||
Antiforgery system for generating secure tokens to prevent Cross-Site Request Forgery attacks.
|
Antiforgery system for generating secure tokens to prevent Cross-Site Request Forgery attacks.
|
||||||
|
|
||||||
This project is part of ASP.NET Core. You can find documentation and getting started instructions for ASP.NET Core at the [AspNetCore](https://github.com/aspnet/AspNetCore) repo.
|
This project is part of ASP.NET Core. You can find documentation and getting started instructions for ASP.NET Core at the [AspNetCore](https://github.com/dotnet/aspnetcore) repo.
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>$(DefaultNetCoreTargetFramework)</TargetFramework>
|
<TargetFramework>$(DefaultNetCoreTargetFramework)</TargetFramework>
|
||||||
<!-- Test asset publishing not working on arm64 https://github.com/aspnet/AspNetCore/issues/11205 -->
|
<!-- Test asset publishing not working on arm64 https://github.com/dotnet/aspnetcore/issues/11205 -->
|
||||||
<SkipHelixArm>true</SkipHelixArm>
|
<SkipHelixArm>true</SkipHelixArm>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ namespace Microsoft.AspNetCore.Components.Analyzers
|
||||||
// Note: The Razor Compiler (including Components features) use the RZ prefix for diagnostics, so there's currently
|
// Note: The Razor Compiler (including Components features) use the RZ prefix for diagnostics, so there's currently
|
||||||
// no change of clashing between that and the BL prefix used here.
|
// no change of clashing between that and the BL prefix used here.
|
||||||
//
|
//
|
||||||
// Tracking https://github.com/aspnet/AspNetCore/issues/10382 to rationalize this
|
// Tracking https://github.com/dotnet/aspnetcore/issues/10382 to rationalize this
|
||||||
public static readonly DiagnosticDescriptor ComponentParameterSettersShouldBePublic = new DiagnosticDescriptor(
|
public static readonly DiagnosticDescriptor ComponentParameterSettersShouldBePublic = new DiagnosticDescriptor(
|
||||||
"BL0001",
|
"BL0001",
|
||||||
new LocalizableResourceString(nameof(Resources.ComponentParameterSettersShouldBePublic_Title), Resources.ResourceManager, typeof(Resources)),
|
new LocalizableResourceString(nameof(Resources.ComponentParameterSettersShouldBePublic_Title), Resources.ResourceManager, typeof(Resources)),
|
||||||
|
|
|
||||||
|
|
@ -56,7 +56,7 @@ namespace Microsoft.AspNetCore.Components.Analyzers
|
||||||
}
|
}
|
||||||
|
|
||||||
// This test code needs to be updated to support distributed testing.
|
// This test code needs to be updated to support distributed testing.
|
||||||
// See https://github.com/aspnet/AspNetCore/issues/10422
|
// See https://github.com/dotnet/aspnetcore/issues/10422
|
||||||
#pragma warning disable 0618
|
#pragma warning disable 0618
|
||||||
var solutionDirectory = TestPathUtilities.GetSolutionRootDirectory("Components");
|
var solutionDirectory = TestPathUtilities.GetSolutionRootDirectory("Components");
|
||||||
#pragma warning restore 0618
|
#pragma warning restore 0618
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
<TargetFramework>$(DefaultNetCoreTargetFramework)</TargetFramework>
|
<TargetFramework>$(DefaultNetCoreTargetFramework)</TargetFramework>
|
||||||
|
|
||||||
<!-- Tests do not work on Helix or when bin/ directory is not in project directory due to undeclared dependency on test content. -->
|
<!-- Tests do not work on Helix or when bin/ directory is not in project directory due to undeclared dependency on test content. -->
|
||||||
<!-- https://github.com/aspnet/AspNetCore/issues/10422 -->
|
<!-- https://github.com/dotnet/aspnetcore/issues/10422 -->
|
||||||
<BuildHelixPayload>false</BuildHelixPayload>
|
<BuildHelixPayload>false</BuildHelixPayload>
|
||||||
<BaseOutputPath />
|
<BaseOutputPath />
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
|
||||||
|
|
@ -66,7 +66,7 @@ namespace Microsoft.AspNetCore.Blazor.Build
|
||||||
Assert.FileExists(result, blazorPublishDirectory, "dist", "index.html");
|
Assert.FileExists(result, blazorPublishDirectory, "dist", "index.html");
|
||||||
|
|
||||||
// Verify static web assets from referenced projects are copied.
|
// Verify static web assets from referenced projects are copied.
|
||||||
// Uncomment once https://github.com/aspnet/AspNetCore/issues/17426 is resolved.
|
// Uncomment once https://github.com/dotnet/aspnetcore/issues/17426 is resolved.
|
||||||
// Assert.FileExists(result, blazorPublishDirectory, "dist", "_content", "RazorClassLibrary", "wwwroot", "exampleJsInterop.js");
|
// Assert.FileExists(result, blazorPublishDirectory, "dist", "_content", "RazorClassLibrary", "wwwroot", "exampleJsInterop.js");
|
||||||
// Assert.FileExists(result, blazorPublishDirectory, "dist", "_content", "RazorClassLibrary", "styles.css");
|
// Assert.FileExists(result, blazorPublishDirectory, "dist", "_content", "RazorClassLibrary", "styles.css");
|
||||||
|
|
||||||
|
|
@ -181,7 +181,7 @@ namespace Microsoft.AspNetCore.Blazor.Build
|
||||||
Assert.FileExists(result, blazorPublishDirectory, "dist", "index.html");
|
Assert.FileExists(result, blazorPublishDirectory, "dist", "index.html");
|
||||||
|
|
||||||
// Verify static web assets from referenced projects are copied.
|
// Verify static web assets from referenced projects are copied.
|
||||||
// Uncomment once https://github.com/aspnet/AspNetCore/issues/17426 is resolved.
|
// Uncomment once https://github.com/dotnet/aspnetcore/issues/17426 is resolved.
|
||||||
// Assert.FileExists(result, publishDirectory, "wwwroot", "_content", "RazorClassLibrary", "wwwroot", "exampleJsInterop.js");
|
// Assert.FileExists(result, publishDirectory, "wwwroot", "_content", "RazorClassLibrary", "wwwroot", "exampleJsInterop.js");
|
||||||
// Assert.FileExists(result, publishDirectory, "wwwroot", "_content", "RazorClassLibrary", "styles.css");
|
// Assert.FileExists(result, publishDirectory, "wwwroot", "_content", "RazorClassLibrary", "styles.css");
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -470,7 +470,7 @@ namespace Test
|
||||||
frame => AssertFrame.Attribute(frame, "style", "background: #FFFFFF;", 2));
|
frame => AssertFrame.Attribute(frame, "style", "background: #FFFFFF;", 2));
|
||||||
}
|
}
|
||||||
|
|
||||||
[Fact(Skip = "https://github.com/aspnet/AspNetCore/issues/6185")]
|
[Fact(Skip = "https://github.com/dotnet/aspnetcore/issues/6185")]
|
||||||
public void Render_Component_HtmlEncoded()
|
public void Render_Component_HtmlEncoded()
|
||||||
{
|
{
|
||||||
// Arrange
|
// Arrange
|
||||||
|
|
@ -501,7 +501,7 @@ namespace Test
|
||||||
}
|
}
|
||||||
|
|
||||||
// Integration test for HTML block rewriting
|
// Integration test for HTML block rewriting
|
||||||
[Fact(Skip = "https://github.com/aspnet/AspNetCore/issues/6183")]
|
[Fact(Skip = "https://github.com/dotnet/aspnetcore/issues/6183")]
|
||||||
public void Render_HtmlBlock_Integration()
|
public void Render_HtmlBlock_Integration()
|
||||||
{
|
{
|
||||||
// Arrange
|
// Arrange
|
||||||
|
|
|
||||||
|
|
@ -13,8 +13,8 @@ namespace Microsoft.AspNetCore.Blazor.Build
|
||||||
{
|
{
|
||||||
public class RuntimeDependenciesResolverTest
|
public class RuntimeDependenciesResolverTest
|
||||||
{
|
{
|
||||||
[ConditionalFact(Skip = " https://github.com/aspnet/AspNetCore/issues/12059")]
|
[ConditionalFact(Skip = " https://github.com/dotnet/aspnetcore/issues/12059")]
|
||||||
[SkipOnHelix("https://github.com/aspnet/AspNetCore/issues/10426")]
|
[SkipOnHelix("https://github.com/dotnet/aspnetcore/issues/10426")]
|
||||||
public void FindsReferenceAssemblyGraph_ForStandaloneApp()
|
public void FindsReferenceAssemblyGraph_ForStandaloneApp()
|
||||||
{
|
{
|
||||||
// Arrange
|
// Arrange
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
<BlazorBuildRoot>$(ComponentsRoot)Blazor\Build\src\</BlazorBuildRoot>
|
<BlazorBuildRoot>$(ComponentsRoot)Blazor\Build\src\</BlazorBuildRoot>
|
||||||
<ReferenceBlazorBuildFromSourceProps>$(BlazorBuildRoot)ReferenceBlazorBuildFromSource.props</ReferenceBlazorBuildFromSourceProps>
|
<ReferenceBlazorBuildFromSourceProps>$(BlazorBuildRoot)ReferenceBlazorBuildFromSource.props</ReferenceBlazorBuildFromSourceProps>
|
||||||
|
|
||||||
<!-- Workaround for https://github.com/aspnet/AspNetCore/issues/17308 -->
|
<!-- Workaround for https://github.com/dotnet/aspnetcore/issues/17308 -->
|
||||||
<DefaultNetCoreTargetFramework>netcoreapp3.1</DefaultNetCoreTargetFramework>
|
<DefaultNetCoreTargetFramework>netcoreapp3.1</DefaultNetCoreTargetFramework>
|
||||||
|
|
||||||
<EnableSourceLink>false</EnableSourceLink>
|
<EnableSourceLink>false</EnableSourceLink>
|
||||||
|
|
|
||||||
|
|
@ -73,7 +73,7 @@ namespace Microsoft.AspNetCore.Components
|
||||||
[Fact]
|
[Fact]
|
||||||
public void IncomingParameterMatchesOverridenParameter_ThatDoesNotHasAttribute()
|
public void IncomingParameterMatchesOverridenParameter_ThatDoesNotHasAttribute()
|
||||||
{
|
{
|
||||||
// Test for https://github.com/aspnet/AspNetCore/issues/13162
|
// Test for https://github.com/dotnet/aspnetcore/issues/13162
|
||||||
// Arrange
|
// Arrange
|
||||||
var parameters = new ParameterViewBuilder
|
var parameters = new ParameterViewBuilder
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -2811,7 +2811,7 @@ namespace Microsoft.AspNetCore.Components.Test
|
||||||
}
|
}
|
||||||
|
|
||||||
[ConditionalFact]
|
[ConditionalFact]
|
||||||
[SkipOnHelix("https://github.com/aspnet/AspNetCore/issues/7487")]
|
[SkipOnHelix("https://github.com/dotnet/aspnetcore/issues/7487")]
|
||||||
public async Task CanTriggerEventHandlerDisposedInEarlierPendingBatchAsync()
|
public async Task CanTriggerEventHandlerDisposedInEarlierPendingBatchAsync()
|
||||||
{
|
{
|
||||||
// This represents the scenario where the same event handler is being triggered
|
// This represents the scenario where the same event handler is being triggered
|
||||||
|
|
|
||||||
|
|
@ -301,7 +301,7 @@ namespace Microsoft.AspNetCore.Components.Rendering
|
||||||
[Fact]
|
[Fact]
|
||||||
public void CanAddMultipleAttributes_WithChildRegion()
|
public void CanAddMultipleAttributes_WithChildRegion()
|
||||||
{
|
{
|
||||||
// This represents bug https://github.com/aspnet/AspNetCore/issues/16570
|
// This represents bug https://github.com/dotnet/aspnetcore/issues/16570
|
||||||
// If a sequence of attributes is terminated by a call to builder.OpenRegion,
|
// If a sequence of attributes is terminated by a call to builder.OpenRegion,
|
||||||
// then the attribute deduplication logic wasn't working correctly
|
// then the attribute deduplication logic wasn't working correctly
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -369,7 +369,7 @@ namespace Microsoft.AspNetCore.Components.Test.Routing
|
||||||
[Fact]
|
[Fact]
|
||||||
public void DoesNotThrowIfStableSortComparesRouteWithItself()
|
public void DoesNotThrowIfStableSortComparesRouteWithItself()
|
||||||
{
|
{
|
||||||
// Test for https://github.com/aspnet/AspNetCore/issues/13313
|
// Test for https://github.com/dotnet/aspnetcore/issues/13313
|
||||||
// Arrange & Act
|
// Arrange & Act
|
||||||
var builder = new TestRouteTableBuilder();
|
var builder = new TestRouteTableBuilder();
|
||||||
builder.AddRoute("r16");
|
builder.AddRoute("r16");
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory)..\, Directory.Build.props))\Directory.Build.props" />
|
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory)..\, Directory.Build.props))\Directory.Build.props" />
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<!-- Workaround for https://github.com/aspnet/AspNetCore/issues/5486 which requires the bin and obj directory be in the project directory -->
|
<!-- Workaround for https://github.com/dotnet/aspnetcore/issues/5486 which requires the bin and obj directory be in the project directory -->
|
||||||
<BaseIntermediateOutputPath />
|
<BaseIntermediateOutputPath />
|
||||||
<IntermediateOutputPath />
|
<IntermediateOutputPath />
|
||||||
<BaseOutputPath />
|
<BaseOutputPath />
|
||||||
|
|
|
||||||
|
|
@ -81,7 +81,7 @@ export function navigateTo(uri: string, forceLoad: boolean) {
|
||||||
} else if (forceLoad && location.href === uri) {
|
} else if (forceLoad && location.href === uri) {
|
||||||
// Force-loading the same URL you're already on requires special handling to avoid
|
// Force-loading the same URL you're already on requires special handling to avoid
|
||||||
// triggering browser-specific behavior issues.
|
// triggering browser-specific behavior issues.
|
||||||
// For details about what this fixes and why, see https://github.com/aspnet/AspNetCore/pull/10839
|
// For details about what this fixes and why, see https://github.com/dotnet/aspnetcore/pull/10839
|
||||||
const temporaryUri = uri + '?';
|
const temporaryUri = uri + '?';
|
||||||
history.replaceState(null, '', temporaryUri);
|
history.replaceState(null, '', temporaryUri);
|
||||||
location.replace(uri);
|
location.replace(uri);
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
<TargetFramework>$(DefaultNetCoreTargetFramework)</TargetFramework>
|
<TargetFramework>$(DefaultNetCoreTargetFramework)</TargetFramework>
|
||||||
<TestGroupName>Components.E2ETests</TestGroupName>
|
<TestGroupName>Components.E2ETests</TestGroupName>
|
||||||
|
|
||||||
<!-- https://github.com/aspnet/AspNetCore/issues/6857 -->
|
<!-- https://github.com/dotnet/aspnetcore/issues/6857 -->
|
||||||
<BuildHelixPayload>false</BuildHelixPayload>
|
<BuildHelixPayload>false</BuildHelixPayload>
|
||||||
|
|
||||||
<!-- Run on platforms where we support Selenium -->
|
<!-- Run on platforms where we support Selenium -->
|
||||||
|
|
|
||||||
|
|
@ -216,7 +216,7 @@ namespace Microsoft.AspNetCore.Components.E2ETest.Tests
|
||||||
Assert.Equal("Fourth choice", target.SelectedOption.Text);
|
Assert.Equal("Fourth choice", target.SelectedOption.Text);
|
||||||
|
|
||||||
// Verify we can select options whose value is empty
|
// Verify we can select options whose value is empty
|
||||||
// https://github.com/aspnet/AspNetCore/issues/17735
|
// https://github.com/dotnet/aspnetcore/issues/17735
|
||||||
target.SelectByText("Empty value");
|
target.SelectByText("Empty value");
|
||||||
Browser.Equal(string.Empty, () => boundValue.Text);
|
Browser.Equal(string.Empty, () => boundValue.Text);
|
||||||
}
|
}
|
||||||
|
|
@ -234,7 +234,7 @@ namespace Microsoft.AspNetCore.Components.E2ETest.Tests
|
||||||
Browser.Equal("Third", () => boundValue.Text);
|
Browser.Equal("Third", () => boundValue.Text);
|
||||||
|
|
||||||
// Verify we can select options whose value is empty
|
// Verify we can select options whose value is empty
|
||||||
// https://github.com/aspnet/AspNetCore/issues/17735
|
// https://github.com/dotnet/aspnetcore/issues/17735
|
||||||
target.SelectByText("Empty value");
|
target.SelectByText("Empty value");
|
||||||
Browser.Equal(string.Empty, () => boundValue.Text);
|
Browser.Equal(string.Empty, () => boundValue.Text);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -191,7 +191,7 @@ namespace Microsoft.AspNetCore.Components.E2ETest.Tests
|
||||||
// up for a bit it doesn't cause typing to lose keystrokes. But when running server-side, this
|
// up for a bit it doesn't cause typing to lose keystrokes. But when running server-side, this
|
||||||
// shows that network latency doesn't cause keystrokes to be lost even if:
|
// shows that network latency doesn't cause keystrokes to be lost even if:
|
||||||
// [1] By the time a keystroke event arrives, the event handler ID has since changed
|
// [1] By the time a keystroke event arrives, the event handler ID has since changed
|
||||||
// [2] We have the situation described under "the problem" at https://github.com/aspnet/AspNetCore/issues/8204#issuecomment-493986702
|
// [2] We have the situation described under "the problem" at https://github.com/dotnet/aspnetcore/issues/8204#issuecomment-493986702
|
||||||
|
|
||||||
Browser.MountTestComponent<LaggyTypingComponent>();
|
Browser.MountTestComponent<LaggyTypingComponent>();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -46,7 +46,7 @@ namespace Microsoft.AspNetCore.DataProtection.KeyManagement
|
||||||
_defaultKeyResolver = defaultKeyResolver;
|
_defaultKeyResolver = defaultKeyResolver;
|
||||||
_logger = loggerFactory.CreateLogger<KeyRingProvider>();
|
_logger = loggerFactory.CreateLogger<KeyRingProvider>();
|
||||||
|
|
||||||
// We will automatically refresh any unknown keys for 2 minutes see https://github.com/aspnet/AspNetCore/issues/3975
|
// We will automatically refresh any unknown keys for 2 minutes see https://github.com/dotnet/aspnetcore/issues/3975
|
||||||
AutoRefreshWindowEnd = DateTime.UtcNow.AddMinutes(2);
|
AutoRefreshWindowEnd = DateTime.UtcNow.AddMinutes(2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -151,7 +151,7 @@ namespace Microsoft.AspNetCore.DataProtection.Repositories
|
||||||
catch (IOException)
|
catch (IOException)
|
||||||
{
|
{
|
||||||
// Use File.Copy because File.Move on NFS shares has issues in .NET Core 2.0
|
// Use File.Copy because File.Move on NFS shares has issues in .NET Core 2.0
|
||||||
// See https://github.com/aspnet/AspNetCore/issues/2941 for more context
|
// See https://github.com/dotnet/aspnetcore/issues/2941 for more context
|
||||||
File.Copy(tempFilename, finalFilename);
|
File.Copy(tempFilename, finalFilename);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -115,7 +115,7 @@ namespace Microsoft.AspNetCore.DataProtection
|
||||||
|
|
||||||
[ConditionalFact]
|
[ConditionalFact]
|
||||||
[X509StoreIsAvailable(StoreName.My, StoreLocation.CurrentUser)]
|
[X509StoreIsAvailable(StoreName.My, StoreLocation.CurrentUser)]
|
||||||
[SkipOnHelix("https://github.com/aspnet/AspNetCore/issues/6720")]
|
[SkipOnHelix("https://github.com/dotnet/aspnetcore/issues/6720")]
|
||||||
public void System_UsesProvidedDirectoryAndCertificate()
|
public void System_UsesProvidedDirectoryAndCertificate()
|
||||||
{
|
{
|
||||||
var filePath = Path.Combine(GetTestFilesPath(), "TestCert.pfx");
|
var filePath = Path.Combine(GetTestFilesPath(), "TestCert.pfx");
|
||||||
|
|
@ -165,7 +165,7 @@ namespace Microsoft.AspNetCore.DataProtection
|
||||||
|
|
||||||
[ConditionalFact]
|
[ConditionalFact]
|
||||||
[X509StoreIsAvailable(StoreName.My, StoreLocation.CurrentUser)]
|
[X509StoreIsAvailable(StoreName.My, StoreLocation.CurrentUser)]
|
||||||
[SkipOnHelix("https://github.com/aspnet/AspNetCore/issues/6720")]
|
[SkipOnHelix("https://github.com/dotnet/aspnetcore/issues/6720")]
|
||||||
public void System_UsesProvidedCertificateNotFromStore()
|
public void System_UsesProvidedCertificateNotFromStore()
|
||||||
{
|
{
|
||||||
using (var store = new X509Store(StoreName.My, StoreLocation.CurrentUser))
|
using (var store = new X509Store(StoreName.My, StoreLocation.CurrentUser))
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
<OutputType>exe</OutputType>
|
<OutputType>exe</OutputType>
|
||||||
<TargetFramework>$(DefaultNetCoreTargetFramework)</TargetFramework>
|
<TargetFramework>$(DefaultNetCoreTargetFramework)</TargetFramework>
|
||||||
<!-- Temporary workaround - the build thinks 'alpha1.111' is newer than 'alpha.1.222'.
|
<!-- Temporary workaround - the build thinks 'alpha1.111' is newer than 'alpha.1.222'.
|
||||||
Remove once we can ingest EF again: https://github.com/aspnet/AspNetCore/issues/17949 -->
|
Remove once we can ingest EF again: https://github.com/dotnet/aspnetcore/issues/17949 -->
|
||||||
<NoWarn>$(NoWarn);NU1605</NoWarn>
|
<NoWarn>$(NoWarn);NU1605</NoWarn>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
<TargetFramework>$(DefaultNetCoreTargetFramework)</TargetFramework>
|
<TargetFramework>$(DefaultNetCoreTargetFramework)</TargetFramework>
|
||||||
|
|
||||||
<!-- Tests do not work on Helix or when bin/ directory is not in project directory due to undeclared dependency on test content. -->
|
<!-- Tests do not work on Helix or when bin/ directory is not in project directory due to undeclared dependency on test content. -->
|
||||||
<!-- https://github.com/aspnet/AspNetCore/issues/10424 -->
|
<!-- https://github.com/dotnet/aspnetcore/issues/10424 -->
|
||||||
<BuildHelixPayload>false</BuildHelixPayload>
|
<BuildHelixPayload>false</BuildHelixPayload>
|
||||||
<BaseOutputPath />
|
<BaseOutputPath />
|
||||||
<OutputPath />
|
<OutputPath />
|
||||||
|
|
|
||||||
|
|
@ -146,7 +146,7 @@ namespace Microsoft.AspNetCore.JsonPatch.IntegrationTests
|
||||||
Assert.Equal(newGuid, targetObject.GuidValue);
|
Assert.Equal(newGuid, targetObject.GuidValue);
|
||||||
}
|
}
|
||||||
|
|
||||||
// https://github.com/aspnet/AspNetCore/issues/3634
|
// https://github.com/dotnet/aspnetcore/issues/3634
|
||||||
[Fact]
|
[Fact]
|
||||||
public void Regression_AspNetCore3634()
|
public void Regression_AspNetCore3634()
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>$(DefaultNetCoreTargetFramework)</TargetFramework>
|
<TargetFramework>$(DefaultNetCoreTargetFramework)</TargetFramework>
|
||||||
<RootNamespace>Microsoft.AspNetCore</RootNamespace>
|
<RootNamespace>Microsoft.AspNetCore</RootNamespace>
|
||||||
<!-- https://github.com/aspnet/AspNetCore/issues/7939: This unit test requires the shared framework be available in Helix. -->
|
<!-- https://github.com/dotnet/aspnetcore/issues/7939: This unit test requires the shared framework be available in Helix. -->
|
||||||
<BuildHelixPayload>false</BuildHelixPayload>
|
<BuildHelixPayload>false</BuildHelixPayload>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -55,7 +55,7 @@ namespace Microsoft.AspNetCore.Hosting
|
||||||
if (_exitedGracefully)
|
if (_exitedGracefully)
|
||||||
{
|
{
|
||||||
// On Linux if the shutdown is triggered by SIGTERM then that's signaled with the 143 exit code.
|
// On Linux if the shutdown is triggered by SIGTERM then that's signaled with the 143 exit code.
|
||||||
// Suppress that since we shut down gracefully. https://github.com/aspnet/AspNetCore/issues/6526
|
// Suppress that since we shut down gracefully. https://github.com/dotnet/aspnetcore/issues/6526
|
||||||
Environment.ExitCode = 0;
|
Environment.ExitCode = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -198,7 +198,7 @@ namespace Microsoft.AspNetCore.Hosting
|
||||||
}
|
}
|
||||||
|
|
||||||
[ConditionalFact]
|
[ConditionalFact]
|
||||||
[SkipOnHelix("https://github.com/aspnet/AspNetCore/issues/7291")]
|
[SkipOnHelix("https://github.com/dotnet/aspnetcore/issues/7291")]
|
||||||
public async Task WebHostStopAsyncUsesDefaultTimeoutIfGivenTokenDoesNotFire()
|
public async Task WebHostStopAsyncUsesDefaultTimeoutIfGivenTokenDoesNotFire()
|
||||||
{
|
{
|
||||||
var data = new Dictionary<string, string>
|
var data = new Dictionary<string, string>
|
||||||
|
|
@ -314,7 +314,7 @@ namespace Microsoft.AspNetCore.Hosting
|
||||||
}
|
}
|
||||||
|
|
||||||
[ConditionalFact]
|
[ConditionalFact]
|
||||||
[SkipOnHelix("https://github.com/aspnet/AspNetCore/issues/7291")]
|
[SkipOnHelix("https://github.com/dotnet/aspnetcore/issues/7291")]
|
||||||
public void WebHostApplicationLifetimeEventsOrderedCorrectlyDuringShutdown()
|
public void WebHostApplicationLifetimeEventsOrderedCorrectlyDuringShutdown()
|
||||||
{
|
{
|
||||||
using (var host = CreateBuilder()
|
using (var host = CreateBuilder()
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
<TargetFramework>$(DefaultNetCoreTargetFramework)</TargetFramework>
|
<TargetFramework>$(DefaultNetCoreTargetFramework)</TargetFramework>
|
||||||
|
|
||||||
<!-- Tests do not work on Helix or when bin/ directory is not in project directory due to undeclared dependency on test content. -->
|
<!-- Tests do not work on Helix or when bin/ directory is not in project directory due to undeclared dependency on test content. -->
|
||||||
<!-- https://github.com/aspnet/AspNetCore/issues/8247 -->
|
<!-- https://github.com/dotnet/aspnetcore/issues/8247 -->
|
||||||
<BuildHelixPayload>false</BuildHelixPayload>
|
<BuildHelixPayload>false</BuildHelixPayload>
|
||||||
<BaseOutputPath />
|
<BaseOutputPath />
|
||||||
<OutputPath />
|
<OutputPath />
|
||||||
|
|
|
||||||
|
|
@ -46,7 +46,7 @@ namespace Microsoft.AspNetCore.Hosting.FunctionalTests
|
||||||
{
|
{
|
||||||
var logger = loggerFactory.CreateLogger(testName);
|
var logger = loggerFactory.CreateLogger(testName);
|
||||||
|
|
||||||
// https://github.com/aspnet/AspNetCore/issues/8247
|
// https://github.com/dotnet/aspnetcore/issues/8247
|
||||||
#pragma warning disable 0618
|
#pragma warning disable 0618
|
||||||
var applicationPath = Path.Combine(TestPathUtilities.GetSolutionRootDirectory("Hosting"), "test", "testassets",
|
var applicationPath = Path.Combine(TestPathUtilities.GetSolutionRootDirectory("Hosting"), "test", "testassets",
|
||||||
"Microsoft.AspNetCore.Hosting.TestSites");
|
"Microsoft.AspNetCore.Hosting.TestSites");
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ namespace Microsoft.AspNetCore.Hosting.FunctionalTests
|
||||||
{
|
{
|
||||||
var logger = loggerFactory.CreateLogger(nameof(InjectedStartup_DefaultApplicationNameIsEntryAssembly));
|
var logger = loggerFactory.CreateLogger(nameof(InjectedStartup_DefaultApplicationNameIsEntryAssembly));
|
||||||
|
|
||||||
// https://github.com/aspnet/AspNetCore/issues/8247
|
// https://github.com/dotnet/aspnetcore/issues/8247
|
||||||
#pragma warning disable 0618
|
#pragma warning disable 0618
|
||||||
var applicationPath = Path.Combine(TestPathUtilities.GetSolutionRootDirectory("Hosting"), "test", "testassets", "IStartupInjectionAssemblyName");
|
var applicationPath = Path.Combine(TestPathUtilities.GetSolutionRootDirectory("Hosting"), "test", "testassets", "IStartupInjectionAssemblyName");
|
||||||
#pragma warning restore 0618
|
#pragma warning restore 0618
|
||||||
|
|
|
||||||
|
|
@ -385,7 +385,7 @@ namespace Microsoft.AspNetCore.Routing.Matching
|
||||||
context.Response.StatusCode = 405;
|
context.Response.StatusCode = 405;
|
||||||
|
|
||||||
// Prevent ArgumentException from duplicate key if header already added, such as when the
|
// Prevent ArgumentException from duplicate key if header already added, such as when the
|
||||||
// request is re-executed by an error handler (see https://github.com/aspnet/AspNetCore/issues/6415)
|
// request is re-executed by an error handler (see https://github.com/dotnet/aspnetcore/issues/6415)
|
||||||
context.Response.Headers[HeaderNames.Allow] = allow;
|
context.Response.Headers[HeaderNames.Allow] = allow;
|
||||||
|
|
||||||
return Task.CompletedTask;
|
return Task.CompletedTask;
|
||||||
|
|
|
||||||
|
|
@ -290,7 +290,7 @@ namespace Microsoft.AspNetCore.Routing.Matching
|
||||||
MatcherAssert.AssertMatch(httpContext, endpoint2, ignoreValues: true);
|
MatcherAssert.AssertMatch(httpContext, endpoint2, ignoreValues: true);
|
||||||
}
|
}
|
||||||
|
|
||||||
[Fact] // See https://github.com/aspnet/AspNetCore/issues/6415
|
[Fact] // See https://github.com/dotnet/aspnetcore/issues/6415
|
||||||
public async Task NotMatch_HttpMethod_Returns405Endpoint_ReExecute()
|
public async Task NotMatch_HttpMethod_Returns405Endpoint_ReExecute()
|
||||||
{
|
{
|
||||||
// Arrange
|
// Arrange
|
||||||
|
|
|
||||||
|
|
@ -1380,7 +1380,7 @@ namespace Microsoft.AspNetCore.Routing.Template.Tests
|
||||||
Assert.Equal(expected, boundTemplate);
|
Assert.Equal(expected, boundTemplate);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Regression test for aspnet/AspNetCore#4212
|
// Regression test for dotnet/aspnetcore#4212
|
||||||
//
|
//
|
||||||
// An ambient value should be used to satisfy a required value even if if we're discarding
|
// An ambient value should be used to satisfy a required value even if if we're discarding
|
||||||
// ambient values.
|
// ambient values.
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
"PipelineDepth": 16
|
"PipelineDepth": 16
|
||||||
},
|
},
|
||||||
"Source": {
|
"Source": {
|
||||||
"Repository": "https://github.com/aspnet/AspNetCore.git",
|
"Repository": "https://github.com/dotnet/aspnetcore.git",
|
||||||
"BranchOrCommit": "master",
|
"BranchOrCommit": "master",
|
||||||
"Project": "src/Routing/benchmarkapps/Benchmarks/Benchmarks.csproj"
|
"Project": "src/Routing/benchmarkapps/Benchmarks/Benchmarks.csproj"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@ namespace Microsoft.AspNetCore.ApiAuthorization.IdentityServer
|
||||||
X509KeyStorageFlags.DefaultKeySet);
|
X509KeyStorageFlags.DefaultKeySet);
|
||||||
|
|
||||||
[ConditionalFact]
|
[ConditionalFact]
|
||||||
[SkipOnHelix("https://github.com/aspnet/AspNetCore/issues/6720")]
|
[SkipOnHelix("https://github.com/dotnet/aspnetcore/issues/6720")]
|
||||||
[FrameworkSkipCondition(RuntimeFrameworks.CLR)]
|
[FrameworkSkipCondition(RuntimeFrameworks.CLR)]
|
||||||
public void Configure_AddsDevelopmentKeyFromConfiguration()
|
public void Configure_AddsDevelopmentKeyFromConfiguration()
|
||||||
{
|
{
|
||||||
|
|
@ -64,7 +64,7 @@ namespace Microsoft.AspNetCore.ApiAuthorization.IdentityServer
|
||||||
}
|
}
|
||||||
|
|
||||||
[ConditionalFact]
|
[ConditionalFact]
|
||||||
[SkipOnHelix("https://github.com/aspnet/AspNetCore/issues/6720")]
|
[SkipOnHelix("https://github.com/dotnet/aspnetcore/issues/6720")]
|
||||||
public void Configure_LoadsPfxCertificateCredentialFromConfiguration()
|
public void Configure_LoadsPfxCertificateCredentialFromConfiguration()
|
||||||
{
|
{
|
||||||
// Arrange
|
// Arrange
|
||||||
|
|
@ -94,7 +94,7 @@ namespace Microsoft.AspNetCore.ApiAuthorization.IdentityServer
|
||||||
}
|
}
|
||||||
|
|
||||||
[ConditionalFact]
|
[ConditionalFact]
|
||||||
[SkipOnHelix("https://github.com/aspnet/AspNetCore/issues/6720")]
|
[SkipOnHelix("https://github.com/dotnet/aspnetcore/issues/6720")]
|
||||||
public void Configure_LoadsCertificateStoreCertificateCredentialFromConfiguration()
|
public void Configure_LoadsCertificateStoreCertificateCredentialFromConfiguration()
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
|
|
|
||||||
|
|
@ -59,7 +59,7 @@ namespace Microsoft.AspNetCore.ApiAuthorization.IdentityServer.Configuration
|
||||||
}
|
}
|
||||||
|
|
||||||
[ConditionalFact]
|
[ConditionalFact]
|
||||||
[SkipOnHelix("https://github.com/aspnet/AspNetCore/issues/6720")]
|
[SkipOnHelix("https://github.com/dotnet/aspnetcore/issues/6720")]
|
||||||
public static void LoadFromStoreCert_SkipsCertificatesNotYetValid()
|
public static void LoadFromStoreCert_SkipsCertificatesNotYetValid()
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
|
|
@ -82,7 +82,7 @@ namespace Microsoft.AspNetCore.ApiAuthorization.IdentityServer.Configuration
|
||||||
}
|
}
|
||||||
|
|
||||||
[ConditionalFact]
|
[ConditionalFact]
|
||||||
[SkipOnHelix("https://github.com/aspnet/AspNetCore/issues/6720")]
|
[SkipOnHelix("https://github.com/dotnet/aspnetcore/issues/6720")]
|
||||||
public static void LoadFromStoreCert_PrefersCertificatesCloserToExpirationDate()
|
public static void LoadFromStoreCert_PrefersCertificatesCloserToExpirationDate()
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
|
|
@ -105,7 +105,7 @@ namespace Microsoft.AspNetCore.ApiAuthorization.IdentityServer.Configuration
|
||||||
}
|
}
|
||||||
|
|
||||||
[ConditionalFact]
|
[ConditionalFact]
|
||||||
[SkipOnHelix("https://github.com/aspnet/AspNetCore/issues/6720")]
|
[SkipOnHelix("https://github.com/dotnet/aspnetcore/issues/6720")]
|
||||||
public static void LoadFromStoreCert_SkipsExpiredCertificates()
|
public static void LoadFromStoreCert_SkipsExpiredCertificates()
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>$(DefaultNetCoreTargetFramework)</TargetFramework>
|
<TargetFramework>$(DefaultNetCoreTargetFramework)</TargetFramework>
|
||||||
<!-- Test asset publishing not working on arm64 https://github.com/aspnet/AspNetCore/issues/11205 -->
|
<!-- Test asset publishing not working on arm64 https://github.com/dotnet/aspnetcore/issues/11205 -->
|
||||||
<SkipHelixArm>true</SkipHelixArm>
|
<SkipHelixArm>true</SkipHelixArm>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -58,7 +58,7 @@
|
||||||
</HarvestDirectory>
|
</HarvestDirectory>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<!-- TODO: https://github.com/aspnet/AspNetCore/issues/6304. Harvest shared frameworks from a project reference -->
|
<!-- TODO: https://github.com/dotnet/aspnetcore/issues/6304. Harvest shared frameworks from a project reference -->
|
||||||
<Target Name="ExtractIntermediateSharedFx" BeforeTargets="PrepareForBuild">
|
<Target Name="ExtractIntermediateSharedFx" BeforeTargets="PrepareForBuild">
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<SharedFrameworkX64HarvestRootPath Condition="'$(SharedFrameworkX64HarvestRootPath)' == ''">$(InstallersOutputPath)</SharedFrameworkX64HarvestRootPath>
|
<SharedFrameworkX64HarvestRootPath Condition="'$(SharedFrameworkX64HarvestRootPath)' == ''">$(InstallersOutputPath)</SharedFrameworkX64HarvestRootPath>
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
<authors>Microsoft</authors>
|
<authors>Microsoft</authors>
|
||||||
<owners>Microsoft</owners>
|
<owners>Microsoft</owners>
|
||||||
<licenseUrl>https://www.microsoft.com/net/dotnet_library_license.htm</licenseUrl>
|
<licenseUrl>https://www.microsoft.com/net/dotnet_library_license.htm</licenseUrl>
|
||||||
<projectUrl>https://github.com/aspnet/aspnetcore</projectUrl>
|
<projectUrl>https://github.com/dotnet/aspnetcore</projectUrl>
|
||||||
<requireLicenseAcceptance>true</requireLicenseAcceptance>
|
<requireLicenseAcceptance>true</requireLicenseAcceptance>
|
||||||
<description>$MAJOR$.$MINOR$ ASP.NET Core TargetingPack ($ARCH$) Windows Installer MSI as a .nupkg for internal Visual Studio build consumption</description>
|
<description>$MAJOR$.$MINOR$ ASP.NET Core TargetingPack ($ARCH$) Windows Installer MSI as a .nupkg for internal Visual Studio build consumption</description>
|
||||||
<copyright>© Microsoft Corporation. All rights reserved.</copyright>
|
<copyright>© Microsoft Corporation. All rights reserved.</copyright>
|
||||||
|
|
|
||||||
|
|
@ -57,7 +57,7 @@
|
||||||
</HarvestDirectory>
|
</HarvestDirectory>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<!-- TODO: https://github.com/aspnet/AspNetCore/issues/6304. harvest from TargetingPackLayoutRoot directly. Unzipping is currently required because the zip has the signed versions of .dll files. -->
|
<!-- TODO: https://github.com/dotnet/aspnetcore/issues/6304. harvest from TargetingPackLayoutRoot directly. Unzipping is currently required because the zip has the signed versions of .dll files. -->
|
||||||
<Target Name="ExtractIntermediateTargetingPack" BeforeTargets="PrepareForBuild">
|
<Target Name="ExtractIntermediateTargetingPack" BeforeTargets="PrepareForBuild">
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetingPackHarvestRoot Condition="'$(TargetingPackHarvestRoot)' == ''">$(InstallersOutputPath)</TargetingPackHarvestRoot>
|
<TargetingPackHarvestRoot Condition="'$(TargetingPackHarvestRoot)' == ''">$(InstallersOutputPath)</TargetingPackHarvestRoot>
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
<authors>Microsoft</authors>
|
<authors>Microsoft</authors>
|
||||||
<owners>Microsoft</owners>
|
<owners>Microsoft</owners>
|
||||||
<licenseUrl>https://www.microsoft.com/net/dotnet_library_license.htm</licenseUrl>
|
<licenseUrl>https://www.microsoft.com/net/dotnet_library_license.htm</licenseUrl>
|
||||||
<projectUrl>https://github.com/aspnet/aspnetcore</projectUrl>
|
<projectUrl>https://github.com/dotnet/aspnetcore</projectUrl>
|
||||||
<requireLicenseAcceptance>true</requireLicenseAcceptance>
|
<requireLicenseAcceptance>true</requireLicenseAcceptance>
|
||||||
<description>$MAJOR$.$MINOR$ ASP.NET Core TargetingPack ($ARCH$) Windows Installer MSI as a .nupkg for internal Visual Studio build consumption</description>
|
<description>$MAJOR$.$MINOR$ ASP.NET Core TargetingPack ($ARCH$) Windows Installer MSI as a .nupkg for internal Visual Studio build consumption</description>
|
||||||
<copyright>© Microsoft Corporation. All rights reserved.</copyright>
|
<copyright>© Microsoft Corporation. All rights reserved.</copyright>
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
<TargetFramework>$(DefaultNetCoreTargetFramework)</TargetFramework>
|
<TargetFramework>$(DefaultNetCoreTargetFramework)</TargetFramework>
|
||||||
<RootNamespace>Microsoft.AspNetCore.Diagnostics.HealthChecks</RootNamespace>
|
<RootNamespace>Microsoft.AspNetCore.Diagnostics.HealthChecks</RootNamespace>
|
||||||
<!-- Temporary workaround - the build thinks 'alpha1.111' is newer than 'alpha.1.222'.
|
<!-- Temporary workaround - the build thinks 'alpha1.111' is newer than 'alpha.1.222'.
|
||||||
Remove once we can ingest EF again: https://github.com/aspnet/AspNetCore/issues/17949 -->
|
Remove once we can ingest EF again: https://github.com/dotnet/aspnetcore/issues/17949 -->
|
||||||
<NoWarn>$(NoWarn);NU1605</NoWarn>
|
<NoWarn>$(NoWarn);NU1605</NoWarn>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -166,7 +166,7 @@ namespace Microsoft.AspNetCore.Rewrite.Tests.UrlRewrite
|
||||||
<rule name=""redirect-aspnet-mvc"" enabled=""true"" stopProcessing=""true"">
|
<rule name=""redirect-aspnet-mvc"" enabled=""true"" stopProcessing=""true"">
|
||||||
<match url=""^aspnet/Mvc"" />
|
<match url=""^aspnet/Mvc"" />
|
||||||
<conditions logicalGrouping=""MatchAll"" trackAllCaptures=""false"" />
|
<conditions logicalGrouping=""MatchAll"" trackAllCaptures=""false"" />
|
||||||
<action type=""Redirect"" url=""https://github.com/aspnet/AspNetCore"" />
|
<action type=""Redirect"" url=""https://github.com/dotnet/aspnetcore"" />
|
||||||
</rule>
|
</rule>
|
||||||
</rules>
|
</rules>
|
||||||
</rewrite>";
|
</rewrite>";
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ namespace Microsoft.AspNetCore.SpaServices.Extensions.Proxy
|
||||||
private const int DefaultWebSocketBufferSize = 4096;
|
private const int DefaultWebSocketBufferSize = 4096;
|
||||||
private const int StreamCopyBufferSize = 81920;
|
private const int StreamCopyBufferSize = 81920;
|
||||||
|
|
||||||
// https://github.com/aspnet/AspNetCore/issues/16797
|
// https://github.com/dotnet/aspnetcore/issues/16797
|
||||||
private static readonly string[] NotForwardedHttpHeaders = new[] { "Connection" };
|
private static readonly string[] NotForwardedHttpHeaders = new[] { "Connection" };
|
||||||
|
|
||||||
// Don't forward User-Agent/Accept because of https://github.com/aspnet/JavaScriptServices/issues/1469
|
// Don't forward User-Agent/Accept because of https://github.com/aspnet/JavaScriptServices/issues/1469
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ namespace Microsoft.AspNetCore.WebSockets.ConformanceTest
|
||||||
|
|
||||||
// Skip if wstest is not installed for now, see https://github.com/aspnet/WebSockets/issues/95
|
// Skip if wstest is not installed for now, see https://github.com/aspnet/WebSockets/issues/95
|
||||||
// We will enable Wstest on every build once we've gotten the necessary infrastructure sorted out :).
|
// We will enable Wstest on every build once we've gotten the necessary infrastructure sorted out :).
|
||||||
[ConditionalFact(Skip = "https://github.com/aspnet/AspNetCore/issues/4350")]
|
[ConditionalFact(Skip = "https://github.com/dotnet/aspnetcore/issues/4350")]
|
||||||
[SkipIfWsTestNotPresent]
|
[SkipIfWsTestNotPresent]
|
||||||
public async Task AutobahnTestSuite()
|
public async Task AutobahnTestSuite()
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -550,7 +550,7 @@ namespace Microsoft.AspNetCore.WebSockets.Test
|
||||||
}
|
}
|
||||||
|
|
||||||
[Fact]
|
[Fact]
|
||||||
[Flaky("https://github.com/aspnet/AspNetCore/issues/8187", FlakyOn.Helix.All)]
|
[Flaky("https://github.com/dotnet/aspnetcore/issues/8187", FlakyOn.Helix.All)]
|
||||||
public async Task OriginIsNotValidatedForNonWebSocketRequests()
|
public async Task OriginIsNotValidatedForNonWebSocketRequests()
|
||||||
{
|
{
|
||||||
using (var server = KestrelWebSocketHelpers.CreateServer(LoggerFactory, out var port, context =>
|
using (var server = KestrelWebSocketHelpers.CreateServer(LoggerFactory, out var port, context =>
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
MusicStore (test application)
|
MusicStore (test application)
|
||||||
=============================
|
=============================
|
||||||
|
|
||||||
This project is part of ASP.NET Core. You can find samples, documentation and getting started instructions for ASP.NET Core at the [Home](https://github.com/aspnet/aspnetcore) repo.
|
This project is part of ASP.NET Core. You can find samples, documentation and getting started instructions for ASP.NET Core at the [Home](https://github.com/dotnet/aspnetcore) repo.
|
||||||
|
|
||||||
This is a test application used for ASP.NET Core internal test processes.
|
This is a test application used for ASP.NET Core internal test processes.
|
||||||
It is not intended to be a representative sample of how to use ASP.NET Core.
|
It is not intended to be a representative sample of how to use ASP.NET Core.
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ namespace E2ETests
|
||||||
{
|
{
|
||||||
public static string GetApplicationPath()
|
public static string GetApplicationPath()
|
||||||
{
|
{
|
||||||
// https://github.com/aspnet/AspNetCore/issues/8343
|
// https://github.com/dotnet/aspnetcore/issues/8343
|
||||||
#pragma warning disable 0618
|
#pragma warning disable 0618
|
||||||
var solutionDirectory = TestPathUtilities.GetSolutionRootDirectory("MusicStore");
|
var solutionDirectory = TestPathUtilities.GetSolutionRootDirectory("MusicStore");
|
||||||
#pragma warning restore 0618
|
#pragma warning restore 0618
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@
|
||||||
<ServerGarbageCollection>true</ServerGarbageCollection>
|
<ServerGarbageCollection>true</ServerGarbageCollection>
|
||||||
<!-- Tests are disabled due to https://github.com/aspnet/AspNetCore-Internal/issues/1967 -->
|
<!-- Tests are disabled due to https://github.com/aspnet/AspNetCore-Internal/issues/1967 -->
|
||||||
<SkipTests>true</SkipTests>
|
<SkipTests>true</SkipTests>
|
||||||
<!-- https://github.com/aspnet/AspNetCore/issues/8343 -->
|
<!-- https://github.com/dotnet/aspnetcore/issues/8343 -->
|
||||||
<BuildHelixPayload>false</BuildHelixPayload>
|
<BuildHelixPayload>false</BuildHelixPayload>
|
||||||
<IsReferenceAssemblyProject>false</IsReferenceAssemblyProject>
|
<IsReferenceAssemblyProject>false</IsReferenceAssemblyProject>
|
||||||
<IsProjectReferenceProvider>false</IsProjectReferenceProvider>
|
<IsProjectReferenceProvider>false</IsProjectReferenceProvider>
|
||||||
|
|
|
||||||
|
|
@ -77,7 +77,7 @@ namespace MusicStore.Controllers
|
||||||
Assert.Equal(0, model.CartTotal);
|
Assert.Equal(0, model.CartTotal);
|
||||||
}
|
}
|
||||||
|
|
||||||
[Fact(Skip = "https://github.com/aspnet/AspNetCore/issues/12097")]
|
[Fact(Skip = "https://github.com/dotnet/aspnetcore/issues/12097")]
|
||||||
public async Task Index_ReturnsCartItems_WhenItemsInCart()
|
public async Task Index_ReturnsCartItems_WhenItemsInCart()
|
||||||
{
|
{
|
||||||
// Arrange
|
// Arrange
|
||||||
|
|
@ -113,7 +113,7 @@ namespace MusicStore.Controllers
|
||||||
Assert.Equal(5 * 10, model.CartTotal);
|
Assert.Equal(5 * 10, model.CartTotal);
|
||||||
}
|
}
|
||||||
|
|
||||||
[Fact(Skip = "https://github.com/aspnet/AspNetCore/issues/12097")]
|
[Fact(Skip = "https://github.com/dotnet/aspnetcore/issues/12097")]
|
||||||
public async Task AddToCart_AddsItemToCart()
|
public async Task AddToCart_AddsItemToCart()
|
||||||
{
|
{
|
||||||
// Arrange
|
// Arrange
|
||||||
|
|
@ -155,7 +155,7 @@ namespace MusicStore.Controllers
|
||||||
Assert.Equal("Index", redirectResult.ActionName);
|
Assert.Equal("Index", redirectResult.ActionName);
|
||||||
}
|
}
|
||||||
|
|
||||||
[Fact(Skip = "https://github.com/aspnet/AspNetCore/issues/12097")]
|
[Fact(Skip = "https://github.com/dotnet/aspnetcore/issues/12097")]
|
||||||
public async Task RemoveFromCart_RemovesItemFromCart()
|
public async Task RemoveFromCart_RemovesItemFromCart()
|
||||||
{
|
{
|
||||||
// Arrange
|
// Arrange
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@ namespace Microsoft.AspNetCore.Mvc
|
||||||
return AppContext.BaseDirectory;
|
return AppContext.BaseDirectory;
|
||||||
}
|
}
|
||||||
|
|
||||||
// https://github.com/aspnet/AspNetCore/issues/9431
|
// https://github.com/dotnet/aspnetcore/issues/9431
|
||||||
#pragma warning disable 0618
|
#pragma warning disable 0618
|
||||||
var solutionDirectory = TestPathUtilities.GetSolutionRootDirectory("Mvc");
|
var solutionDirectory = TestPathUtilities.GetSolutionRootDirectory("Mvc");
|
||||||
#pragma warning restore 0618
|
#pragma warning restore 0618
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
<RootNamespace>Microsoft.AspNetCore.Mvc.Analyzers</RootNamespace>
|
<RootNamespace>Microsoft.AspNetCore.Mvc.Analyzers</RootNamespace>
|
||||||
|
|
||||||
<!-- Tests do not work on Helix or when bin/ directory is not in project directory due to undeclared dependency on test content. -->
|
<!-- Tests do not work on Helix or when bin/ directory is not in project directory due to undeclared dependency on test content. -->
|
||||||
<!-- https://github.com/aspnet/AspNetCore/issues/9431 -->
|
<!-- https://github.com/dotnet/aspnetcore/issues/9431 -->
|
||||||
<BuildHelixPayload>false</BuildHelixPayload>
|
<BuildHelixPayload>false</BuildHelixPayload>
|
||||||
<BaseOutputPath />
|
<BaseOutputPath />
|
||||||
<OutputPath />
|
<OutputPath />
|
||||||
|
|
|
||||||
|
|
@ -95,7 +95,7 @@ namespace Microsoft.AspNetCore.Mvc.Analyzers
|
||||||
Assert.False(result);
|
Assert.False(result);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Test for https://github.com/aspnet/AspNetCore/issues/6945
|
// Test for https://github.com/dotnet/aspnetcore/issues/6945
|
||||||
[Fact]
|
[Fact]
|
||||||
public async Task IsProblematicParameter_ReturnsFalse_ForSimpleTypes()
|
public async Task IsProblematicParameter_ReturnsFalse_ForSimpleTypes()
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@ namespace Microsoft.AspNetCore.Mvc
|
||||||
return AppContext.BaseDirectory;
|
return AppContext.BaseDirectory;
|
||||||
}
|
}
|
||||||
|
|
||||||
// https://github.com/aspnet/AspNetCore/issues/9431
|
// https://github.com/dotnet/aspnetcore/issues/9431
|
||||||
#pragma warning disable 0618
|
#pragma warning disable 0618
|
||||||
var solutionDirectory = TestPathUtilities.GetSolutionRootDirectory("Mvc");
|
var solutionDirectory = TestPathUtilities.GetSolutionRootDirectory("Mvc");
|
||||||
#pragma warning restore 0618
|
#pragma warning restore 0618
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
<RootNamespace>Microsoft.AspNetCore.Mvc.Api.Analyzers</RootNamespace>
|
<RootNamespace>Microsoft.AspNetCore.Mvc.Api.Analyzers</RootNamespace>
|
||||||
|
|
||||||
<!-- Tests do not work on Helix or when bin/ directory is not in project directory due to undeclared dependency on test content. -->
|
<!-- Tests do not work on Helix or when bin/ directory is not in project directory due to undeclared dependency on test content. -->
|
||||||
<!-- https://github.com/aspnet/AspNetCore/issues/9431 -->
|
<!-- https://github.com/dotnet/aspnetcore/issues/9431 -->
|
||||||
<BuildHelixPayload>false</BuildHelixPayload>
|
<BuildHelixPayload>false</BuildHelixPayload>
|
||||||
<BaseOutputPath />
|
<BaseOutputPath />
|
||||||
<OutputPath />
|
<OutputPath />
|
||||||
|
|
|
||||||
|
|
@ -133,7 +133,7 @@ namespace Microsoft.AspNetCore.Mvc.Routing
|
||||||
if (updatedRoutePattern == null)
|
if (updatedRoutePattern == null)
|
||||||
{
|
{
|
||||||
// This kind of thing can happen when a route pattern uses a *reserved* route value such as `action`.
|
// This kind of thing can happen when a route pattern uses a *reserved* route value such as `action`.
|
||||||
// See: https://github.com/aspnet/AspNetCore/issues/14789
|
// See: https://github.com/dotnet/aspnetcore/issues/14789
|
||||||
var formattedRouteKeys = string.Join(", ", resolvedRouteValues.Keys.Select(k => $"'{k}'"));
|
var formattedRouteKeys = string.Join(", ", resolvedRouteValues.Keys.Select(k => $"'{k}'"));
|
||||||
throw new InvalidOperationException(
|
throw new InvalidOperationException(
|
||||||
$"Failed to update the route pattern '{resolvedRoutePattern.RawText}' with required route values. " +
|
$"Failed to update the route pattern '{resolvedRoutePattern.RawText}' with required route values. " +
|
||||||
|
|
|
||||||
|
|
@ -371,7 +371,7 @@ namespace Microsoft.AspNetCore.Mvc.DataAnnotations
|
||||||
{
|
{
|
||||||
// PropertyInfo was unavailable on ModelIdentity prior to 3.1.
|
// PropertyInfo was unavailable on ModelIdentity prior to 3.1.
|
||||||
// Making a cogent argument about the nullability of the property requires inspecting the declared type,
|
// Making a cogent argument about the nullability of the property requires inspecting the declared type,
|
||||||
// since looking at the runtime type may result in false positives: https://github.com/aspnet/AspNetCore/issues/14812
|
// since looking at the runtime type may result in false positives: https://github.com/dotnet/aspnetcore/issues/14812
|
||||||
// The only way we could arrive here is if the ModelMetadata was constructed using the non-default provider.
|
// The only way we could arrive here is if the ModelMetadata was constructed using the non-default provider.
|
||||||
// We'll cursorily examine the attributes on the property, but not the ContainerType to make a decision about it's nullability.
|
// We'll cursorily examine the attributes on the property, but not the ContainerType to make a decision about it's nullability.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1310,7 +1310,7 @@ namespace Microsoft.AspNetCore.Mvc.DataAnnotations
|
||||||
[Fact]
|
[Fact]
|
||||||
public void CreateValidationMetadata_InfersRequiredAttribute_BaseTypeIsNullable_PropertyIsNotNull()
|
public void CreateValidationMetadata_InfersRequiredAttribute_BaseTypeIsNullable_PropertyIsNotNull()
|
||||||
{
|
{
|
||||||
// Tests the scenario listed in https://github.com/aspnet/AspNetCore/issues/14812
|
// Tests the scenario listed in https://github.com/dotnet/aspnetcore/issues/14812
|
||||||
// Arrange
|
// Arrange
|
||||||
var provider = CreateProvider();
|
var provider = CreateProvider();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ namespace Microsoft.AspNetCore.Mvc.ApplicationModels
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Metadata used to construct an endpoint route to the page.
|
/// Metadata used to construct an endpoint route to the page.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
// Note: This type name is referenced by name in AuthorizationMiddleware, do not change this without addressing https://github.com/aspnet/AspNetCore/issues/7011
|
// Note: This type name is referenced by name in AuthorizationMiddleware, do not change this without addressing https://github.com/dotnet/aspnetcore/issues/7011
|
||||||
public sealed class PageRouteMetadata
|
public sealed class PageRouteMetadata
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
|
||||||
|
|
@ -143,7 +143,7 @@ namespace Microsoft.AspNetCore.Mvc.ViewFeatures
|
||||||
Assert.Same(item, value);
|
Assert.Same(item, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
[Fact(Skip = "https://github.com/aspnet/AspNetCore/issues/17102")]
|
[Fact(Skip = "https://github.com/dotnet/aspnetcore/issues/17102")]
|
||||||
public void TempData_LoadAndSaveAreCaseInsensitive()
|
public void TempData_LoadAndSaveAreCaseInsensitive()
|
||||||
{
|
{
|
||||||
// Arrange
|
// Arrange
|
||||||
|
|
@ -163,7 +163,7 @@ namespace Microsoft.AspNetCore.Mvc.ViewFeatures
|
||||||
Assert.True(tempData.ContainsKey("bar"));
|
Assert.True(tempData.ContainsKey("bar"));
|
||||||
}
|
}
|
||||||
|
|
||||||
[Fact(Skip = "https://github.com/aspnet/AspNetCore/issues/17102")]
|
[Fact(Skip = "https://github.com/dotnet/aspnetcore/issues/17102")]
|
||||||
public void TempData_RemovalOfKeysAreCaseInsensitive()
|
public void TempData_RemovalOfKeysAreCaseInsensitive()
|
||||||
{
|
{
|
||||||
var tempData = new TempDataDictionary(new DefaultHttpContext(), new NullTempDataProvider());
|
var tempData = new TempDataDictionary(new DefaultHttpContext(), new NullTempDataProvider());
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
"PresetHeaders": "Json",
|
"PresetHeaders": "Json",
|
||||||
"ReadyStateText": "Application started.",
|
"ReadyStateText": "Application started.",
|
||||||
"Source": {
|
"Source": {
|
||||||
"Repository": "https://github.com/aspnet/AspNetCore.git",
|
"Repository": "https://github.com/dotnet/aspnetcore.git",
|
||||||
"BranchOrCommit": "master",
|
"BranchOrCommit": "master",
|
||||||
"Project": "src/Mvc/benchmarkapps/BasicApi/BasicApi.csproj"
|
"Project": "src/Mvc/benchmarkapps/BasicApi/BasicApi.csproj"
|
||||||
}
|
}
|
||||||
|
|
@ -19,20 +19,20 @@
|
||||||
},
|
},
|
||||||
"BasicApi.GetUsingQueryString": {
|
"BasicApi.GetUsingQueryString": {
|
||||||
"ClientProperties": {
|
"ClientProperties": {
|
||||||
"Scripts": "https://raw.githubusercontent.com/aspnet/AspNetCore/master/src/Mvc/benchmarkapps/BasicApi/getWithToken.lua"
|
"Scripts": "https://raw.githubusercontent.com/dotnet/aspnetcore/master/src/Mvc/benchmarkapps/BasicApi/getWithToken.lua"
|
||||||
},
|
},
|
||||||
"Path": "/pet/findByStatus",
|
"Path": "/pet/findByStatus",
|
||||||
"Query": "?status=available"
|
"Query": "?status=available"
|
||||||
},
|
},
|
||||||
"BasicApi.GetUsingRouteValue": {
|
"BasicApi.GetUsingRouteValue": {
|
||||||
"ClientProperties": {
|
"ClientProperties": {
|
||||||
"Scripts": "https://raw.githubusercontent.com/aspnet/AspNetCore/master/src/Mvc/benchmarkapps/BasicApi/getWithToken.lua"
|
"Scripts": "https://raw.githubusercontent.com/dotnet/aspnetcore/master/src/Mvc/benchmarkapps/BasicApi/getWithToken.lua"
|
||||||
},
|
},
|
||||||
"Path": "/pet/-1"
|
"Path": "/pet/-1"
|
||||||
},
|
},
|
||||||
"BasicApi.GetUsingRouteValueWithoutAuthorization": {
|
"BasicApi.GetUsingRouteValueWithoutAuthorization": {
|
||||||
"ClientProperties": {
|
"ClientProperties": {
|
||||||
"Scripts": "https://raw.githubusercontent.com/aspnet/AspNetCore/master/src/Mvc/benchmarkapps/BasicApi/getWithToken.lua"
|
"Scripts": "https://raw.githubusercontent.com/dotnet/aspnetcore/master/src/Mvc/benchmarkapps/BasicApi/getWithToken.lua"
|
||||||
},
|
},
|
||||||
"Path": "/pet/anonymous/-1"
|
"Path": "/pet/anonymous/-1"
|
||||||
},
|
},
|
||||||
|
|
@ -41,14 +41,14 @@
|
||||||
},
|
},
|
||||||
"BasicApi.Post": {
|
"BasicApi.Post": {
|
||||||
"ClientProperties": {
|
"ClientProperties": {
|
||||||
"Scripts": "https://raw.githubusercontent.com/aspnet/AspNetCore/master/src/Mvc/benchmarkapps/BasicApi/postJsonWithToken.lua"
|
"Scripts": "https://raw.githubusercontent.com/dotnet/aspnetcore/master/src/Mvc/benchmarkapps/BasicApi/postJsonWithToken.lua"
|
||||||
},
|
},
|
||||||
"Path": "/pet"
|
"Path": "/pet"
|
||||||
},
|
},
|
||||||
"BasicApi.PostWithoutDb": {
|
"BasicApi.PostWithoutDb": {
|
||||||
"Path": "/pet/add-pet",
|
"Path": "/pet/add-pet",
|
||||||
"ClientProperties": {
|
"ClientProperties": {
|
||||||
"Scripts": "https://raw.githubusercontent.com/aspnet/AspNetCore/master/src/Mvc/benchmarkapps/BasicApi/postJsonWithToken.lua"
|
"Scripts": "https://raw.githubusercontent.com/dotnet/aspnetcore/master/src/Mvc/benchmarkapps/BasicApi/postJsonWithToken.lua"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
"PresetHeaders": "Html",
|
"PresetHeaders": "Html",
|
||||||
"ReadyStateText": "Application started.",
|
"ReadyStateText": "Application started.",
|
||||||
"Source": {
|
"Source": {
|
||||||
"Repository": "https://github.com/aspnet/AspNetCore.git",
|
"Repository": "https://github.com/dotnet/aspnetcore.git",
|
||||||
"BranchOrCommit": "master",
|
"BranchOrCommit": "master",
|
||||||
"Project": "src/Mvc/benchmarkapps/BasicViews/BasicViews.csproj"
|
"Project": "src/Mvc/benchmarkapps/BasicViews/BasicViews.csproj"
|
||||||
}
|
}
|
||||||
|
|
@ -20,19 +20,19 @@
|
||||||
},
|
},
|
||||||
"BasicViews.Post": {
|
"BasicViews.Post": {
|
||||||
"ClientProperties": {
|
"ClientProperties": {
|
||||||
"Scripts": "https://raw.githubusercontent.com/aspnet/AspNetCore/master/src/Mvc/benchmarkapps/BasicViews/postWithToken.lua"
|
"Scripts": "https://raw.githubusercontent.com/dotnet/aspnetcore/master/src/Mvc/benchmarkapps/BasicViews/postWithToken.lua"
|
||||||
},
|
},
|
||||||
"Path": "/Home/Index"
|
"Path": "/Home/Index"
|
||||||
},
|
},
|
||||||
"BasicViews.PostIgnoringToken": {
|
"BasicViews.PostIgnoringToken": {
|
||||||
"ClientProperties": {
|
"ClientProperties": {
|
||||||
"Scripts": "https://raw.githubusercontent.com/aspnet/AspNetCore/master/src/Mvc/benchmarkapps/BasicViews/postWithToken.lua"
|
"Scripts": "https://raw.githubusercontent.com/dotnet/aspnetcore/master/src/Mvc/benchmarkapps/BasicViews/postWithToken.lua"
|
||||||
},
|
},
|
||||||
"Path": "/Home/IndexWithoutToken"
|
"Path": "/Home/IndexWithoutToken"
|
||||||
},
|
},
|
||||||
"BasicViews.PostWithoutToken": {
|
"BasicViews.PostWithoutToken": {
|
||||||
"ClientProperties": {
|
"ClientProperties": {
|
||||||
"Scripts": "https://raw.githubusercontent.com/aspnet/AspNetCore/master/src/Mvc/benchmarkapps/BasicViews/post.lua"
|
"Scripts": "https://raw.githubusercontent.com/dotnet/aspnetcore/master/src/Mvc/benchmarkapps/BasicViews/post.lua"
|
||||||
},
|
},
|
||||||
"Path": "/Home/IndexWithoutToken"
|
"Path": "/Home/IndexWithoutToken"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -192,7 +192,7 @@ namespace Microsoft.AspNetCore.Mvc
|
||||||
// The build system compiles every file under the resources folder as a resource available at runtime
|
// The build system compiles every file under the resources folder as a resource available at runtime
|
||||||
// with the same name as the file name. Need to update this file on disc.
|
// with the same name as the file name. Need to update this file on disc.
|
||||||
|
|
||||||
// https://github.com/aspnet/AspNetCore/issues/10423
|
// https://github.com/dotnet/aspnetcore/issues/10423
|
||||||
#pragma warning disable 0618
|
#pragma warning disable 0618
|
||||||
var solutionPath = TestPathUtilities.GetSolutionRootDirectory("Mvc");
|
var solutionPath = TestPathUtilities.GetSolutionRootDirectory("Mvc");
|
||||||
#pragma warning restore 0618
|
#pragma warning restore 0618
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@
|
||||||
<TestGroupName>Mvc.FunctionalTests</TestGroupName>
|
<TestGroupName>Mvc.FunctionalTests</TestGroupName>
|
||||||
<!-- The test asset projects this depends on are not strong-named. -->
|
<!-- The test asset projects this depends on are not strong-named. -->
|
||||||
<SignAssembly>false</SignAssembly>
|
<SignAssembly>false</SignAssembly>
|
||||||
<!-- https://github.com/aspnet/AspNetCore/issues/10423 -->
|
<!-- https://github.com/dotnet/aspnetcore/issues/10423 -->
|
||||||
<BuildHelixPayload>false</BuildHelixPayload>
|
<BuildHelixPayload>false</BuildHelixPayload>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -106,7 +106,7 @@ namespace Microsoft.AspNetCore.Mvc.FunctionalTests
|
||||||
[Fact]
|
[Fact]
|
||||||
public async Task AppWithDynamicRouteAndMapRazorPages_CanRouteToRazorPage()
|
public async Task AppWithDynamicRouteAndMapRazorPages_CanRouteToRazorPage()
|
||||||
{
|
{
|
||||||
// Regression test for https://github.com/aspnet/AspNetCore/issues/13996
|
// Regression test for https://github.com/dotnet/aspnetcore/issues/13996
|
||||||
// Arrange
|
// Arrange
|
||||||
var client = Factory.WithWebHostBuilder(b => b.UseStartup<StartupForDynamicAndRazorPages>()).CreateDefaultClient();
|
var client = Factory.WithWebHostBuilder(b => b.UseStartup<StartupForDynamicAndRazorPages>()).CreateDefaultClient();
|
||||||
var url = "/PageWithLinks";
|
var url = "/PageWithLinks";
|
||||||
|
|
@ -123,7 +123,7 @@ namespace Microsoft.AspNetCore.Mvc.FunctionalTests
|
||||||
[Fact]
|
[Fact]
|
||||||
public async Task AppWithDynamicRouteAndMapRazorPages_CanRouteToDynamicController()
|
public async Task AppWithDynamicRouteAndMapRazorPages_CanRouteToDynamicController()
|
||||||
{
|
{
|
||||||
// Regression test for https://github.com/aspnet/AspNetCore/issues/13996
|
// Regression test for https://github.com/dotnet/aspnetcore/issues/13996
|
||||||
// Arrange
|
// Arrange
|
||||||
var client = Factory.WithWebHostBuilder(b => b.UseStartup<StartupForDynamicAndRazorPages>()).CreateDefaultClient();
|
var client = Factory.WithWebHostBuilder(b => b.UseStartup<StartupForDynamicAndRazorPages>()).CreateDefaultClient();
|
||||||
var url = "/de/area%3Dadmin,controller%3Ddynamic,action%3Dindex";
|
var url = "/de/area%3Dadmin,controller%3Ddynamic,action%3Dindex";
|
||||||
|
|
|
||||||
|
|
@ -67,7 +67,7 @@ namespace Microsoft.AspNetCore.Mvc.FunctionalTests
|
||||||
[Fact]
|
[Fact]
|
||||||
public async Task GivesCorrectCallstackForSyncronousCalls()
|
public async Task GivesCorrectCallstackForSyncronousCalls()
|
||||||
{
|
{
|
||||||
// Regression test for https://github.com/aspnet/AspNetCore/issues/15367
|
// Regression test for https://github.com/dotnet/aspnetcore/issues/15367
|
||||||
// Arrange
|
// Arrange
|
||||||
var exception = await Assert.ThrowsAsync<HttpRequestException>(async () => await Client.GetAsync("http://localhost/Home/MyHtml"));
|
var exception = await Assert.ThrowsAsync<HttpRequestException>(async () => await Client.GetAsync("http://localhost/Home/MyHtml"));
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1129,7 +1129,7 @@ namespace Microsoft.AspNetCore.Mvc.IntegrationTests
|
||||||
[Fact]
|
[Fact]
|
||||||
public async Task CollectionModelBinder_CollectionOfSimpleTypes_DoesNotResultInValidationError()
|
public async Task CollectionModelBinder_CollectionOfSimpleTypes_DoesNotResultInValidationError()
|
||||||
{
|
{
|
||||||
// Regression test for https://github.com/aspnet/AspNetCore/issues/13512
|
// Regression test for https://github.com/dotnet/aspnetcore/issues/13512
|
||||||
// Arrange
|
// Arrange
|
||||||
var parameter = new ParameterDescriptor()
|
var parameter = new ParameterDescriptor()
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1830,7 +1830,7 @@ namespace Microsoft.AspNetCore.Mvc.IntegrationTests
|
||||||
Assert.Equal("10", entry.RawValue);
|
Assert.Equal("10", entry.RawValue);
|
||||||
}
|
}
|
||||||
|
|
||||||
[Fact(Skip = "https://github.com/aspnet/AspNetCore/issues/11813")]
|
[Fact(Skip = "https://github.com/dotnet/aspnetcore/issues/11813")]
|
||||||
public async Task MutableObjectModelBinder_BindsKeyValuePairProperty_NoCollectionData()
|
public async Task MutableObjectModelBinder_BindsKeyValuePairProperty_NoCollectionData()
|
||||||
{
|
{
|
||||||
// Arrange
|
// Arrange
|
||||||
|
|
@ -1879,7 +1879,7 @@ namespace Microsoft.AspNetCore.Mvc.IntegrationTests
|
||||||
Assert.Single(entry.Errors);
|
Assert.Single(entry.Errors);
|
||||||
}
|
}
|
||||||
|
|
||||||
[Fact(Skip = "https://github.com/aspnet/AspNetCore/issues/11813")]
|
[Fact(Skip = "https://github.com/dotnet/aspnetcore/issues/11813")]
|
||||||
public async Task MutableObjectModelBinder_BindsKeyValuePairProperty_NoData()
|
public async Task MutableObjectModelBinder_BindsKeyValuePairProperty_NoData()
|
||||||
{
|
{
|
||||||
// Arrange
|
// Arrange
|
||||||
|
|
|
||||||
|
|
@ -1166,7 +1166,7 @@ namespace Microsoft.AspNetCore.Mvc.IntegrationTests
|
||||||
[Fact]
|
[Fact]
|
||||||
public async Task DictionaryModelBinder_DictionaryOfSimpleType_NullValue_DoesNotResultInRequiredValidation()
|
public async Task DictionaryModelBinder_DictionaryOfSimpleType_NullValue_DoesNotResultInRequiredValidation()
|
||||||
{
|
{
|
||||||
// Regression test for https://github.com/aspnet/AspNetCore/issues/13512
|
// Regression test for https://github.com/dotnet/aspnetcore/issues/13512
|
||||||
// Arrange
|
// Arrange
|
||||||
var parameterBinder = ModelBindingTestHelper.GetParameterBinder();
|
var parameterBinder = ModelBindingTestHelper.GetParameterBinder();
|
||||||
var parameter = new ParameterDescriptor()
|
var parameter = new ParameterDescriptor()
|
||||||
|
|
|
||||||
|
|
@ -311,7 +311,7 @@ namespace Microsoft.AspNetCore.Mvc.IntegrationTests
|
||||||
Assert.Equal("10", entry.RawValue);
|
Assert.Equal("10", entry.RawValue);
|
||||||
}
|
}
|
||||||
|
|
||||||
[Fact(Skip = "https://github.com/aspnet/AspNetCore/issues/11813")]
|
[Fact(Skip = "https://github.com/dotnet/aspnetcore/issues/11813")]
|
||||||
public async Task KeyValuePairModelBinder_BindsKeyValuePairOfSimpleType_NoData()
|
public async Task KeyValuePairModelBinder_BindsKeyValuePairOfSimpleType_NoData()
|
||||||
{
|
{
|
||||||
// Arrange
|
// Arrange
|
||||||
|
|
@ -476,7 +476,7 @@ namespace Microsoft.AspNetCore.Mvc.IntegrationTests
|
||||||
Assert.Equal("10", entry.RawValue);
|
Assert.Equal("10", entry.RawValue);
|
||||||
}
|
}
|
||||||
|
|
||||||
[Fact(Skip = "https://github.com/aspnet/AspNetCore/issues/11813")]
|
[Fact(Skip = "https://github.com/dotnet/aspnetcore/issues/11813")]
|
||||||
public async Task KeyValuePairModelBinder_BindsKeyValuePairOfComplexType_NoData()
|
public async Task KeyValuePairModelBinder_BindsKeyValuePairOfComplexType_NoData()
|
||||||
{
|
{
|
||||||
// Arrange
|
// Arrange
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@
|
||||||
},
|
},
|
||||||
"order": 610,
|
"order": 610,
|
||||||
"icon": "icon.png",
|
"icon": "icon.png",
|
||||||
"learnMoreLink": "https://github.com/aspnet/AspNetCore",
|
"learnMoreLink": "https://github.com/dotnet/aspnetcore",
|
||||||
"uiFilters": [
|
"uiFilters": [
|
||||||
"oneaspnet"
|
"oneaspnet"
|
||||||
],
|
],
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ namespace Templates.Test
|
||||||
|
|
||||||
public ProjectFactoryFixture ProjectFactory { get; set; }
|
public ProjectFactoryFixture ProjectFactory { get; set; }
|
||||||
|
|
||||||
[Fact(Skip = "https://github.com/aspnet/AspNetCore/issues/17681")]
|
[Fact(Skip = "https://github.com/dotnet/aspnetcore/issues/17681")]
|
||||||
public async Task BlazorWasmStandaloneTemplate_Works()
|
public async Task BlazorWasmStandaloneTemplate_Works()
|
||||||
{
|
{
|
||||||
var project = await ProjectFactory.GetOrCreateProject("blazorstandalone", Output);
|
var project = await ProjectFactory.GetOrCreateProject("blazorstandalone", Output);
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,7 @@ namespace Templates.Test
|
||||||
var createResult = await Project.RunDotNetNewAsync("web", language: languageOverride);
|
var createResult = await Project.RunDotNetNewAsync("web", language: languageOverride);
|
||||||
Assert.True(0 == createResult.ExitCode, ErrorMessages.GetFailedProcessMessage("create/restore", Project, createResult));
|
Assert.True(0 == createResult.ExitCode, ErrorMessages.GetFailedProcessMessage("create/restore", Project, createResult));
|
||||||
|
|
||||||
// Avoid the F# compiler. See https://github.com/aspnet/AspNetCore/issues/14022
|
// Avoid the F# compiler. See https://github.com/dotnet/aspnetcore/issues/14022
|
||||||
if (languageOverride != null)
|
if (languageOverride != null)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,7 @@ namespace Templates.Test
|
||||||
using (var serverProcess = Project.StartBuiltProjectAsync())
|
using (var serverProcess = Project.StartBuiltProjectAsync())
|
||||||
{
|
{
|
||||||
// These templates are HTTPS + HTTP/2 only which is not supported on Mac due to missing ALPN support.
|
// These templates are HTTPS + HTTP/2 only which is not supported on Mac due to missing ALPN support.
|
||||||
// https://github.com/aspnet/AspNetCore/issues/11061
|
// https://github.com/dotnet/aspnetcore/issues/11061
|
||||||
if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
|
if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
|
||||||
{
|
{
|
||||||
Assert.True(serverProcess.Process.HasExited, "built");
|
Assert.True(serverProcess.Process.HasExited, "built");
|
||||||
|
|
@ -64,7 +64,7 @@ namespace Templates.Test
|
||||||
using (var aspNetProcess = Project.StartPublishedProjectAsync())
|
using (var aspNetProcess = Project.StartPublishedProjectAsync())
|
||||||
{
|
{
|
||||||
// These templates are HTTPS + HTTP/2 only which is not supported on Mac due to missing ALPN support.
|
// These templates are HTTPS + HTTP/2 only which is not supported on Mac due to missing ALPN support.
|
||||||
// https://github.com/aspnet/AspNetCore/issues/11061
|
// https://github.com/dotnet/aspnetcore/issues/11061
|
||||||
if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
|
if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
|
||||||
{
|
{
|
||||||
Assert.True(aspNetProcess.Process.HasExited, "published");
|
Assert.True(aspNetProcess.Process.HasExited, "published");
|
||||||
|
|
|
||||||
|
|
@ -46,7 +46,7 @@ namespace Templates.Test
|
||||||
Assert.DoesNotContain("Microsoft.EntityFrameworkCore.Tools.DotNet", projectFileContents);
|
Assert.DoesNotContain("Microsoft.EntityFrameworkCore.Tools.DotNet", projectFileContents);
|
||||||
Assert.DoesNotContain("Microsoft.Extensions.SecretManager.Tools", projectFileContents);
|
Assert.DoesNotContain("Microsoft.Extensions.SecretManager.Tools", projectFileContents);
|
||||||
|
|
||||||
// Avoid the F# compiler. See https://github.com/aspnet/AspNetCore/issues/14022
|
// Avoid the F# compiler. See https://github.com/dotnet/aspnetcore/issues/14022
|
||||||
if (languageOverride != null)
|
if (languageOverride != null)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@
|
||||||
<SkipTests Condition="'$(RunTemplateTests)' != 'true'">true</SkipTests>
|
<SkipTests Condition="'$(RunTemplateTests)' != 'true'">true</SkipTests>
|
||||||
|
|
||||||
<!-- Tests do not work on Helix or when bin/ directory is not in project directory due to undeclared dependency on test content. -->
|
<!-- Tests do not work on Helix or when bin/ directory is not in project directory due to undeclared dependency on test content. -->
|
||||||
<!-- https://github.com/aspnet/AspNetCore/issues/6857 -->
|
<!-- https://github.com/dotnet/aspnetcore/issues/6857 -->
|
||||||
<BuildHelixPayload>false</BuildHelixPayload>
|
<BuildHelixPayload>false</BuildHelixPayload>
|
||||||
<BaseOutputPath />
|
<BaseOutputPath />
|
||||||
<OutputPath />
|
<OutputPath />
|
||||||
|
|
|
||||||
|
|
@ -35,7 +35,7 @@ namespace Templates.Test
|
||||||
var createResult = await Project.RunDotNetNewAsync("webapi", language: languageOverride);
|
var createResult = await Project.RunDotNetNewAsync("webapi", language: languageOverride);
|
||||||
Assert.True(0 == createResult.ExitCode, ErrorMessages.GetFailedProcessMessage("create/restore", Project, createResult));
|
Assert.True(0 == createResult.ExitCode, ErrorMessages.GetFailedProcessMessage("create/restore", Project, createResult));
|
||||||
|
|
||||||
// Avoid the F# compiler. See https://github.com/aspnet/AspNetCore/issues/14022
|
// Avoid the F# compiler. See https://github.com/dotnet/aspnetcore/issues/14022
|
||||||
if (languageOverride != null)
|
if (languageOverride != null)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
<TargetFramework>$(DefaultNetCoreTargetFramework)</TargetFramework>
|
<TargetFramework>$(DefaultNetCoreTargetFramework)</TargetFramework>
|
||||||
<IsSampleProject>false</IsSampleProject>
|
<IsSampleProject>false</IsSampleProject>
|
||||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||||
<!-- Test asset publishing not working on arm64 https://github.com/aspnet/AspNetCore/issues/11205 -->
|
<!-- Test asset publishing not working on arm64 https://github.com/dotnet/aspnetcore/issues/11205 -->
|
||||||
<SkipHelixArm>true</SkipHelixArm>
|
<SkipHelixArm>true</SkipHelixArm>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ namespace AuthSamples.FunctionalTests
|
||||||
Assert.Equal(HttpStatusCode.OK, response.StatusCode);
|
Assert.Equal(HttpStatusCode.OK, response.StatusCode);
|
||||||
}
|
}
|
||||||
|
|
||||||
[Fact(Skip = "https://github.com/aspnet/AspNetCore/issues/8387")]
|
[Fact(Skip = "https://github.com/dotnet/aspnetcore/issues/8387")]
|
||||||
public async Task MyClaimsRedirectsToLoginPageWhenNotLoggedIn()
|
public async Task MyClaimsRedirectsToLoginPageWhenNotLoggedIn()
|
||||||
{
|
{
|
||||||
// Arrange & Act
|
// Arrange & Act
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ namespace Microsoft.AspNetCore.Server.HttpSys.FunctionalTests
|
||||||
{
|
{
|
||||||
public class Http2Tests
|
public class Http2Tests
|
||||||
{
|
{
|
||||||
[ConditionalFact(Skip = "https://github.com/aspnet/AspNetCore/issues/17420")]
|
[ConditionalFact(Skip = "https://github.com/dotnet/aspnetcore/issues/17420")]
|
||||||
[MinimumOSVersion(OperatingSystems.Windows, WindowsVersions.Win10, SkipReason = "Http2 requires Win10")]
|
[MinimumOSVersion(OperatingSystems.Windows, WindowsVersions.Win10, SkipReason = "Http2 requires Win10")]
|
||||||
[MaximumOSVersion(OperatingSystems.Windows, WindowsVersions.Win10_19H1, SkipReason = "This is last version without GoAway support")]
|
[MaximumOSVersion(OperatingSystems.Windows, WindowsVersions.Win10_19H1, SkipReason = "This is last version without GoAway support")]
|
||||||
public async Task ConnectionClose_NoOSSupport_NoGoAway()
|
public async Task ConnectionClose_NoOSSupport_NoGoAway()
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ namespace Microsoft.AspNetCore.Server.IIS.Performance
|
||||||
public void Setup()
|
public void Setup()
|
||||||
{
|
{
|
||||||
// Deployers do not work in distributed environments
|
// Deployers do not work in distributed environments
|
||||||
// see https://github.com/aspnet/AspNetCore/issues/10268 and https://github.com/dotnet/extensions/issues/1697
|
// see https://github.com/dotnet/aspnetcore/issues/10268 and https://github.com/dotnet/extensions/issues/1697
|
||||||
#pragma warning disable 0618
|
#pragma warning disable 0618
|
||||||
var deploymentParameters = new DeploymentParameters(Path.Combine(TestPathUtilities.GetSolutionRootDirectory("IISIntegration"), "test/testassets/InProcessWebSite"),
|
var deploymentParameters = new DeploymentParameters(Path.Combine(TestPathUtilities.GetSolutionRootDirectory("IISIntegration"), "test/testassets/InProcessWebSite"),
|
||||||
ServerType.IISExpress,
|
ServerType.IISExpress,
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ namespace Microsoft.AspNetCore.Server.IIS.Core
|
||||||
private readonly Pipe _pipe;
|
private readonly Pipe _pipe;
|
||||||
|
|
||||||
// https://github.com/dotnet/corefxlab/issues/1334
|
// https://github.com/dotnet/corefxlab/issues/1334
|
||||||
// https://github.com/aspnet/AspNetCore/issues/8843
|
// https://github.com/dotnet/aspnetcore/issues/8843
|
||||||
// Pipelines don't support multiple awaiters on flush. This is temporary until it does.
|
// Pipelines don't support multiple awaiters on flush. This is temporary until it does.
|
||||||
// _lastFlushTask field should only be get or set under the _flushLock.
|
// _lastFlushTask field should only be get or set under the _flushLock.
|
||||||
private readonly object _flushLock = new object();
|
private readonly object _flushLock = new object();
|
||||||
|
|
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue