Repository navigation
Expand file tree
/
Copy pathSample.WebClient.csproj
More file actions
52 lines (48 loc) · 2.5 KB
/
Copy pathSample.WebClient.csproj
File metadata and controls
52 lines (48 loc) · 2.5 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
<Project Sdk="Microsoft.NET.Sdk.BlazorWebAssembly">
<PropertyGroup>
<TargetFramework>net11.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<IsPackable>false</IsPackable>
<!-- begin-snippet: clientModelPath -->
<!-- The server model, pointed at by path. NOT referenced. -->
<ScryModelDll>$(MSBuildThisFileDirectory)..\Sample.Model\bin\$(Configuration)\net11.0\Sample.Model.dll</ScryModelDll>
<!-- end-snippet -->
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" />
<PackageReference Include="Microsoft.Extensions.Http" />
<!-- For the /live/rx and /live/messagepipe pages only. Scry references neither. -->
<PackageReference Include="System.Reactive" />
<PackageReference Include="MessagePipe" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" PrivateAssets="all" />
<ProjectReference Include="..\..\src\Scry.Client\Scry.Client.csproj" />
<!-- For the transport switch on the /live pages: the same client over a hub connection. -->
<ProjectReference Include="..\..\src\Scry.Client.SignalR\Scry.Client.SignalR.csproj" />
</ItemGroup>
<!--
Generator wiring. When consuming the Scry.Client NuGet package this is automatic
(buildTransitive props); with project references it is set up explicitly here.
-->
<!-- begin-snippet: clientGeneratorWiring -->
<ItemGroup>
<ProjectReference Include="..\..\src\Scry.SourceGenerator\Scry.SourceGenerator.csproj"
OutputItemType="Analyzer" ReferenceOutputAssembly="false" />
<ProjectReference Include="..\Sample.Model\Sample.Model.csproj" ReferenceOutputAssembly="false" />
<CompilerVisibleProperty Include="ScryModelDll" />
<CompilerVisibleProperty Include="ScryModelStamp" />
</ItemGroup>
<!-- Resolved against the project before the compiler sees it, as the shipped targets do. -->
<PropertyGroup Condition="'$(ScryModelDll)' != ''">
<ScryModelDll>$([MSBuild]::NormalizePath('$(MSBuildProjectDirectory)', '$(ScryModelDll)'))</ScryModelDll>
</PropertyGroup>
<Target Name="ComputeScryStamp"
AfterTargets="ResolveProjectReferences"
BeforeTargets="GenerateMSBuildEditorConfigFile;CoreCompile"
Condition="Exists('$(ScryModelDll)')">
<GetFileHash Files="$(ScryModelDll)" Algorithm="SHA256">
<Output TaskParameter="Hash" PropertyName="ScryModelStamp" />
</GetFileHash>
</Target>
<!-- end-snippet -->
</Project>