Produce a stress test app (#1228)
This commit is contained in:
parent
d725972355
commit
110fea288b
|
|
@ -4,6 +4,7 @@
|
|||
<PropertyGroup>
|
||||
<AssemblySigningCertName>Microsoft</AssemblySigningCertName>
|
||||
<AncmZipOutputPath>$(BuildDir)AspNetCoreModule.zip</AncmZipOutputPath>
|
||||
<StressTestWebSiteZipOutputPath>$(BuildDir)StressTestWebSite.zip</StressTestWebSiteZipOutputPath>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
<PrepareDependsOn>$(PrepareDependsOn)</PrepareDependsOn>
|
||||
<GetArtifactInfoDependsOn>$(GetArtifactInfoDependsOn);GetNativeArtifactsInfo</GetArtifactInfoDependsOn>
|
||||
<CompileDependsOn Condition="'$(OS)'=='Windows_NT'">BuildNativeAssets;$(CompileDependsOn)</CompileDependsOn>
|
||||
<PackageDependsOn Condition="'$(OS)'=='Windows_NT'">$(PackageDependsOn);PackageNativeProjects</PackageDependsOn>
|
||||
<PackageDependsOn Condition="'$(OS)'=='Windows_NT'">$(PackageDependsOn);PackageNativeProjects;PackageStressTestApp</PackageDependsOn>
|
||||
<TestDependsOn>$(TestDependsOn);RunNativeTest</TestDependsOn>
|
||||
<NuGetVerifierRuleFile Condition="'$(OS)' != 'Windows_NT'">$(RepositoryRoot)NuGetPackageVerifier.xplat.json</NuGetVerifierRuleFile>
|
||||
<SourceBase>$(RepositoryRoot)src\</SourceBase>
|
||||
|
|
@ -14,7 +14,7 @@
|
|||
<ItemGroup>
|
||||
<Platforms Include="x86" VCPlatform="Win32" />
|
||||
<Platforms Include="x64" VCPlatform="x64" />
|
||||
</ItemGroup>
|
||||
</ItemGroup>
|
||||
<Import Project="assets.props" />
|
||||
|
||||
<Target Name="BuildNativeAssets" DependsOnTargets="Prepare;GetToolsets" >
|
||||
|
|
@ -110,4 +110,26 @@
|
|||
<Exec Command=""$(VisualStudioMSBuildx86Path)" "$(RepositoryRoot)test\CommonLibTests\CommonLibTests.vcxproj" /t:Test $(BuildArgs) -p:Platform=%(Platforms.VCPlatform)"
|
||||
Condition="'$(VisualStudioMSBuildx86Path)' != ''" />
|
||||
</Target>
|
||||
|
||||
<Target Name="PackageStressTestApp">
|
||||
<PropertyGroup>
|
||||
<StressAppBasePath>$(MSBuildThisFileDirectory)..\test\WebSites\StressTestWebSite\</StressAppBasePath>
|
||||
<StressAppPublishPath>$(StressAppBasePath)bin\published\</StressAppPublishPath>
|
||||
</PropertyGroup>
|
||||
|
||||
<RemoveDir Directories="$(StressAppPublishPath)" />
|
||||
<MSBuild
|
||||
Projects="$(StressAppBasePath)\StressTestWebSite.csproj"
|
||||
Targets="Publish"
|
||||
Properties="TargetFramework=netcoreapp2.2;Configuration=$(Configuration);RuntimeIdentifier=win7-%(Platforms.Identity);PublishDir=$(StressAppPublishPath)\%(Identity)" />
|
||||
|
||||
<ItemGroup>
|
||||
<StressAppFiles Include="$(StressAppPublishPath)\**\*" />
|
||||
</ItemGroup>
|
||||
|
||||
<ZipArchive File="$(StressTestWebSiteZipOutputPath)"
|
||||
Overwrite="true"
|
||||
SourceFiles="@(StressAppFiles)"
|
||||
WorkingDirectory="$(StressAppPublishPath)" />
|
||||
</Target>
|
||||
</Project>
|
||||
|
|
|
|||
Loading…
Reference in New Issue