feat(sdk): add Razor SDK
This commit is contained in:
parent
cf08e29397
commit
c29748ff2b
6 changed files with 43 additions and 0 deletions
|
|
@ -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>
|
||||||
|
|
|
||||||
19
src/sdk/Geekeey.Arcade.NET.Sdk.Razor.csproj
Normal file
19
src/sdk/Geekeey.Arcade.NET.Sdk.Razor.csproj
Normal 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>
|
||||||
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,3 @@
|
||||||
|
# global_level must be higher than the base editorconfig files
|
||||||
|
is_global = true
|
||||||
|
global_level = 1
|
||||||
16
src/sdk/Sdk/Geekeey.Arcade.NET.Sdk.Razor/Sdk.props
Normal file
16
src/sdk/Sdk/Geekeey.Arcade.NET.Sdk.Razor/Sdk.props
Normal 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>
|
||||||
3
src/sdk/Sdk/Geekeey.Arcade.NET.Sdk.Razor/Sdk.targets
Normal file
3
src/sdk/Sdk/Geekeey.Arcade.NET.Sdk.Razor/Sdk.targets
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
<Project>
|
||||||
|
<Import Project="Sdk.targets" Sdk="Microsoft.NET.Sdk.Razor" Condition="'$(UsingMicrosoftNETSdk)' == 'true'" />
|
||||||
|
</Project>
|
||||||
Loading…
Reference in a new issue