Components.TestServer.csproj 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <Project Sdk="Microsoft.NET.Sdk.Web">
  2. <PropertyGroup>
  3. <TargetFramework>$(DefaultNetCoreTargetFramework)</TargetFramework>
  4. <CompileUsingReferenceAssemblies>false</CompileUsingReferenceAssemblies>
  5. </PropertyGroup>
  6. <ItemGroup>
  7. <Reference Include="Microsoft.AspNetCore" />
  8. <Reference Include="Microsoft.AspNetCore.Authentication.Cookies" />
  9. <Reference Include="Microsoft.AspNetCore.Blazor.Server" />
  10. <Reference Include="Microsoft.AspNetCore.Components.Server" />
  11. <Reference Include="Microsoft.AspNetCore.Cors" />
  12. <Reference Include="Microsoft.AspNetCore.Mvc" />
  13. <Reference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" />
  14. <Reference Include="Microsoft.AspNetCore.Mvc.ViewFeatures" />
  15. <Reference Include="Microsoft.AspNetCore.Testing" />
  16. <Reference Include="Microsoft.Extensions.Hosting" />
  17. </ItemGroup>
  18. <ItemGroup>
  19. <ProjectReference Include="..\..\..\Blazor\DevServer\src\Microsoft.AspNetCore.Blazor.DevServer.csproj" />
  20. <ProjectReference Include="..\BasicTestApp\BasicTestApp.csproj" />
  21. </ItemGroup>
  22. <ItemGroup>
  23. <AssemblyAttribute Include="System.Reflection.AssemblyMetadataAttribute">
  24. <_Parameter1>Microsoft.AspNetCore.Testing.BasicTestApp.ContentRoot</_Parameter1>
  25. <_Parameter2>$([MSBuild]::NormalizeDirectory('$([System.IO.Path]::GetFullPath('$(MSBuildThisFileDirectory)..\BasicTestApp'))'))</_Parameter2>
  26. </AssemblyAttribute>
  27. </ItemGroup>
  28. <Target Name="CopyClientAssetsForTest" BeforeTargets="Build"
  29. Inputs="..\BasicTestApp\wwwroot\js\jsinteroptests.js;
  30. ..\BasicTestApp\wwwroot\NotAComponent.html;
  31. ..\BasicTestApp\wwwroot\style.css"
  32. Outputs="wwwroot\js\jsinteroptests.js;
  33. wwwroot\NotAComponent.html;
  34. wwwroot\style.css">
  35. <MakeDir Directories="wwwroot" />
  36. <Copy SourceFiles="..\BasicTestApp\wwwroot\js\jsinteroptests.js;..\BasicTestApp\wwwroot\NotAComponent.html;..\BasicTestApp\wwwroot\style.css"
  37. DestinationFiles="wwwroot\js\jsinteroptests.js;wwwroot\NotAComponent.html;wwwroot\style.css" />
  38. </Target>
  39. </Project>