<Project Sdk="Microsoft.NET.Sdk.Razor">
	<Import Project="..\..\Version.props" />
	<Import Project="..\..\PackNuget.props" />

	<PropertyGroup>
		<TargetFrameworks>net8.0;net9.0</TargetFrameworks>
		
		<!--<UseRazorSourceGenerator>false</UseRazorSourceGenerator>-->
	</PropertyGroup>

	<ItemGroup>

		<None Remove="..\..\..\README.md" />
		<None Remove="..\..\..\README.zh-CN.md" />

		<None Include="README.md" Pack="true" PackagePath="\" />
		<None Include="README.zh-CN.md" Pack="true" PackagePath="\" />
	</ItemGroup>


	<ItemGroup Condition=" '$(TargetFramework)' == 'net8.0' ">
		<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="$(NET8Version)" />
		<PackageReference Include="Microsoft.AspNetCore.Components" Version="$(NET8Version)" />
	</ItemGroup>
	<ItemGroup Condition=" '$(TargetFramework)' == 'net9.0' ">
		<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="$(NET9Version)" />
		<PackageReference Include="Microsoft.AspNetCore.Components" Version="$(NET9Version)" />

	</ItemGroup>
	<ItemGroup>
		<ProjectReference Include="..\ThingsGateway.Blazor.Diagrams.Core\ThingsGateway.Blazor.Diagrams.Core.csproj" />

		<ProjectReference Include="..\..\Admin\BlazorSetParametersAsyncGenerator\BlazorSetParametersAsyncGenerator.csproj" PrivateAssets="all" OutputItemType="Analyzer" />
	</ItemGroup>
	<ItemGroup>

		<Content Update="wwwroot\**">
			<CopyToOutputDirectory>Always</CopyToOutputDirectory>
			<Pack>true</Pack>
			<PackagePath>contentFiles/any/wwwroot</PackagePath>
		</Content>
	</ItemGroup>

</Project>
