-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbackendangular.csproj
More file actions
127 lines (114 loc) · 5.72 KB
/
backendangular.csproj
File metadata and controls
127 lines (114 loc) · 5.72 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<Project Sdk="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>
<!-- Set this to true if you enable server-side prerendering -->
<BuildServerSideRenderer>false</BuildServerSideRenderer>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.SpaServices.Extensions" Version="3.1.3" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
<PackageReference Include="TXTextControl.Web" Version="28.0.802.500" />
</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>
<ItemGroup>
<None Remove="licenses.licx" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="licenses.licx" />
</ItemGroup>
<ItemGroup>
<Reference Include="TXDocumentServer">
<HintPath>..\..\..\..\..\..\Program Files\Text Control GmbH\TX Text Control 28.0.NET Server for ASP.NET\Assembly\TXDocumentServer.dll</HintPath>
</Reference>
<Reference Include="txic">
<HintPath>..\..\..\..\..\..\Program Files\Text Control GmbH\TX Text Control 28.0.NET Server for ASP.NET\Assembly\bin64\txic.dll</HintPath>
</Reference>
<Reference Include="txkernel">
<HintPath>..\..\..\..\..\..\Program Files\Text Control GmbH\TX Text Control 28.0.NET Server for ASP.NET\Assembly\bin64\txkernel.dll</HintPath>
</Reference>
<Reference Include="txpdf">
<HintPath>..\..\..\..\..\..\Program Files\Text Control GmbH\TX Text Control 28.0.NET Server for ASP.NET\Assembly\bin64\txpdf.dll</HintPath>
</Reference>
<Reference Include="TXTextControl">
<HintPath>..\..\..\..\..\..\Program Files\Text Control GmbH\TX Text Control 28.0.NET Server for ASP.NET\Assembly\TXTextControl.dll</HintPath>
</Reference>
<Reference Include="TXTextControl.Server">
<HintPath>..\..\..\..\..\..\Program Files\Text Control GmbH\TX Text Control 28.0.NET Server for ASP.NET\Assembly\TXTextControl.Server.dll</HintPath>
</Reference>
<Reference Include="txtools">
<HintPath>..\..\..\..\..\..\Program Files\Text Control GmbH\TX Text Control 28.0.NET Server for ASP.NET\Assembly\bin64\txtools.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<None Update="tx28_css.dll">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="tx28_doc.dll">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="tx28_dox.dll">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="tx28_htm.dll">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="tx28_pdf.dll">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="tx28_rtf.dll">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="tx28_xlx.dll">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="tx28_xml.dll">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</ItemGroup>
<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="WorkaroundMSBuild2836" BeforeTargets="CompileLicxFiles">
<PropertyGroup>
<_OriginalTargetFrameworkVersion>$(TargetFrameworkVersion)</_OriginalTargetFrameworkVersion>
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
</PropertyGroup>
</Target>
<Target Name="UndoWorkaroundMSBuild2836" AfterTargets="CompileLicxFiles">
<PropertyGroup>
<TargetFrameworkVersion>$(_OriginalTargetFrameworkVersion)</TargetFrameworkVersion>
</PropertyGroup>
</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 -- --prod" />
<Exec WorkingDirectory="$(SpaRoot)" Command="npm run build:ssr -- --prod" Condition=" '$(BuildServerSideRenderer)' == 'true' " />
<!-- Include the newly-built files in the publish output -->
<ItemGroup>
<DistFiles Include="$(SpaRoot)dist\**; $(SpaRoot)dist-server\**" />
<DistFiles Include="$(SpaRoot)node_modules\**" Condition="'$(BuildServerSideRenderer)' == 'true'" />
<ResolvedFileToPublish Include="@(DistFiles->'%(FullPath)')" Exclude="@(ResolvedFileToPublish)">
<RelativePath>%(DistFiles.Identity)</RelativePath>
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
<ExcludeFromSingleFile>true</ExcludeFromSingleFile>
</ResolvedFileToPublish>
</ItemGroup>
</Target>
</Project>