2022-12-13 20:49:38 +00:00
|
|
|
<Project Sdk="Microsoft.NET.Sdk.Razor">
|
|
|
|
|
|
|
|
|
|
<Import Project="..\..\..\common.props" />
|
|
|
|
|
<Import Project="..\..\..\configureawait.props" />
|
|
|
|
|
|
|
|
|
|
<PropertyGroup>
|
2022-12-22 14:40:31 +00:00
|
|
|
<TargetFrameworks>net6.0;net7.0</TargetFrameworks>
|
2022-12-13 20:49:38 +00:00
|
|
|
<Description>
|
|
|
|
|
Provides Razor components to render the workflows designer in ASP.NET applications.
|
|
|
|
|
</Description>
|
|
|
|
|
<PackageTags>elsa module workflows razor designer</PackageTags>
|
2022-12-20 11:47:41 +00:00
|
|
|
<StaticWebAssetsEnabled>true</StaticWebAssetsEnabled>
|
2022-12-20 12:01:54 +00:00
|
|
|
<ContentTargetFolders>staticwebassets</ContentTargetFolders>
|
2022-12-13 20:49:38 +00:00
|
|
|
</PropertyGroup>
|
2022-12-20 11:03:55 +00:00
|
|
|
|
2022-12-13 20:49:38 +00:00
|
|
|
|
2022-12-19 10:29:43 +00:00
|
|
|
<!--
|
|
|
|
|
1. Install npm packages
|
|
|
|
|
"Inputs" and "Outputs" are used for incremental builds. If all output items are up-to-date, MSBuild skips the target.
|
|
|
|
|
The first time the task is executed. Then, it only runs when you change the package.json file.
|
|
|
|
|
Documentation: https://learn.microsoft.com/en-us/visualstudio/msbuild/incremental-builds?WT.mc_id=DT-MVP-5003978
|
|
|
|
|
-->
|
|
|
|
|
<Target Name="NpmInstall" Inputs="package.json" Outputs="node_modules/.install-stamp">
|
|
|
|
|
<!--
|
|
|
|
|
Use npm install or npm ci depending on RestorePackagesWithLockFile value.
|
|
|
|
|
Uncomment the following lines if you want to use this feature:
|
|
|
|
|
-->
|
|
|
|
|
<PropertyGroup>
|
|
|
|
|
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
|
|
|
|
|
</PropertyGroup>
|
|
|
|
|
|
|
|
|
|
<Exec Command="npm ci" Condition="'$(RestorePackagesWithLockFile)' == 'true'" />
|
|
|
|
|
<Exec Command="npm install" Condition="'$(RestorePackagesWithLockFile)' != 'true'" />
|
|
|
|
|
|
|
|
|
|
<!-- Write the stamp file, so incremental builds work -->
|
|
|
|
|
<Touch Files="node_modules/.install-stamp" AlwaysCreate="true" />
|
|
|
|
|
</Target>
|
|
|
|
|
|
|
|
|
|
<!--
|
|
|
|
|
2. Run npm run build before building the .NET project.
|
|
|
|
|
MSBuild runs NpmInstall before this task because of the DependsOnTargets attribute.
|
|
|
|
|
-->
|
|
|
|
|
<Target Name="NpmRunBuild" DependsOnTargets="NpmInstall" BeforeTargets="BeforeBuild">
|
|
|
|
|
<Exec Command="npm run build" />
|
|
|
|
|
</Target>
|
|
|
|
|
|
2022-12-13 20:49:38 +00:00
|
|
|
<ItemGroup>
|
|
|
|
|
<SupportedPlatform Include="browser" />
|
|
|
|
|
</ItemGroup>
|
|
|
|
|
|
|
|
|
|
<ItemGroup>
|
|
|
|
|
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="6.0.10" />
|
|
|
|
|
<PackageReference Include="Microsoft.Extensions.Options" Version="6.0.0" />
|
|
|
|
|
<PackageReference Include="System.Text.Json" Version="6.0.2" />
|
|
|
|
|
</ItemGroup>
|
|
|
|
|
|
|
|
|
|
<ItemGroup>
|
|
|
|
|
<ProjectReference Include="..\..\common\Elsa.Features\Elsa.Features.csproj" />
|
|
|
|
|
</ItemGroup>
|
|
|
|
|
|
2022-12-19 10:29:43 +00:00
|
|
|
<ItemGroup>
|
2022-12-20 10:33:31 +00:00
|
|
|
<Folder Include="wwwroot" />
|
2022-12-19 10:29:43 +00:00
|
|
|
</ItemGroup>
|
|
|
|
|
|
2022-12-13 20:49:38 +00:00
|
|
|
</Project>
|