-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathWeb码神工具.csproj
70 lines (68 loc) · 2.77 KB
/
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
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>netcoreapp2.2</TargetFramework>
<ApplicationIcon />
<OutputType>Exe</OutputType>
<StartupObject />
<TypeScriptToolsVersion>3.1</TypeScriptToolsVersion>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.All" />
<PackageReference Include="Microsoft.Data.Sqlite" Version="2.2.0" />
<PackageReference Include="MySql.Data" Version="8.0.13" />
<PackageReference Include="NewLife.Core" Version="7.4.6911.41889" />
<PackageReference Include="NewLife.XCode" Version="9.9.6911.41890" />
<PackageReference Include="System.Data.SqlClient" Version="4.6.0" />
</ItemGroup>
<ItemGroup>
<!-- Files not to show in IDE -->
<None Remove="yarn.lock" />
<Compile Remove="FolderInfo\**" />
<Compile Remove="Output\**" />
<Compile Remove="Template\**" />
<!-- Files not to publish (note that the 'dist' subfolders are re-added below) -->
<Content Remove="ClientApp\**" />
<Content Remove="FolderInfo\**" />
<Content Remove="Output\**" />
<Content Remove="Template\**" />
<EmbeddedResource Remove="FolderInfo\**" />
<EmbeddedResource Remove="Output\**" />
<EmbeddedResource Remove="Template\**" />
<None Remove="FolderInfo\**" />
<None Remove="Output\**" />
<None Remove="Template\**" />
</ItemGroup>
<ItemGroup>
<Compile Remove="Controllers\EngineController.cs" />
<Compile Remove="Engine\IcoHelper.cs" />
<Compile Remove="Engine\UIConfig.cs" />
<Compile Remove="Engine\XCoderBase.cs" />
</ItemGroup>
<ItemGroup>
<Content Update="Views\Home\Index1.cshtml">
<Pack>$(IncludeRazorContentInPack)</Pack>
</Content>
</ItemGroup>
<ItemGroup>
<Content Include="Template\实体数据\中文名.cs.cshtml">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>
<ItemGroup>
<Folder Include="Output\" />
</ItemGroup>
<Target Name="RunWebpack" AfterTargets="ComputeFilesToPublish">
<!-- As part of publishing, ensure the JS resources are freshly built in production mode -->
<Exec Command="npm install" />
<Exec Command="node node_modules/webpack/bin/webpack.js --config webpack.config.vendor.js --env.prod" />
<Exec Command="node node_modules/webpack/bin/webpack.js --env.prod" />
<!-- Include the newly-built files in the publish output -->
<ItemGroup>
<DistFiles Include="wwwroot\dist\**; ClientApp\dist\**" />
<ResolvedFileToPublish Include="@(DistFiles->'%(FullPath)')" Exclude="@(ResolvedFileToPublish)">
<RelativePath>%(DistFiles.Identity)</RelativePath>
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
</ResolvedFileToPublish>
</ItemGroup>
</Target>
</Project>