chore: fix SolutionDir for building (#1011)

This commit is contained in:
Zonciu Liang 2021-01-23 01:15:23 +08:00 committed by GitHub
parent 93b58cbb42
commit 75f01993b1
6 changed files with 8 additions and 18 deletions

6
Directory.Build.props Normal file
View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<Project>
<PropertyGroup Label="BasePath">
<SolutionDir Condition="'$(SolutionDir)'==''">$(MSBuildThisFileDirectory)</SolutionDir>
</PropertyGroup>
</Project>

View File

@ -62,10 +62,6 @@
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All" />
</ItemGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' And '$(SolutionDir)'==''">
<SolutionDir>../</SolutionDir>
</PropertyGroup>
<Target Name="DebugEnsureNodeEnv" BeforeTargets="Build" Condition=" '$(Configuration)' == 'Debug' And !Exists('$(SolutionDir)node_modules') ">
<!-- Ensure Node.js is installed -->
<Exec Command="node --version" ContinueOnError="true">

View File

@ -21,8 +21,8 @@
"url": "https://github.com/ElderJames/ant-design-blazor/issues"
},
"scripts": {
"start": "dotnet watch -p ./site/AntDesign.Docs.Server run",
"start:wasm": "dotnet watch -p ./site/AntDesign.Docs.Wasm run",
"start": "dotnet watch -p ./site/AntDesign.Docs.Server run -f net5",
"start:wasm": "dotnet watch -p ./site/AntDesign.Docs.Wasm run -f net5",
"gulp:components": "gulp --gulpfile ./components/gulpfile.js",
"gulp:docs": "gulp --gulpfile ./site/AntBlazor.Docs/gulpfile.js",
"preinstall": "dotnet tool restore"

View File

@ -11,10 +11,6 @@
<PackageReference Include="Microsoft.AspNetCore.Components.Web.Extensions" Version="5.0.0-preview9.20513.1" />
</ItemGroup>
<PropertyGroup Condition=" '$(SolutionDir)'==''">
<SolutionDir>../../</SolutionDir>
</PropertyGroup>
<ItemGroup>
<Content Include="$(SolutionDir)docs\**" LinkBase="docs" />
</ItemGroup>

View File

@ -8,10 +8,6 @@
<ProjectReference Include="..\AntBlazor.Docs\AntDesign.Docs.csproj" />
</ItemGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' And '$(SolutionDir)'==''">
<SolutionDir>../../</SolutionDir>
</PropertyGroup>
<ItemGroup>
<DocFiles Include="$(SolutionDir)docs\**\*.*"></DocFiles>
</ItemGroup>

View File

@ -21,10 +21,6 @@
<ProjectReference Include="..\AntBlazor.Docs\AntDesign.Docs.csproj" />
</ItemGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' And '$(SolutionDir)'==''">
<SolutionDir>../../</SolutionDir>
</PropertyGroup>
<ItemGroup>
<Content Include="$(SolutionDir)scripts\gh-pages\**" LinkBase="gh-pages" />
</ItemGroup>