-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBlazorSlider.csproj
More file actions
30 lines (27 loc) · 1.41 KB
/
BlazorSlider.csproj
File metadata and controls
30 lines (27 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net9.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<NodeModulesDir>$(ProjectDir)node_modules\</NodeModulesDir>
<WwwRootDir>$(ProjectDir)wwwroot\</WwwRootDir>
</PropertyGroup>
<Target Name="DebugEnsureNodeEnv" BeforeTargets="BeforeBuild" Condition=" '$(Configuration)' == 'Debug' ">
<!-- Ensure Node.js is installed -->
<Exec Command="node --version" ContinueOnError="true">
<Output TaskParameter="ExitCode" PropertyName="ErrorCode" />
</Exec>
<Error Condition="'$(ErrorCode)' != '0'" Text="Node.js is required to build and run this project. To continue, please install Node.js from https://nodejs.org/, and then restart your command prompt or IDE." />
<Message Importance="high" Text="Restoring dependencies using 'npm'. This may take several minutes..." />
<Exec WorkingDirectory="$(SpaRoot)" Command="npm install" />
</Target>
<Target Name="CopyFilesFromNodeModules" BeforeTargets="Build">
<ItemGroup>
<StyleFiles Include="$(NodeModulesDir)devextreme-dist\css\dx.fluent.blue.light.css" />
</ItemGroup>
<Copy SourceFiles="@(StyleFiles)" DestinationFolder="$(WwwRootDir)css\%(RecursiveDir)" SkipUnchangedFiles="true" />
</Target>
<ItemGroup>
<PackageReference Include="DevExpress.Blazor" Version="25.2.*" />
</ItemGroup>
</Project>