forked from darkalfx/requestrr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Requestrr.WebApi.csproj
50 lines (50 loc) · 2.72 KB
/
Requestrr.WebApi.csproj
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
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<TypeScriptCompileBlocked>true</TypeScriptCompileBlocked>
<TypeScriptToolsVersion>Latest</TypeScriptToolsVersion>
<IsPackable>false</IsPackable>
<SpaRoot>ClientApp\</SpaRoot>
<DefaultItemExcludes>$(DefaultItemExcludes);$(SpaRoot)node_modules\**</DefaultItemExcludes>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="5.0.4"/>
<PackageReference Include="Microsoft.AspNetCore.SpaServices.Extensions" Version="5.0.4"/>
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="6.8.0"/>
<PackageReference Include="Microsoft.IdentityModel.Tokens" Version="6.8.0"/>
<PackageReference Include="DSharpPlus" Version="4.2.0-nightly-01008"/>
<PackageReference Include="DSharpPlus.CommandsNext" Version="4.2.0-nightly-01008"/>
<PackageReference Include="DSharpPlus.Interactivity" Version="4.2.0-nightly-01008"/>
<PackageReference Include="DSharpPlus.SlashCommands" Version="4.2.0-nightly-01008"/>
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="3.11.0"/>
</ItemGroup>
<ItemGroup>
<Content Remove="$(SpaRoot)**"/>
<None Remove="$(SpaRoot)**"/>
<None Include="$(SpaRoot)**" Exclude="$(SpaRoot)node_modules\**"/>
</ItemGroup>
<ItemGroup>
<Content Include="*.txt*">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
</ItemGroup>
<Target Name="DebugEnsureNodeEnv" BeforeTargets="Build" Condition=" '$(Configuration)' == 'Debug' And !Exists('$(SpaRoot)node_modules') ">
<Exec Command="node --version" ContinueOnError="true">
<Output TaskParameter="ExitCode" PropertyName="ErrorCode"/>
</Exec>
<Exec WorkingDirectory="$(SpaRoot)" Command="npm install"/>
<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..."/>
</Target>
<Target Name="PublishRunWebpack" AfterTargets="ComputeFilesToPublish">
<Exec WorkingDirectory="$(SpaRoot)" Command="npm run build"/>
<ItemGroup>
<DistFiles Include="$(SpaRoot)build\**; $(SpaRoot)build-ssr\**"/>
<ResolvedFileToPublish Include="@(DistFiles->'%(FullPath)')" Exclude="@(ResolvedFileToPublish)">
<RelativePath>%(DistFiles.Identity)</RelativePath>
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
<ExcludeFromSingleFile>true</ExcludeFromSingleFile>
</ResolvedFileToPublish>
</ItemGroup>
</Target>
</Project>