|
1 |
| -<Project Sdk="Microsoft.NET.Sdk"> |
2 |
| - |
3 |
| - <PropertyGroup> |
4 |
| - <OutputType>Library</OutputType> |
5 |
| - <IsPackable>false</IsPackable> |
6 |
| - <BlazorLinkOnBuild>false</BlazorLinkOnBuild> |
7 |
| - <TypeScriptCompileBlocked>true</TypeScriptCompileBlocked> |
8 |
| - <TypeScriptToolsVersion>Latest</TypeScriptToolsVersion> |
9 |
| - <DefaultItemExcludes>${DefaultItemExcludes};dist\**;node_modules\**</DefaultItemExcludes> |
10 |
| - <NoWarn>CS2008</NoWarn> |
11 |
| - |
12 |
| - <!-- VS's FastUpToDateCheck doesn't consider .ts file changes, so it's necessary to disable it to get incremental builds to work correctly (albeit not as fast as if FastUpToDateCheck did work for them) --> |
13 |
| - <DisableFastUpToDateCheck>true</DisableFastUpToDateCheck> |
14 |
| - </PropertyGroup> |
15 |
| - |
16 |
| - <ItemGroup> |
17 |
| - <PackageReference Include="Microsoft.AspNetCore.Blazor.Build" Version="0.7.0" /> |
18 |
| - <WebpackInputs Include="**\*.ts" Exclude="dist\**;node_modules\**" /> |
19 |
| - </ItemGroup> |
20 |
| - |
21 |
| - <Target Name="EnsureNpmRestored" Condition="!Exists('node_modules')"> |
22 |
| - <Message Importance="high" Text="Restoring dependencies using 'npm'. This may take several minutes..." /> |
23 |
| - <Exec Command="npm install" /> |
24 |
| - </Target> |
25 |
| - |
26 |
| - <Target Name="RunWebpack" AfterTargets="ResolveReferences" Inputs="@(WebpackInputs)" Outputs="dist\blazor.extensions.canvas.js" DependsOnTargets="EnsureNpmRestored"> |
27 |
| - <RemoveDir Directories="dist" /> |
28 |
| - <Exec Command="npm run build" /> |
29 |
| - <ItemGroup> |
30 |
| - <EmbeddedResource Include="dist\**\*.js" LogicalName="blazor:js:%(RecursiveDir)%(Filename)%(Extension)" /> |
31 |
| - </ItemGroup> |
32 |
| - </Target> |
33 |
| -</Project> |
| 1 | +<Project Sdk="Microsoft.NET.Sdk"> |
| 2 | + |
| 3 | + <PropertyGroup> |
| 4 | + <OutputType>Library</OutputType> |
| 5 | + <IsPackable>false</IsPackable> |
| 6 | + <BlazorLinkOnBuild>false</BlazorLinkOnBuild> |
| 7 | + <TypeScriptCompileBlocked>true</TypeScriptCompileBlocked> |
| 8 | + <TypeScriptToolsVersion>Latest</TypeScriptToolsVersion> |
| 9 | + <DefaultItemExcludes>${DefaultItemExcludes};dist\**;node_modules\**</DefaultItemExcludes> |
| 10 | + <NoWarn>CS2008</NoWarn> |
| 11 | + |
| 12 | + <!-- VS's FastUpToDateCheck doesn't consider .ts file changes, so it's necessary to disable it to get incremental builds to work correctly (albeit not as fast as if FastUpToDateCheck did work for them) --> |
| 13 | + <DisableFastUpToDateCheck>true</DisableFastUpToDateCheck> |
| 14 | + </PropertyGroup> |
| 15 | + |
| 16 | + <ItemGroup> |
| 17 | + <PackageReference Include="Microsoft.AspNetCore.Blazor.Build" Version="0.7.0" /> |
| 18 | + <WebpackInputs Include="**\*.ts" Exclude="dist\**;node_modules\**" /> |
| 19 | + </ItemGroup> |
| 20 | + |
| 21 | + <Target Name="EnsureNpmRestored" Condition="!Exists('node_modules')"> |
| 22 | + <Message Importance="high" Text="Restoring dependencies using 'npm'. This may take several minutes..." /> |
| 23 | + <Exec Command="npm install" /> |
| 24 | + </Target> |
| 25 | + |
| 26 | + <Target Name="RunWebpack" AfterTargets="ResolveReferences" Inputs="@(WebpackInputs)" Outputs="dist\blazor.extensions.canvas.js" DependsOnTargets="EnsureNpmRestored"> |
| 27 | + <RemoveDir Directories="dist" /> |
| 28 | + <Exec Command="npm run build" /> |
| 29 | + <ItemGroup> |
| 30 | + <EmbeddedResource Include="dist\**\*.js" LogicalName="blazor:js:%(RecursiveDir)%(Filename)%(Extension)" /> |
| 31 | + </ItemGroup> |
| 32 | + </Target> |
| 33 | +</Project> |
0 commit comments