Skip to content
This repository was archived by the owner on Apr 20, 2023. It is now read-only.

Commit c382932

Browse files
author
Nate McMaster
committed
Fix #if to match .csproj constant
1 parent ba68037 commit c382932

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/Microsoft.DotNet.Configurer/Microsoft.DotNet.Configurer.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
<PublicSign Condition=" '$(OS)' != 'Windows_NT' ">true</PublicSign>
1010
<RepositoryType>git</RepositoryType>
1111
<RepositoryUrl>git://github.com/dotnet/cli</RepositoryUrl>
12+
<DefineConstants Condition="'$(IncludeAspNetCoreRuntime)' == 'false'">$(DefineConstants);EXCLUDE_ASPNETCORE</DefineConstants>
1213
</PropertyGroup>
1314

1415
<ItemGroup>
@@ -26,4 +27,4 @@
2627
<ProjectReference Include="..\Microsoft.DotNet.InternalAbstractions\Microsoft.DotNet.InternalAbstractions.csproj" />
2728
<ProjectReference Include="..\Microsoft.DotNet.Cli.Utils\Microsoft.DotNet.Cli.Utils.csproj" />
2829
</ItemGroup>
29-
</Project>
30+
</Project>

src/dotnet/AspNetCoreCertificateGenerator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ public class AspNetCoreCertificateGenerator : IAspNetCoreCertificateGenerator
99
{
1010
public void GenerateAspNetCoreDevelopmentCertificate()
1111
{
12-
#if !EXCLUDE_ASPNET
12+
#if !EXCLUDE_ASPNETCORE
1313
Microsoft.AspNetCore.DeveloperCertificates.XPlat.CertificateGenerator.GenerateAspNetHttpsCertificate();
1414
#endif
1515
}

0 commit comments

Comments
 (0)