Skip to content

Commit 54d51a3

Browse files
authored
Set AssemblyVersion and prevent hosting tests from rebuilding the product code (#1791)
1 parent e4e6ac0 commit 54d51a3

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

src/Hosting/IntegrationTesting/src/ApplicationPublisher.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ public virtual Task<PublishedApplication> Publish(DeploymentParameters deploymen
3535
+ $" --output \"{publishDirectory.FullName}\""
3636
+ $" --framework {deploymentParameters.TargetFramework}"
3737
+ $" --configuration {deploymentParameters.Configuration}"
38+
// avoids triggering builds of dependencies of the test app which could cause issues like https://github.com/dotnet/arcade/issues/2941
39+
+ $" --no-dependencies"
3840
+ $" /p:TargetArchitecture={deploymentParameters.RuntimeArchitecture}"
3941
+ " --no-restore";
4042

version.props

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@
55
<PatchVersion>0</PatchVersion>
66
<VersionPrefix>$(MajorVersion).$(MinorVersion).$(PatchVersion)</VersionPrefix>
77
<PreReleaseVersionLabel>preview6</PreReleaseVersionLabel>
8+
<AssemblyVersion Condition="'$(IsReferenceAssemblyProject)' != 'true'">$(VersionPrefix).0</AssemblyVersion>
9+
<!--
10+
We do not support changing reference assemblies in a patch. This ignores
11+
the patch version number to ensure assembly version of ref assemblies stays constant
12+
throughout major.minor.
13+
-->
14+
<AssemblyVersion Condition="'$(IsReferenceAssemblyProject)' == 'true'">$(MajorVersion).$(MinorVersion).0.0</AssemblyVersion>
815
</PropertyGroup>
916

1017
<PropertyGroup>

0 commit comments

Comments
 (0)