Fix #if to match .csproj constant

This commit is contained in:
Nate McMaster 2018-05-01 12:41:38 -07:00
parent ba68037ee6
commit c382932ec4
No known key found for this signature in database
GPG key ID: A778D9601BD78810
2 changed files with 3 additions and 2 deletions

View file

@ -9,6 +9,7 @@
<PublicSign Condition=" '$(OS)' != 'Windows_NT' ">true</PublicSign> <PublicSign Condition=" '$(OS)' != 'Windows_NT' ">true</PublicSign>
<RepositoryType>git</RepositoryType> <RepositoryType>git</RepositoryType>
<RepositoryUrl>git://github.com/dotnet/cli</RepositoryUrl> <RepositoryUrl>git://github.com/dotnet/cli</RepositoryUrl>
<DefineConstants Condition="'$(IncludeAspNetCoreRuntime)' == 'false'">$(DefineConstants);EXCLUDE_ASPNETCORE</DefineConstants>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
@ -26,4 +27,4 @@
<ProjectReference Include="..\Microsoft.DotNet.InternalAbstractions\Microsoft.DotNet.InternalAbstractions.csproj" /> <ProjectReference Include="..\Microsoft.DotNet.InternalAbstractions\Microsoft.DotNet.InternalAbstractions.csproj" />
<ProjectReference Include="..\Microsoft.DotNet.Cli.Utils\Microsoft.DotNet.Cli.Utils.csproj" /> <ProjectReference Include="..\Microsoft.DotNet.Cli.Utils\Microsoft.DotNet.Cli.Utils.csproj" />
</ItemGroup> </ItemGroup>
</Project> </Project>

View file

@ -9,7 +9,7 @@ namespace Microsoft.DotNet.Cli
{ {
public void GenerateAspNetCoreDevelopmentCertificate() public void GenerateAspNetCoreDevelopmentCertificate()
{ {
#if !EXCLUDE_ASPNET #if !EXCLUDE_ASPNETCORE
Microsoft.AspNetCore.DeveloperCertificates.XPlat.CertificateGenerator.GenerateAspNetHttpsCertificate(); Microsoft.AspNetCore.DeveloperCertificates.XPlat.CertificateGenerator.GenerateAspNetHttpsCertificate();
#endif #endif
} }