This commit is contained in:
parent
4694014a2e
commit
922c120762
|
|
@ -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>
|
||||||
|
|
|
||||||
|
|
@ -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 =>
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue