mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-11-29 18:48:50 +08:00
chore: fix SolutionDir for building (#1011)
This commit is contained in:
parent
93b58cbb42
commit
75f01993b1
6
Directory.Build.props
Normal file
6
Directory.Build.props
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project>
|
||||||
|
<PropertyGroup Label="BasePath">
|
||||||
|
<SolutionDir Condition="'$(SolutionDir)'==''">$(MSBuildThisFileDirectory)</SolutionDir>
|
||||||
|
</PropertyGroup>
|
||||||
|
</Project>
|
@ -62,10 +62,6 @@
|
|||||||
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All" />
|
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' And '$(SolutionDir)'==''">
|
|
||||||
<SolutionDir>../</SolutionDir>
|
|
||||||
</PropertyGroup>
|
|
||||||
|
|
||||||
<Target Name="DebugEnsureNodeEnv" BeforeTargets="Build" Condition=" '$(Configuration)' == 'Debug' And !Exists('$(SolutionDir)node_modules') ">
|
<Target Name="DebugEnsureNodeEnv" BeforeTargets="Build" Condition=" '$(Configuration)' == 'Debug' And !Exists('$(SolutionDir)node_modules') ">
|
||||||
<!-- Ensure Node.js is installed -->
|
<!-- Ensure Node.js is installed -->
|
||||||
<Exec Command="node --version" ContinueOnError="true">
|
<Exec Command="node --version" ContinueOnError="true">
|
||||||
|
@ -21,8 +21,8 @@
|
|||||||
"url": "https://github.com/ElderJames/ant-design-blazor/issues"
|
"url": "https://github.com/ElderJames/ant-design-blazor/issues"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "dotnet watch -p ./site/AntDesign.Docs.Server run",
|
"start": "dotnet watch -p ./site/AntDesign.Docs.Server run -f net5",
|
||||||
"start:wasm": "dotnet watch -p ./site/AntDesign.Docs.Wasm run",
|
"start:wasm": "dotnet watch -p ./site/AntDesign.Docs.Wasm run -f net5",
|
||||||
"gulp:components": "gulp --gulpfile ./components/gulpfile.js",
|
"gulp:components": "gulp --gulpfile ./components/gulpfile.js",
|
||||||
"gulp:docs": "gulp --gulpfile ./site/AntBlazor.Docs/gulpfile.js",
|
"gulp:docs": "gulp --gulpfile ./site/AntBlazor.Docs/gulpfile.js",
|
||||||
"preinstall": "dotnet tool restore"
|
"preinstall": "dotnet tool restore"
|
||||||
|
@ -11,10 +11,6 @@
|
|||||||
<PackageReference Include="Microsoft.AspNetCore.Components.Web.Extensions" Version="5.0.0-preview9.20513.1" />
|
<PackageReference Include="Microsoft.AspNetCore.Components.Web.Extensions" Version="5.0.0-preview9.20513.1" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<PropertyGroup Condition=" '$(SolutionDir)'==''">
|
|
||||||
<SolutionDir>../../</SolutionDir>
|
|
||||||
</PropertyGroup>
|
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Content Include="$(SolutionDir)docs\**" LinkBase="docs" />
|
<Content Include="$(SolutionDir)docs\**" LinkBase="docs" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
@ -8,10 +8,6 @@
|
|||||||
<ProjectReference Include="..\AntBlazor.Docs\AntDesign.Docs.csproj" />
|
<ProjectReference Include="..\AntBlazor.Docs\AntDesign.Docs.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' And '$(SolutionDir)'==''">
|
|
||||||
<SolutionDir>../../</SolutionDir>
|
|
||||||
</PropertyGroup>
|
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<DocFiles Include="$(SolutionDir)docs\**\*.*"></DocFiles>
|
<DocFiles Include="$(SolutionDir)docs\**\*.*"></DocFiles>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
@ -21,10 +21,6 @@
|
|||||||
<ProjectReference Include="..\AntBlazor.Docs\AntDesign.Docs.csproj" />
|
<ProjectReference Include="..\AntBlazor.Docs\AntDesign.Docs.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' And '$(SolutionDir)'==''">
|
|
||||||
<SolutionDir>../../</SolutionDir>
|
|
||||||
</PropertyGroup>
|
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Content Include="$(SolutionDir)scripts\gh-pages\**" LinkBase="gh-pages" />
|
<Content Include="$(SolutionDir)scripts\gh-pages\**" LinkBase="gh-pages" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
Loading…
Reference in New Issue
Block a user