<ProjectSdk="Microsoft.NET.Sdk.Web"><PropertyGroup><TargetFramework>netcoreapp3.1</TargetFramework><TypeScriptCompileBlocked>true</TypeScriptCompileBlocked><TypeScriptToolsVersion>Latest</TypeScriptToolsVersion><IsPackable>false</IsPackable><SpaRoot>ClientApp\</SpaRoot><DefaultItemExcludes>$(DefaultItemExcludes);$(SpaRoot)node_modules\**</DefaultItemExcludes><UserSecretsId>51383834-1ce9-4417-a300-fd6892ee992e</UserSecretsId></PropertyGroup><ItemGroup><PackageReferenceInclude="Microsoft.AspNetCore.SpaServices.Extensions"Version="3.1.9" /><PackageReferenceInclude="Microsoft.AspNetCore.ApiAuthorization.IdentityServer"Version="3.1.9" /><PackageReferenceInclude="Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore"Version="3.1.9" /><PackageReferenceInclude="Microsoft.AspNetCore.Identity.EntityFrameworkCore"Version="3.1.9" /><PackageReferenceInclude="Microsoft.AspNetCore.Identity.UI"Version="3.1.9" /><PackageReferenceInclude="Microsoft.EntityFrameworkCore"Version="3.1.9" /><PackageReferenceInclude="Microsoft.EntityFrameworkCore.InMemory"Version="3.1.9" /><PackageReferenceInclude="Microsoft.EntityFrameworkCore.Relational"Version="3.1.9" /><PackageReferenceInclude="Microsoft.EntityFrameworkCore.SqlServer"Version="3.1.9" /><PackageReferenceInclude="Microsoft.EntityFrameworkCore.Tools"Version="3.1.9" /><PackageReferenceInclude="Microsoft.VisualStudio.Web.CodeGeneration.Design"Version="3.1.4" /></ItemGroup><ItemGroup><!-- Don't publish the SPA source files, but do show them in the project files list --><ContentRemove="$(SpaRoot)**" /><NoneRemove="$(SpaRoot)**" /><NoneInclude="$(SpaRoot)**"Exclude="$(SpaRoot)node_modules\**" /></ItemGroup><ItemGroup><ProjectReferenceInclude="..\WebFileServ.Model.BLL\WebFileServ.Model.BLL.csproj" /><ProjectReferenceInclude="..\WebFileServ.Model.DAL\WebFileServ.Model.DAL.csproj" /><ProjectReferenceInclude="..\WebFileServ.Model.DI\WebFileServ.Model.DI.csproj" /><ProjectReferenceInclude="..\WebFileServ.Model.Entities\WebFileServ.Model.Entities.csproj" /></ItemGroup><TargetName="DebugEnsureNodeEnv"BeforeTargets="Build"Condition=" '$(Configuration)' == 'Debug' And !Exists('$(SpaRoot)node_modules') "><!-- Ensure Node.js is installed --><ExecCommand="node --version"ContinueOnError="true"><OutputTaskParameter="ExitCode"PropertyName="ErrorCode" /></Exec><ErrorCondition="'$(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." /><MessageImportance="high"Text="Restoring dependencies using 'npm'. This may take several minutes..." /><ExecWorkingDirectory="$(SpaRoot)"Command="npm install" /></Target><TargetName="PublishRunWebpack"AfterTargets="ComputeFilesToPublish"><!-- As part of publishing, ensure the JS resources are freshly built in production mode --><ExecWorkingDirectory="$(SpaRoot)"Command="npm install" /><ExecWorkingDirectory="$(SpaRoot)"Command="npm run build" /><!-- Include the newly-built files in the publish output --><ItemGroup><DistFilesInclude="$(SpaRoot)build\**" /><ResolvedFileToPublishInclude="@(DistFiles->'%(FullPath)')"Exclude="@(ResolvedFileToPublish)"><RelativePath>%(DistFiles.Identity)</RelativePath><CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory><ExcludeFromSingleFile>true</ExcludeFromSingleFile></ResolvedFileToPublish></ItemGroup></Target></Project>