This commit is contained in:
Pranav K 2017-07-05 15:35:11 -07:00
parent 4694014a2e
commit 922c120762
2 changed files with 1 additions and 1 deletions

View File

@ -4,6 +4,7 @@
<TargetFrameworks Condition=" '$(OS)' != 'Windows_NT' ">netcoreapp2.0</TargetFrameworks> <TargetFrameworks Condition=" '$(OS)' != 'Windows_NT' ">netcoreapp2.0</TargetFrameworks>
<RuntimeIdentifier Condition="!$(TargetFramework.StartsWith('netcoreapp'))">win7-x64</RuntimeIdentifier> <RuntimeIdentifier Condition="!$(TargetFramework.StartsWith('netcoreapp'))">win7-x64</RuntimeIdentifier>
<MvcRazorCompileOnPublish>true</MvcRazorCompileOnPublish> <MvcRazorCompileOnPublish>true</MvcRazorCompileOnPublish>
<DefineConstants>$(DefineConstants);TEST123</DefineConstants>
</PropertyGroup> </PropertyGroup>
<Import Project="..\..\build\common-testapps.props" /> <Import Project="..\..\build\common-testapps.props" />
<ItemGroup> <ItemGroup>

View File

@ -29,7 +29,6 @@ namespace ApplicationWithConfigureStartup
{ {
builder.AddRazorOptions(options => builder.AddRazorOptions(options =>
{ {
options.ParseOptions = options.ParseOptions.WithPreprocessorSymbols(new[] { "TEST123" });
var callback = options.CompilationCallback; var callback = options.CompilationCallback;
options.CompilationCallback = context => options.CompilationCallback = context =>
{ {