-
Notifications
You must be signed in to change notification settings - Fork 145
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
81 additions
and
81 deletions.
There are no files selected for viewing
66 changes: 33 additions & 33 deletions
66
src/Blazor.Extensions.Canvas.JS/Blazor.Extensions.Canvas.JS.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,33 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<OutputType>Library</OutputType> | ||
<IsPackable>false</IsPackable> | ||
<BlazorLinkOnBuild>false</BlazorLinkOnBuild> | ||
<TypeScriptCompileBlocked>true</TypeScriptCompileBlocked> | ||
<TypeScriptToolsVersion>Latest</TypeScriptToolsVersion> | ||
<DefaultItemExcludes>${DefaultItemExcludes};dist\**;node_modules\**</DefaultItemExcludes> | ||
<NoWarn>CS2008</NoWarn> | ||
|
||
<!-- 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) --> | ||
<DisableFastUpToDateCheck>true</DisableFastUpToDateCheck> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Microsoft.AspNetCore.Blazor.Build" Version="0.7.0" /> | ||
<WebpackInputs Include="**\*.ts" Exclude="dist\**;node_modules\**" /> | ||
</ItemGroup> | ||
|
||
<Target Name="EnsureNpmRestored" Condition="!Exists('node_modules')"> | ||
<Message Importance="high" Text="Restoring dependencies using 'npm'. This may take several minutes..." /> | ||
<Exec Command="npm install" /> | ||
</Target> | ||
|
||
<Target Name="RunWebpack" AfterTargets="ResolveReferences" Inputs="@(WebpackInputs)" Outputs="dist\blazor.extensions.canvas.js" DependsOnTargets="EnsureNpmRestored"> | ||
<RemoveDir Directories="dist" /> | ||
<Exec Command="npm run build" /> | ||
<ItemGroup> | ||
<EmbeddedResource Include="dist\**\*.js" LogicalName="blazor:js:%(RecursiveDir)%(Filename)%(Extension)" /> | ||
</ItemGroup> | ||
</Target> | ||
</Project> | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<OutputType>Library</OutputType> | ||
<IsPackable>false</IsPackable> | ||
<BlazorLinkOnBuild>false</BlazorLinkOnBuild> | ||
<TypeScriptCompileBlocked>true</TypeScriptCompileBlocked> | ||
<TypeScriptToolsVersion>Latest</TypeScriptToolsVersion> | ||
<DefaultItemExcludes>${DefaultItemExcludes};dist\**;node_modules\**</DefaultItemExcludes> | ||
<NoWarn>CS2008</NoWarn> | ||
|
||
<!-- 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) --> | ||
<DisableFastUpToDateCheck>true</DisableFastUpToDateCheck> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Microsoft.AspNetCore.Blazor.Build" Version="0.7.0" /> | ||
<WebpackInputs Include="**\*.ts" Exclude="dist\**;node_modules\**" /> | ||
</ItemGroup> | ||
|
||
<Target Name="EnsureNpmRestored" Condition="!Exists('node_modules')"> | ||
<Message Importance="high" Text="Restoring dependencies using 'npm'. This may take several minutes..." /> | ||
<Exec Command="npm install" /> | ||
</Target> | ||
|
||
<Target Name="RunWebpack" AfterTargets="ResolveReferences" Inputs="@(WebpackInputs)" Outputs="dist\blazor.extensions.canvas.js" DependsOnTargets="EnsureNpmRestored"> | ||
<RemoveDir Directories="dist" /> | ||
<Exec Command="npm run build" /> | ||
<ItemGroup> | ||
<EmbeddedResource Include="dist\**\*.js" LogicalName="blazor:js:%(RecursiveDir)%(Filename)%(Extension)" /> | ||
</ItemGroup> | ||
</Target> | ||
</Project> |
58 changes: 29 additions & 29 deletions
58
src/Blazor.Extensions.Canvas/Blazor.Extensions.Canvas.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,29 @@ | ||
<Project Sdk="Microsoft.NET.Sdk.Web"> | ||
|
||
<PropertyGroup> | ||
<Title>Blazor Extensions Canvas</Title> | ||
<Description>HTML5 Canvas API implementation for ASP.NET Core Blazor.</Description> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup> | ||
<OutputType>Library</OutputType> | ||
<BlazorLinkOnBuild>false</BlazorLinkOnBuild> | ||
<TargetsForTfmSpecificBuildOutput>$(TargetsForTfmSpecificBuildOutput);IncludeP2POutput</TargetsForTfmSpecificBuildOutput> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Microsoft.AspNetCore.Blazor.Browser" Version="0.7.0" /> | ||
<PackageReference Include="Microsoft.AspNetCore.Blazor.Build" Version="0.7.0" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\Blazor.Extensions.Canvas.JS\Blazor.Extensions.Canvas.JS.csproj" PrivateAssets="All" /> | ||
</ItemGroup> | ||
|
||
<Target Name="IncludeP2POutput"> | ||
<ItemGroup> | ||
<BuildOutputInPackage Include="$(OutputPath)Blazor.Extensions.Canvas.JS.dll" /> | ||
</ItemGroup> | ||
</Target> | ||
|
||
</Project> | ||
<Project Sdk="Microsoft.NET.Sdk.Web"> | ||
|
||
<PropertyGroup> | ||
<Title>Blazor Extensions Canvas</Title> | ||
<Description>HTML5 Canvas API implementation for ASP.NET Core Blazor.</Description> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup> | ||
<OutputType>Library</OutputType> | ||
<BlazorLinkOnBuild>false</BlazorLinkOnBuild> | ||
<TargetsForTfmSpecificBuildOutput>$(TargetsForTfmSpecificBuildOutput);IncludeP2POutput</TargetsForTfmSpecificBuildOutput> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Microsoft.AspNetCore.Blazor.Browser" Version="0.7.0" /> | ||
<PackageReference Include="Microsoft.AspNetCore.Blazor.Build" Version="0.7.0" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\Blazor.Extensions.Canvas.JS\Blazor.Extensions.Canvas.JS.csproj" PrivateAssets="All" /> | ||
</ItemGroup> | ||
|
||
<Target Name="IncludeP2POutput"> | ||
<ItemGroup> | ||
<BuildOutputInPackage Include="$(OutputPath)Blazor.Extensions.Canvas.JS.dll" /> | ||
</ItemGroup> | ||
</Target> | ||
|
||
</Project> |
38 changes: 19 additions & 19 deletions
38
test/Blazor.Extensions.Canvas.Test/Blazor.Extensions.Canvas.Test.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
<Project Sdk="Microsoft.NET.Sdk.Web"> | ||
|
||
<PropertyGroup> | ||
<RunCommand>dotnet</RunCommand> | ||
<RunArguments>blazor serve</RunArguments> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Microsoft.AspNetCore.Blazor.Browser" Version="0.7.0" /> | ||
<PackageReference Include="Microsoft.AspNetCore.Blazor.Build" Version="0.7.0" /> | ||
<DotNetCliToolReference Include="Microsoft.AspNetCore.Blazor.Cli" Version="0.7.0" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\..\src\Blazor.Extensions.Canvas.JS\Blazor.Extensions.Canvas.JS.csproj" /> | ||
<ProjectReference Include="..\..\src\Blazor.Extensions.Canvas\Blazor.Extensions.Canvas.csproj" /> | ||
</ItemGroup> | ||
|
||
</Project> | ||
<Project Sdk="Microsoft.NET.Sdk.Web"> | ||
|
||
<PropertyGroup> | ||
<RunCommand>dotnet</RunCommand> | ||
<RunArguments>blazor serve</RunArguments> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Microsoft.AspNetCore.Blazor.Browser" Version="0.7.0" /> | ||
<PackageReference Include="Microsoft.AspNetCore.Blazor.Build" Version="0.7.0" /> | ||
<DotNetCliToolReference Include="Microsoft.AspNetCore.Blazor.Cli" Version="0.7.0" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\..\src\Blazor.Extensions.Canvas.JS\Blazor.Extensions.Canvas.JS.csproj" /> | ||
<ProjectReference Include="..\..\src\Blazor.Extensions.Canvas\Blazor.Extensions.Canvas.csproj" /> | ||
</ItemGroup> | ||
|
||
</Project> |