-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathind-angular-starter.csproj
More file actions
65 lines (58 loc) · 3.55 KB
/
ind-angular-starter.csproj
File metadata and controls
65 lines (58 loc) · 3.55 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
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>netcoreapp1.1</TargetFramework>
<DebugType>portable</DebugType>
<PreserveCompilationContext>true</PreserveCompilationContext>
<AssemblyName>ind-angular-starter</AssemblyName>
<OutputType>Exe</OutputType>
<PackageId>ind-angular-starter</PackageId>
<UserSecretsId>aspnet-WebApplication-0799fe3e-6eaf-4c5f-b40e-7c6bfd5dfa9a</UserSecretsId>
<TypeScriptCompileBlocked>true</TypeScriptCompileBlocked>
<RuntimeFrameworkVersion>1.1.1</RuntimeFrameworkVersion>
<Npm>"C:\Program Files\nodejs\npm"</Npm>
<ReplaceContentWithNonePattern>wwwroot/**;appsettings*.*;*.json</ReplaceContentWithNonePattern>
<PublishFilesPattern>Views\**;appsettings.json;appsettings.Production.json;wwwroot\*.*;wwwroot\dist\**;wwwroot\serverdist\**;wwwroot\assets\**</PublishFilesPattern>
</PropertyGroup>
<ItemGroup>
<Compile Remove="node_modules\**;src\**;wwwroot\**" />
<!-- Exclude all content that is included by default by the SDK from publish and add only what we need later (see "PublishFilesPattern" property above and "PreparePublish" target below) -->
<Content Remove="$(ReplaceContentWithNonePattern)" />
<None Include="$(ReplaceContentWithNonePattern)" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Diagnostics" Version="1.1.1" />
<PackageReference Include="Microsoft.AspNetCore.Server.IISIntegration" Version="1.1.1" />
<PackageReference Include="Microsoft.AspNetCore.Server.Kestrel" Version="1.1.1" />
<PackageReference Include="Microsoft.AspNetCore.StaticFiles" Version="1.1.1" />
<PackageReference Include="Microsoft.AspNetCore.SpaServices" Version="1.1.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.EnvironmentVariables" Version="1.1.1" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="1.1.1" />
<PackageReference Include="Microsoft.Extensions.Logging" Version="1.1.1" />
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="1.1.1" />
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="1.1.1" />
<PackageReference Include="CompressedStaticFiles" Version="1.0.2" />
<PackageReference Include="Microsoft.Extensions.Options.ConfigurationExtensions" Version="1.1.1" />
</ItemGroup>
<ItemGroup>
<DotNetCliToolReference Include="Microsoft.DotNet.Watcher.Tools" Version="1.0.0" />
</ItemGroup>
<Target Name="CleanBeforePublish" BeforeTargets="BeforePublish">
<RemoveDir Directories="$(PublishDir)" ContinueOnError="true" />
</Target>
<Target Name="PreparePublish" AfterTargets="ComputeFilesToPublish">
<!-- As part of publishing, ensure the JS resources are freshly built in production mode -->
<Exec Command="$(Npm) install" />
<Exec Command="$(Npm) run build:prod" />
<Exec Command="$(Npm) run build:server:prod" />
<!-- Add the content that we want to publish (with newly-built files) to the publish output -->
<!-- Note that we cannot include those files as part of the "Content" item outside of this target
because the output files from the commands above would not be included in that case. -->
<ItemGroup>
<DistFiles Include="$(PublishFilesPattern)" />
<ResolvedFileToPublish Include="@(DistFiles->'%(FullPath)')" Exclude="@(ResolvedFileToPublish)">
<RelativePath>%(DistFiles.Identity)</RelativePath>
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
</ResolvedFileToPublish>
</ItemGroup>
</Target>
</Project>