-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGSI.Web.csproj
87 lines (87 loc) · 5.73 KB
/
GSI.Web.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
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
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>netcoreapp2.0</TargetFramework>
<PreserveCompilationContext>true</PreserveCompilationContext>
<AssemblyName>GSI.Web</AssemblyName>
<TypeScriptCompileBlocked>true</TypeScriptCompileBlocked>
<DotNetSergen>dotnet sergen</DotNetSergen>
<DotNetSergen Condition=" '$(TargetFramework)' == 'net461' AND Exists('..\..\Serenity\Serenity.CodeGenerator\bin\$(Configuration)\$(TargetFramework)\dotnet-sergen.exe')">..\..\Serenity\Serenity.CodeGenerator\bin\$(Configuration)\$(TargetFramework)\dotnet-sergen.exe</DotNetSergen>
<DotNetSergen Condition=" '$(TargetFramework)' == 'netcoreapp2.0' AND Exists('..\..\Serenity\Serenity.CodeGenerator\bin\$(Configuration)\$(TargetFramework)\dotnet-sergen.dll')">dotnet ..\..\Serenity\Serenity.CodeGenerator\bin\$(Configuration)\$(TargetFramework)\dotnet-sergen.dll</DotNetSergen>
</PropertyGroup>
<ItemGroup>
<EmbeddedResource Include="Migrations\**\*.sql" Exclude="bin\**;obj\**;**\*.xproj;packages\**;@(EmbeddedResource)" />
<None Update="wwwroot\**\*">
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
</None>
<None Update="Modules\**\*.Template.html;Modules\**\*.ts.html">
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
</None>
</ItemGroup>
<ItemGroup>
<PackageReference Include="Serenity.FluentMigrator.Runner" Version="1.6.904" />
<PackageReference Include="Microsoft.Data.Sqlite" Version="2.0.0" />
<PackageReference Include="MailKit" Version="1.20.0" />
<PackageReference Include="Microsoft.TypeScript.MSBuild" Version="2.6.1" />
<PackageReference Include="Serenity.Web" Version="3.3.9" />
<PackageReference Include="Serenity.Web.AspNetCore" Version="3.3.9" />
<PackageReference Include="System.Data.SqlClient" Version="4.4.0" />
</ItemGroup>
<ItemGroup Condition=" '$(TargetFramework)' == 'netcoreapp2.0' ">
<PackageReference Include="EPPlus.Core" Version="1.5.2" />
<PackageReference Include="FastMember" Version="1.1.0" />
<PackageReference Include="Microsoft.AspNetCore.All" Version="2.0.0" />
</ItemGroup>
<ItemGroup Condition=" '$(TargetFramework)' == 'net461' ">
<PackageReference Include="Microsoft.AspNetCore" Version="2.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Authentication.Cookies" Version="2.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Diagnostics" Version="2.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Mvc" Version="2.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Routing" Version="2.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Server.IISIntegration" Version="2.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Server.Kestrel" Version="2.0.0" />
<PackageReference Include="Microsoft.AspNetCore.StaticFiles" Version="2.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.EnvironmentVariables" Version="2.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="2.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging" Version="2.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="2.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="2.0.0" />
<PackageReference Include="Microsoft.Extensions.Options.ConfigurationExtensions" Version="2.0.0" />
</ItemGroup>
<PropertyGroup Condition=" '$(TargetFramework)' == 'netcoreapp2.0' ">
<DefineConstants>$(DefineConstants);COREFX;ASPNETCORE</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition=" '$(TargetFramework)' == 'net461' ">
<PlatformTarget>x64</PlatformTarget>
<DefineConstants>$(DefineConstants);ASPNETCORE</DefineConstants>
</PropertyGroup>
<Import Project="$(SolutionDir)Serenity\tools\Submodule\Serenity.Submodule.AspNetCore.targets" Condition="Exists('$(SolutionDir)Serenity\tools\Submodule\Serenity.Submodule.AspNetCore.targets')" />
<Target Name="CreateInputsOutputs" BeforeTargets="BeforeBuild">
<CreateItem Include="Modules\**\*.ts;Imports\**\*.ts">
<Output TaskParameter="Include" ItemName="CompileTSCInputs" />
</CreateItem>
<CreateItem Include="wwwroot\Content\site\**\*.less">
<Output TaskParameter="Include" ItemName="CompileSiteLessInputs" />
</CreateItem>
</Target>
<Target Name="NpmInstall" BeforeTargets="BeforeBuild" Condition="!Exists('node_modules\@types\jquery\index.d.ts')">
<Message Text="Installing NPM packages..." Importance="high"></Message>
<Exec Command="npm install" />
</Target>
<Target Name="TransformMvcClientTypes" BeforeTargets="BeforeBuild">
<Exec Command="$(DotNetSergen) mvct" ContinueOnError="true" />
</Target>
<Target Name="CompileSiteLess" AfterTargets="AfterBuild" Inputs="@(CompileSiteLessInputs)" Outputs="wwwroot\Content\site\site.css">
<Message Text="Compiling site.less..." Importance="high"></Message>
<Exec Command="node_modules/.bin/lessc ./wwwroot/Content/site/site.less ./wwwroot/content/site/site.css" ContinueOnError="true" />
</Target>
<Target Name="TransformServerTypings" AfterTargets="AfterBuild">
<Exec Command="$(DotNetSergen) servertypings" ContinueOnError="true" />
</Target>
<Target Name="CompileTSC" AfterTargets="AfterBuild" Inputs="@(CompileTSCInputs)" Outputs="wwwroot\Scripts\site\GSI.Web.js">
<Message Text="Executing TypeScript compiler..." Importance="high"></Message>
<Exec Command=""$(TscToolPath.Replace('build\\..\tools\', 'tools\'))\tsc" -p ./tsconfig.json" ContinueOnError="true" />
</Target>
<ItemGroup>
<DotNetCliToolReference Include="Serenity.CodeGenerator" Version="3.3.5" />
</ItemGroup>
</Project>