Repository navigation
Expand file tree
/
Copy pathCookingTime.csproj
More file actions
63 lines (56 loc) · 2.66 KB
/
Copy pathCookingTime.csproj
File metadata and controls
63 lines (56 loc) · 2.66 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
<Project Sdk="Microsoft.NET.Sdk.BlazorWebAssembly">
<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
<RootNamespace>CookingTime</RootNamespace>
<AssemblyName>CookingTime</AssemblyName>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<LangVersion>latest</LangVersion>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<InvariantGlobalization>true</InvariantGlobalization>
<!-- Phase 6 + Phase 8: limit the production compile glob to the four
folders that ship with the app. The default Blazor SDK glob
would also pick up tests/**/*.cs and OriginalSource/*.cs.
- tests/ lives under separate csproj data and includes
xUnit/FluentAssertions attributes that aren't valid in the
production assembly.
- OriginalSource/ is the historical reference project
(renamed from Backup/ in Phase 8) and is intentionally not
built. -->
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
<EnableDefaultEmbeddedResourceItems>false</EnableDefaultEmbeddedResourceItems>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="10.0.0-*" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="10.0.0-*" PrivateAssets="all" />
</ItemGroup>
<!-- Make the generated Program type visible to the test assembly so
WebApplicationFactory tests can find an entry point. -->
<ItemGroup>
<InternalsVisibleTo Include="CookingTime.UnitTests" />
</ItemGroup>
<ItemGroup>
<Compile Include="Program.cs" />
<Compile Include="Application\**\*.cs" />
<Compile Include="Domain\**\*.cs" />
<Compile Include="Infrastructure\**\*.cs" />
<!-- Belt-and-suspenders: OriginalSource/ is the legacy WinForms
reference project (Phase 8). It must stay in git as historical
context, but never enter the production assembly. The
Directory.Build.props DefaultItemExcludes and this csproj's
EnableDefaultCompileItems=false already cover this; this Remove
is redundant but makes the intent explicit at the build rule
level for any future project that opts into default items. -->
<Compile Remove="OriginalSource\**" />
</ItemGroup>
<ItemGroup>
<RazorComponent Include="App.razor" />
<RazorComponent Include="Routes.razor" />
<RazorComponent Include="_Imports.razor" />
<RazorComponent Include="Layout\**\*.razor" />
<RazorComponent Include="Pages\**\*.razor" />
</ItemGroup>
<ItemGroup>
<None Include="wwwroot\**\*" Pack="false" />
</ItemGroup>
</Project>