feat(sdk): add Razor SDK

This commit is contained in:
Louis Seubert 2026-10-20 20:07:52 +02:00
commit c29748ff2b
Signed by: louis9902
GPG key ID: 4B9DB28F826553BD
6 changed files with 43 additions and 0 deletions

View file

@ -1,5 +1,6 @@
<Solution> <Solution>
<Project Path="src/sdk/Geekeey.Arcade.NET.Sdk.csproj" /> <Project Path="src/sdk/Geekeey.Arcade.NET.Sdk.csproj" />
<Project Path="src/sdk/Geekeey.Arcade.NET.Sdk.Razor.csproj" />
<Project Path="src/sdk/Geekeey.Arcade.NET.Sdk.Test.csproj" /> <Project Path="src/sdk/Geekeey.Arcade.NET.Sdk.Test.csproj" />
<Project Path="src/sdk/Geekeey.Arcade.NET.Sdk.Web.csproj" /> <Project Path="src/sdk/Geekeey.Arcade.NET.Sdk.Web.csproj" />
</Solution> </Solution>

View file

@ -0,0 +1,19 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<NoBuild>true</NoBuild>
<IncludeBuildOutput>false</IncludeBuildOutput>
<SuppressDependenciesWhenPacking>true</SuppressDependenciesWhenPacking>
<IncludeSymbols>false</IncludeSymbols>
<Description>MSBuild SDK for Razor class library and Blazor projects with standardized build, analyzer, and editor configuration defaults.</Description>
</PropertyGroup>
<ItemGroup>
<None Include="Sdk/Geekeey.Arcade.NET.Sdk.Razor/Sdk.props" Pack="true" PackagePath="Sdk/Sdk.props" />
<None Include="Sdk/Geekeey.Arcade.NET.Sdk.Razor/Sdk.targets" Pack="true" PackagePath="Sdk/Sdk.targets" />
<None Include="Sdk/Geekeey.Arcade.NET.Sdk.Razor/Geekeey.Arcade.NET.Sdk.Razor.editorconfig" Pack="true" PackagePath="configuration/Geekeey.Arcade.NET.Sdk.Razor.editorconfig" />
<None Include="common/Common.props" Pack="true" PackagePath="common/Common.props" />
<None Include="common/Common.targets" Pack="true" PackagePath="common/Common.targets" />
<None Include="configuration/**/*" Pack="true" PackagePath="configuration/%(RecursiveDir)%(Filename)%(Extension)" />
</ItemGroup>
</Project>

View file

@ -3,6 +3,7 @@
Opinionated MSBuild SDKs for .NET projects with standardized build, analyzer, and editor configuration defaults: Opinionated MSBuild SDKs for .NET projects with standardized build, analyzer, and editor configuration defaults:
- `Geekeey.Arcade.NET.Sdk` — base SDK - `Geekeey.Arcade.NET.Sdk` — base SDK
- `Geekeey.Arcade.NET.Sdk.Razor` — Razor class library and Blazor projects
- `Geekeey.Arcade.NET.Sdk.Web` — ASP.NET Core web projects - `Geekeey.Arcade.NET.Sdk.Web` — ASP.NET Core web projects
- `Geekeey.Arcade.NET.Sdk.Test` — test projects - `Geekeey.Arcade.NET.Sdk.Test` — test projects

View file

@ -0,0 +1,3 @@
# global_level must be higher than the base editorconfig files
is_global = true
global_level = 1

View file

@ -0,0 +1,16 @@
<Project>
<PropertyGroup>
<UsingMicrosoftNETSdk Condition="'$(UsingMicrosoftNETSdk)' == ''">true</UsingMicrosoftNETSdk>
<CustomBeforeDirectoryBuildProps>$(CustomBeforeDirectoryBuildProps);$(MSBuildThisFileDirectory)../common/Common.props</CustomBeforeDirectoryBuildProps>
<BeforeMicrosoftNETSdkTargets>$(BeforeMicrosoftNETSdkTargets);$(MSBuildThisFileDirectory)/../common/Common.targets</BeforeMicrosoftNETSdkTargets>
</PropertyGroup>
<Import Project="Sdk.props" Sdk="Microsoft.NET.Sdk.Razor" Condition="'$(UsingMicrosoftNETSdk)' == 'true'" />
<Import Project="$(MSBuildThisFileDirectory)../common/Common.props" Condition="'$(UsingMicrosoftNETSdk)' != 'true'" />
<ItemGroup>
<EditorConfigFiles Include="$(MSBuildThisFileDirectory)../configuration/Geekeey.Arcade.NET.Sdk.Razor.editorconfig" />
<EditorConfigFiles Include="$(MSBuildThisFileDirectory)../configuration/Geekeey.Arcade.NET.FileBasedProgram.editorconfig" Condition="'$(FileBasedProgram)' == 'true'" />
</ItemGroup>
</Project>

View file

@ -0,0 +1,3 @@
<Project>
<Import Project="Sdk.targets" Sdk="Microsoft.NET.Sdk.Razor" Condition="'$(UsingMicrosoftNETSdk)' == 'true'" />
</Project>