Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/actions/run-qunit-tests/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,9 @@ runs:
run: pnpm install

- name: Build dotnet
working-directory: ./packages/devextreme
working-directory: ./packages/devextreme/testing/runner
shell: bash
run: dotnet build build/build-dotnet.sln
run: dotnet build -c Release

- name: Run QUnit tests
working-directory: ./packages/devextreme
Expand Down
7 changes: 6 additions & 1 deletion packages/devextreme/testing/runner/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,12 @@ public static int Main(string[] argv)
.AddViews()
.AddRazorViewEngine()
.AddNewtonsoftJson(options => options.SerializerSettings.ContractResolver = new DefaultContractResolver());
services.AddMvc(options => options.EnableEndpointRouting = false).AddRazorRuntimeCompilation();
services.AddMvc(options => options.EnableEndpointRouting = false)
#if DEBUG
.AddRazorRuntimeCompilation();
#else
;
#endif
services.AddWebEncoders();

services.Configure<RazorViewEngineOptions>(options => options.ViewLocationExpanders.Add(new ViewLocationExpander()));
Expand Down
14 changes: 9 additions & 5 deletions packages/devextreme/testing/runner/runner.csproj
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk.Web" ToolsVersion="15.0">

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="6.0.27" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation" Version="6.0.27" />
</ItemGroup>

<PropertyGroup>
<TargetFramework>net6</TargetFramework>
<PreserveCompilationContext>true</PreserveCompilationContext>
Expand All @@ -16,4 +11,13 @@
<RazorCompileToolset>PrecompilationTool</RazorCompileToolset>
</PropertyGroup>

<ItemGroup Condition="'$(Configuration)' == 'Debug'">
<PackageReference Include="Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation" Version="6.0.27" />
</ItemGroup>

<!-- <ItemGroup Condition="'$(Configuration)' == 'Release'"> -->
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="6.0.27" />
</ItemGroup>

</Project>
Loading