123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- <Project Sdk="Microsoft.NET.Sdk.Web">
-
- <PropertyGroup>
- <TargetFramework>net6.0</TargetFramework>
- <Nullable>enable</Nullable>
- <ImplicitUsings>enable</ImplicitUsings>
- </PropertyGroup>
- <!--
- 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://docs.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>
-
- <ItemGroup>
- <PackageReference Include="AutoMapper" Version="10.1.1" />
- <PackageReference Include="AutoMapper.Extensions.Microsoft.DependencyInjection" Version="8.1.1" />
- <PackageReference Include="iTextSharp" Version="5.5.13.2" />
- <PackageReference Include="MediatR" Version="9.0.0" />
- <PackageReference Include="MediatR.Extensions.Microsoft.DependencyInjection" Version="9.0.0" />
- <PackageReference Include="Microsoft.AspNet.WebApi.Core" Version="5.2.7" />
- <PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="6.0.0" />
- <PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="6.0.0" />
- <PackageReference Include="Microsoft.Build.Tasks.Core" Version="17.0.0" />
- <PackageReference Include="Microsoft.EntityFrameworkCore" Version="6.0.0" />
- <PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="6.0.0" />
- <PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="6.0.0" />
- <PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="6.0.0">
- <PrivateAssets>all</PrivateAssets>
- <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
- </PackageReference>
- <PackageReference Include="PuppeteerSharp" Version="5.1.0" />
- <PackageReference Include="Swashbuckle.AspNetCore" Version="6.2.3" />
- </ItemGroup>
-
- </Project>
|