2019-06-07 11:34:09 +00:00
<Project Sdk= "Microsoft.NET.Sdk.Web" >
2019-05-15 14:56:09 +00:00
<PropertyGroup >
<TargetFramework > netcoreapp3.0</TargetFramework>
<TypeScriptCompileBlocked > true</TypeScriptCompileBlocked>
<TypeScriptToolsVersion > Latest</TypeScriptToolsVersion>
<IsPackable > false</IsPackable>
<SpaRoot > ClientApp\</SpaRoot>
<DefaultItemExcludes > $(DefaultItemExcludes);$(SpaRoot)node_modules\**</DefaultItemExcludes>
<AddRazorSupportForMvc > true</AddRazorSupportForMvc>
2019-06-10 16:15:34 +00:00
<AssemblyTitle > ASC.People</AssemblyTitle>
<Company > Ascensio System SIA</Company>
<Product > ASC.People</Product>
<Copyright > (c) Ascensio System SIA. All rights reserved</Copyright>
2019-05-15 14:56:09 +00:00
</PropertyGroup>
2019-05-29 15:19:36 +00:00
<PropertyGroup Condition= "'$(Configuration)|$(Platform)'=='Debug|AnyCPU'" >
<Optimize > false</Optimize>
</PropertyGroup>
2019-05-15 14:56:09 +00:00
<ItemGroup >
<PackageReference Include= "Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version= "3.0.0-preview4-19216-03" />
<PackageReference Include= "Microsoft.AspNetCore.SpaServices.Extensions" Version= "3.0.0-preview4-19216-03" />
</ItemGroup>
<ItemGroup >
<!-- Don't publish the SPA source files, but do show them in the project files list -->
<Content Remove= "$(SpaRoot)**" />
<None Remove= "$(SpaRoot)**" />
<None Include= "$(SpaRoot)**" Exclude= "$(SpaRoot)node_modules\**" />
</ItemGroup>
2019-06-10 16:15:34 +00:00
2019-05-29 14:44:37 +00:00
<ItemGroup >
<ProjectReference Include= "..\..\common\ASC.Api.Core\ASC.Api.Core.csproj" />
2019-06-21 10:42:16 +00:00
<ProjectReference Include= "..\..\common\ASC.Data.Reassigns\ASC.Data.Reassigns.csproj" />
2019-06-14 16:14:24 +00:00
<ProjectReference Include= "..\..\common\ASC.MessagingSystem\ASC.MessagingSystem.csproj" />
2019-06-07 11:34:09 +00:00
<ProjectReference Include= "..\..\web\ASC.Web.Core\ASC.Web.Core.csproj" />
2019-05-29 14:44:37 +00:00
</ItemGroup>
2019-05-15 14:56:09 +00:00
<Target Name= "DebugEnsureNodeEnv" BeforeTargets= "Build" Condition= " '$(Configuration)' == 'Debug' And !Exists('$(SpaRoot)node_modules') " >
<!-- 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= "PublishRunWebpack" AfterTargets= "ComputeFilesToPublish" >
<!-- As part of publishing, ensure the JS resources are freshly built in production mode -->
<Exec WorkingDirectory= "$(SpaRoot)" Command= "npm install" />
<Exec WorkingDirectory= "$(SpaRoot)" Command= "npm run build" />
<!-- Include the newly - built files in the publish output -->
<ItemGroup >
<DistFiles Include= "$(SpaRoot)build\**" />
<ResolvedFileToPublish Include= "@(DistFiles->'%(FullPath)')" Exclude= "@(ResolvedFileToPublish)" >
<RelativePath > %(DistFiles.Identity)</RelativePath>
<CopyToPublishDirectory > PreserveNewest</CopyToPublishDirectory>
</ResolvedFileToPublish>
</ItemGroup>
</Target>
</Project>