chore: fix SolutionDir for building (#1011)

This commit is contained in:
Zonciu Liang 2021-01-23 01:15:23 +08:00 коммит произвёл GitHub
Родитель 93b58cbb42
Коммит 75f01993b1
6 изменённых файлов: 8 добавлений и 18 удалений

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" />
</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">

Просмотреть файл

@ -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"

Просмотреть файл

@ -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>

Просмотреть файл

@ -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>

Просмотреть файл

@ -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>