|
1 | 1 | <Project Sdk="Microsoft.NET.Sdk.Web">
|
2 | 2 |
|
3 |
| - <PropertyGroup> |
4 |
| - <TargetFramework>net8.0</TargetFramework> |
5 |
| - <Nullable>enable</Nullable> |
6 |
| - <ImplicitUsings>enable</ImplicitUsings> |
7 |
| - </PropertyGroup> |
8 |
| - |
9 |
| - <ItemGroup> |
10 |
| - <PackageReference Include="BlazorStatic" Version="1.0.0-beta.11" /> |
11 |
| - </ItemGroup> |
12 |
| - <ItemGroup> |
13 |
| -<!-- <ProjectReference Include="..\src\BlazorStatic.csproj" />--> |
14 |
| - </ItemGroup> |
15 |
| - |
16 |
| - |
17 |
| - <ItemGroup> |
18 |
| - <None Update="Content/**/*"> |
19 |
| - <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> |
20 |
| - </None> |
21 |
| - </ItemGroup> |
| 3 | + <PropertyGroup> |
| 4 | + <TargetFramework>net8.0</TargetFramework> |
| 5 | + <Nullable>enable</Nullable> |
| 6 | + <ImplicitUsings>enable</ImplicitUsings> |
| 7 | + </PropertyGroup> |
22 | 8 |
|
23 | 9 |
|
24 |
| -<!-- to make hot reload work on .md files --> |
25 |
| - <ItemGroup> |
26 |
| - <Watch Include="Content/**/*" /> |
27 |
| - </ItemGroup> |
| 10 | + <PropertyGroup> |
| 11 | + <!-- Serve for Conditional logic for template instantiation --> |
| 12 | + <!-- You can put the version inside the PackageReference --> |
| 13 | + <BlazorStaticVersion>1.0.0-beta.12</BlazorStaticVersion> |
| 14 | + </PropertyGroup> |
28 | 15 |
|
| 16 | + <!--#if (UseInTemplate)--> |
| 17 | + <ItemGroup> |
| 18 | + <PackageReference Include="BlazorStatic" Version="$(BlazorStaticVersion)"/> |
| 19 | + </ItemGroup> |
| 20 | + <!--#else--> |
| 21 | + <ItemGroup Condition="'$(Configuration)' == 'Debug'"> |
| 22 | + <!-- for debugging when running from BlazorStaticWebsite.sln--> |
| 23 | + <ProjectReference Include="../../../../src/BlazorStatic.csproj"/> |
| 24 | + </ItemGroup> |
29 | 25 |
|
| 26 | + <ItemGroup Condition="'$(Configuration)' == 'Release'"> |
| 27 | + <!--When building the page on ci/cd--> |
| 28 | + <PackageReference Include="BlazorStatic" Version="$(BlazorStaticVersion)"/> |
| 29 | + </ItemGroup> |
| 30 | + <!--#endif--> |
| 31 | + |
| 32 | + |
| 33 | + <ItemGroup> |
| 34 | + <None Update="Content/**/*"> |
| 35 | + <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> |
| 36 | + </None> |
| 37 | + </ItemGroup> |
| 38 | + |
| 39 | + |
| 40 | + <!-- to make hot reload work on .md files --> |
| 41 | + <ItemGroup> |
| 42 | + <Watch Include="Content/**/*"/> |
| 43 | + </ItemGroup> |
| 44 | + |
30 | 45 |
|
31 | 46 | </Project>
|
0 commit comments