chore: fix SolutionDir for building (#1011)
This commit is contained in:
Родитель
93b58cbb42
Коммит
75f01993b1
|
@ -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>
|
||||
|
|
Загрузка…
Ссылка в новой задаче