Skip to content

Commit 8250442

Browse files
Add tests for identity UI (#8351)
1 parent d7a9606 commit 8250442

File tree

5 files changed

+6
-3
lines changed

5 files changed

+6
-3
lines changed

src/Framework/src/Microsoft.AspNetCore.App.Runtime.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ This package is an internal implementation of the .NET Core SDK and is not meant
123123
<IncludeAssets>Runtime;Native</IncludeAssets>
124124
</Reference>
125125

126-
<ProjectReference Condition="'$(BuildIisNativeProjects)' == 'true' AND '$(BuildNative)' != 'false'" Include="$(RepositoryRoot)src\Servers\IIS\AspNetCoreModuleV2\InProcessRequestHandler\InProcessRequestHandler.vcxproj">
126+
<ProjectReference Condition="'$(BuildIisNativeProjects)' == 'true' AND '$(BuildNative)' != 'false' AND '$(VCTargetsPath)' != ''" Include="$(RepositoryRoot)src\Servers\IIS\AspNetCoreModuleV2\InProcessRequestHandler\InProcessRequestHandler.vcxproj">
127127
<SetPlatform>Platform=$(TargetArchitecture)</SetPlatform>
128128
<SetPlatform Condition="'$(TargetArchitecture)' == 'x86'">Platform=Win32</SetPlatform>
129129
<!-- Custom attribute used to distinguish managed from native references. -->

src/ProjectTemplates/Web.ProjectTemplates/StarterWeb-FSharp.fsproj.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<TargetFramework>netcoreapp3.0</TargetFramework>
55
<NoDefaultLaunchSettingsFile Condition="'$(ExcludeLaunchSettings)' == 'True'">True</NoDefaultLaunchSettingsFile>
66
<RootNamespace Condition="'$(name)' != '$(name{-VALUE-FORMS-}safe_namespace)'">Company.WebApplication1</RootNamespace>
7+
<PreserveCompilationReferences>true</PreserveCompilationReferences>
78
</PropertyGroup>
89

910
<ItemGroup>

src/ProjectTemplates/scripts/Run-Razor-Locally.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ param()
66

77
. $PSScriptRoot\Test-Template.ps1
88

9-
Test-Template "webapp" "webapp -au Individual" "Microsoft.DotNet.Web.ProjectTemplates.3.0.3.0.0-alpha1.nupkg" $false
9+
Test-Template "webapp" "webapp -au Individual" "Microsoft.DotNet.Web.ProjectTemplates.3.0.3.0.0-preview4-t000.nupkg" $false

src/ProjectTemplates/test/MvcTemplateTest.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public MvcTemplateTest(ProjectFactoryFixture projectFactory, ITestOutputHelper o
1818

1919
[Theory]
2020
[InlineData(null)]
21-
[InlineData("F#", Skip = "https://github.com/aspnet/Templating/issues/673")]
21+
[InlineData("F#")]
2222
private void MvcTemplate_NoAuthImpl(string languageOverride)
2323
{
2424
Project.RunDotNetNew("mvc", language: languageOverride);
@@ -72,6 +72,7 @@ public void MvcTemplate_IndividualAuthImpl(bool useLocalDB)
7272
using (var aspNetProcess = Project.StartAspNetProcess(publish))
7373
{
7474
aspNetProcess.AssertOk("/");
75+
aspNetProcess.AssertOk("/Identity/Account/Login");
7576
aspNetProcess.AssertOk("/Home/Privacy");
7677
}
7778
}

src/ProjectTemplates/test/RazorPagesTemplateTest.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ public void RazorPagesTemplate_IndividualAuthImpl( bool useLocalDB)
6565
using (var aspNetProcess = Project.StartAspNetProcess(publish))
6666
{
6767
aspNetProcess.AssertOk("/");
68+
aspNetProcess.AssertOk("/Identity/Account/Login");
6869
aspNetProcess.AssertOk("/Privacy");
6970
}
7071
}

0 commit comments

Comments
 (0)