Skip to content

Commit 21ef8a8

Browse files
authored
Feature/slnx (#83)
* Added .slnx file * Update github actions to build .slnx * Remove sln file * Remove .NET Core 3.1 target * Try fix build error
1 parent e49022d commit 21ef8a8

File tree

5 files changed

+43
-154
lines changed

5 files changed

+43
-154
lines changed

.github/workflows/dotnetcore.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,28 +21,20 @@ jobs:
2121
uses: actions/setup-dotnet@v1
2222
with:
2323
dotnet-version: '8.0.x'
24-
#include-prerelease: true
2524

2625
- name: Setup .NET 7
2726
uses: actions/setup-dotnet@v1
2827
with:
2928
dotnet-version: '7.0.x'
30-
#include-prerelease: true
31-
# to be used by azure functions
3229

3330
- name: Setup .NET 6
3431
uses: actions/setup-dotnet@v1
3532
with:
3633
dotnet-version: '6.0.x'
3734

38-
- name: Setup .NET Core 3.1
39-
uses: actions/setup-dotnet@v1
40-
with:
41-
dotnet-version: 3.1.404
42-
4335
- name: Install dependencies
4436
run: dotnet restore
4537
- name: Build
46-
run: dotnet build Razor.Templating.Core.sln --configuration Release --no-restore
38+
run: dotnet build --configuration Release --no-restore
4739
- name: Test
4840
run: dotnet test --no-restore --verbosity normal

Razor.Templating.Core.sln

Lines changed: 0 additions & 143 deletions
This file was deleted.

Razor.Templating.Core.slnx

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<Solution>
2+
<Folder Name="/Core/">
3+
<Project Path="src/Razor.Template.Core.PerfBenchmark/Razor.Template.Core.PerfBenchmark.csproj" />
4+
<Project Path="src/Razor.Templating.Core/Razor.Templating.Core.csproj" />
5+
</Folder>
6+
<Folder Name="/Examples/" />
7+
<Folder Name="/Examples/Api/">
8+
<Project Path="examples/Api/ExampleMinApiApp.Net6_0/ExampleMinApiApp.Net6_0.csproj" />
9+
<Project Path="examples/Api/ExampleWebApiApp.Net6_0/ExampleWebApiApp.Net6_0.csproj" />
10+
</Folder>
11+
<Folder Name="/Examples/AzureFunctions/">
12+
<Project Path="examples/AzureFunction/ExampleAzureFunction.Net6.0/ExampleAzureFunction.Net6.0.csproj" />
13+
</Folder>
14+
<Folder Name="/Examples/BlazorServer/">
15+
<Project Path="examples/BlazorServer/ExampleBlazorServerApp/ExampleBlazorServerApp.csproj" />
16+
</Folder>
17+
<Folder Name="/Examples/Console/">
18+
<Project Path="examples/Console/ExampleConsoleApp.Net6_0/ExampleConsoleApp.Net6_0.csproj" />
19+
</Folder>
20+
<Folder Name="/Examples/Desktop/">
21+
<Project Path="examples/Desktop/Example.Windows.Desktop.WPF/Example.Windows.Desktop.WPF.csproj" />
22+
</Folder>
23+
<Folder Name="/Examples/Mvc/">
24+
<Project Path="examples/Mvc/ExampleWebApp.Net6_0/ExampleWebApp.Net6_0.csproj" />
25+
</Folder>
26+
<Folder Name="/Examples/Templates/">
27+
<Project Path="examples/Templates/ExampleAppRazorTemplates/ExampleRazorTemplatesLibrary.csproj" />
28+
</Folder>
29+
<Folder Name="/Examples/WorkerService/">
30+
<Project Path="examples/WorkerService/ExampleWorkerService.Net6_0/ExampleWorkerService.Net6_0.csproj" />
31+
</Folder>
32+
<Folder Name="/Solution Items/">
33+
<File Path=".editorconfig" />
34+
<File Path=".github/workflows/dotnetcore.yml" />
35+
<File Path="LICENSE" />
36+
<File Path="README.md" />
37+
</Folder>
38+
<Folder Name="/Test/">
39+
<Project Path="test/Razor.Templating.Core.Test/Razor.Templating.Core.Test.csproj" />
40+
</Folder>
41+
</Solution>

examples/Templates/ExampleAppRazorTemplates/ExampleRazorTemplatesLibrary.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk.Razor">
22
<PropertyGroup>
3-
<TargetFrameworks>netcoreapp3.1;net5.0;net6.0</TargetFrameworks>
3+
<TargetFrameworks>net6.0</TargetFrameworks>
44
<AddRazorSupportForMvc>true</AddRazorSupportForMvc>
55
<!-- To revert to the old behaviour to produce separate Views assembly in .NET 6 https://github.com/dotnet/aspnetcore/issues/32172#issuecomment-859712936 -->
66
<!--<UseRazorSourceGenerator>false</UseRazorSourceGenerator>-->

test/Razor.Templating.Core.Test/Razor.Templating.Core.Test.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
<ReportGenerator ReportFiles="@(CoverletReport)" TargetDirectory="Reports" ReportTypes="HtmlInline_AzurePipelines;Badges" />
3838
</Target>
3939

40-
4140
<ItemGroup>
4241
<ProjectReference Include="..\..\examples\Mvc\ExampleWebApp.Net6_0\ExampleWebApp.Net6_0.csproj" />
4342
<ProjectReference Include="..\..\examples\Templates\ExampleAppRazorTemplates\ExampleRazorTemplatesLibrary.csproj" />

0 commit comments

Comments
 (0)