Only publish ForTesting folder when needed
This commit is contained in:
parent
d7bce59fe5
commit
794508fbf2
|
|
@ -10,6 +10,10 @@
|
||||||
<RuntimeIdentifiers>win7-x64;win7-x86;win81-x64;win81-x86;win10-x64;win10-x86;osx.10.10-x64;osx.10.11-x64;osx.10.12-x64;ubuntu.14.04-x64;ubuntu.15.04-x64;ubuntu.16.04-x64;centos.7-x64;rhel.7.2-x64</RuntimeIdentifiers>
|
<RuntimeIdentifiers>win7-x64;win7-x86;win81-x64;win81-x86;win10-x64;win10-x86;osx.10.10-x64;osx.10.11-x64;osx.10.12-x64;ubuntu.14.04-x64;ubuntu.15.04-x64;ubuntu.16.04-x64;centos.7-x64;rhel.7.2-x64</RuntimeIdentifiers>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<Content Update="ForTesting\**\*" CopyToPublishDirectory="Never" Condition=" '$(PublishForTesting)' != 'true' "/>
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Microsoft.AspNetCore" Version="$(AspNetCoreVersion)" />
|
<PackageReference Include="Microsoft.AspNetCore" Version="$(AspNetCoreVersion)" />
|
||||||
<PackageReference Include="Microsoft.AspNetCore.AspNetCoreModule" Version="$(AspNetCoreModuleVersion)" />
|
<PackageReference Include="Microsoft.AspNetCore.AspNetCoreModule" Version="$(AspNetCoreModuleVersion)" />
|
||||||
|
|
|
||||||
|
|
@ -80,10 +80,10 @@ namespace E2ETests
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
if (applicationType == ApplicationType.Standalone)
|
|
||||||
{
|
deploymentParameters.AdditionalPublishParameters =
|
||||||
deploymentParameters.AdditionalPublishParameters = " -r " + RuntimeEnvironment.GetRuntimeIdentifier();
|
(applicationType == ApplicationType.Standalone ? $" -r {RuntimeEnvironment.GetRuntimeIdentifier()}" : "")
|
||||||
}
|
+ " /p:PublishForTesting=true";
|
||||||
|
|
||||||
// Override the connection strings using environment based configuration
|
// Override the connection strings using environment based configuration
|
||||||
deploymentParameters.EnvironmentVariables
|
deploymentParameters.EnvironmentVariables
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue