This commit is contained in:
parent
4694014a2e
commit
922c120762
|
|
@ -4,6 +4,7 @@
|
|||
<TargetFrameworks Condition=" '$(OS)' != 'Windows_NT' ">netcoreapp2.0</TargetFrameworks>
|
||||
<RuntimeIdentifier Condition="!$(TargetFramework.StartsWith('netcoreapp'))">win7-x64</RuntimeIdentifier>
|
||||
<MvcRazorCompileOnPublish>true</MvcRazorCompileOnPublish>
|
||||
<DefineConstants>$(DefineConstants);TEST123</DefineConstants>
|
||||
</PropertyGroup>
|
||||
<Import Project="..\..\build\common-testapps.props" />
|
||||
<ItemGroup>
|
||||
|
|
|
|||
|
|
@ -29,7 +29,6 @@ namespace ApplicationWithConfigureStartup
|
|||
{
|
||||
builder.AddRazorOptions(options =>
|
||||
{
|
||||
options.ParseOptions = options.ParseOptions.WithPreprocessorSymbols(new[] { "TEST123" });
|
||||
var callback = options.CompilationCallback;
|
||||
options.CompilationCallback = context =>
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue