Correct `$(SharedFxVersion)` and `$(TargetingPackVersion)` values (#25790)
* Correct `$(SharedFxVersion)` and `$(TargetingPackVersion)` values
- Ensure `$(SharedFxVersion)` doesn't change in `$(NoSemVer20)` projects
- Ignore current project's `$(VersionSuffix)` in `$(TargetingPackVersion)`
- Never assume `$(AspNetCoreBaselineVersion)` matches released targeting pack
- Stabilize both versions correctly
- Use these properties more widely
- Remove other mechanisms to get the same values
- Reduce use of the `_GetPackageVersionInfo` target
- Reduce use of `$(SharedFxVersion)` for the targeting pack
nits:
- Correct comments about old RTMVersions.csproj project
- Fix or remove a few other comments
* Do not pass package filenames on Helix command Lines
- remove parsing of these command-line arguments from `RuntestOptions`
- instead craft the names using passed `$(SharedFxVersion)`
- restore `$(DotNetRuntimeSourceFeedKey)` on Helix command line
- lost somewhere along the line
- correct argument count in runtests.sh
- treated 11th argument as both Helix timeout and feed credential
- count was messed up somewhere alone the line
nits:
- update C# syntax in `RuntestOptions` e.g. remove unused `public` setters
- sort and group properties and their assignments
This commit is contained in:
parent
b5515a8dac
commit
326507bb01
|
|
@ -36,13 +36,15 @@
|
||||||
<SiteExtensionPackageVersion Condition=" '$(VersionSuffix)' != '' ">$(VersionPrefix)-$(VersionSuffix.Replace('.','-'))</SiteExtensionPackageVersion>
|
<SiteExtensionPackageVersion Condition=" '$(VersionSuffix)' != '' ">$(VersionPrefix)-$(VersionSuffix.Replace('.','-'))</SiteExtensionPackageVersion>
|
||||||
|
|
||||||
<PackageVersion Condition=" '$(PackageVersion)' == '' ">$(Version)</PackageVersion>
|
<PackageVersion Condition=" '$(PackageVersion)' == '' ">$(Version)</PackageVersion>
|
||||||
<PackageVersion Condition=" '$(NoSemVer20)' == 'true' ">$(SiteExtensionPackageVersion)</PackageVersion>
|
|
||||||
<SharedFxVersion>$(PackageVersion)</SharedFxVersion>
|
<SharedFxVersion>$(PackageVersion)</SharedFxVersion>
|
||||||
|
<SharedFxVersion Condition=" '$(StabilizePackageVersion)' == 'true' ">$(VersionPrefix)</SharedFxVersion>
|
||||||
|
<SharedFxProductName>$(Product) $(SharedFxVersion) Shared Framework</SharedFxProductName>
|
||||||
|
|
||||||
<TargetingPackVersion>$(TargetingPackVersionPrefix)</TargetingPackVersion>
|
<TargetingPackVersion>$(SharedFxVersion)</TargetingPackVersion>
|
||||||
<TargetingPackVersion Condition=" '$(VersionSuffix)' != '' ">$(TargetingPackVersionPrefix)-$(VersionSuffix)</TargetingPackVersion>
|
<TargetingPackVersion Condition=" ! $(IsTargetingPackBuilding) ">$(TargetingPackVersionPrefix)</TargetingPackVersion>
|
||||||
|
|
||||||
<SharedFxProductName>$(Product) $(PackageVersion) Shared Framework</SharedFxProductName>
|
<PackageVersion Condition=" '$(NoSemVer20)' == 'true' ">$(SiteExtensionPackageVersion)</PackageVersion>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
|
|
@ -156,7 +158,7 @@
|
||||||
<KnownFrameworkReference Condition="'$(UseAspNetCoreSharedRuntime)' == 'true' AND '$(DoNotApplyWorkaroundsToMicrosoftAspNetCoreApp)' != 'true'" Update="Microsoft.AspNetCore.App">
|
<KnownFrameworkReference Condition="'$(UseAspNetCoreSharedRuntime)' == 'true' AND '$(DoNotApplyWorkaroundsToMicrosoftAspNetCoreApp)' != 'true'" Update="Microsoft.AspNetCore.App">
|
||||||
<LatestRuntimeFrameworkVersion>$(SharedFxVersion)</LatestRuntimeFrameworkVersion>
|
<LatestRuntimeFrameworkVersion>$(SharedFxVersion)</LatestRuntimeFrameworkVersion>
|
||||||
<DefaultRuntimeFrameworkVersion Condition="'$(IsServicingBuild)' != 'true'">$(SharedFxVersion)</DefaultRuntimeFrameworkVersion>
|
<DefaultRuntimeFrameworkVersion Condition="'$(IsServicingBuild)' != 'true'">$(SharedFxVersion)</DefaultRuntimeFrameworkVersion>
|
||||||
<TargetingPackVersion Condition="'$(IsServicingBuild)' != 'true'">$(SharedFxVersion)</TargetingPackVersion>
|
<TargetingPackVersion Condition="'$(IsServicingBuild)' != 'true'">$(TargetingPackVersion)</TargetingPackVersion>
|
||||||
</KnownFrameworkReference>
|
</KnownFrameworkReference>
|
||||||
|
|
||||||
<!-- Track compiler separately from Arcade.-->
|
<!-- Track compiler separately from Arcade.-->
|
||||||
|
|
|
||||||
|
|
@ -73,7 +73,7 @@ and are generated based on the last package release.
|
||||||
<LatestPackageReference Include="System.Reflection.Metadata" />
|
<LatestPackageReference Include="System.Reflection.Metadata" />
|
||||||
<LatestPackageReference Include="System.Runtime.CompilerServices.Unsafe" />
|
<LatestPackageReference Include="System.Runtime.CompilerServices.Unsafe" />
|
||||||
<LatestPackageReference Include="System.Runtime.InteropServices.RuntimeInformation" />
|
<LatestPackageReference Include="System.Runtime.InteropServices.RuntimeInformation" />
|
||||||
<!-- System.Security.AccessControl should only be referenced in Dependencies.props and RTMVersions.csproj. -->
|
<!-- System.Security.AccessControl should only be referenced in Dependencies.props and RepoTasks.csproj. -->
|
||||||
<LatestPackageReference Include="System.Security.AccessControl" />
|
<LatestPackageReference Include="System.Security.AccessControl" />
|
||||||
<LatestPackageReference Include="System.Security.Cryptography.Cng" />
|
<LatestPackageReference Include="System.Security.Cryptography.Cng" />
|
||||||
<LatestPackageReference Include="System.Security.Cryptography.Pkcs" />
|
<LatestPackageReference Include="System.Security.Cryptography.Pkcs" />
|
||||||
|
|
|
||||||
|
|
@ -241,7 +241,7 @@
|
||||||
<Uri>https://github.com/dotnet/runtime</Uri>
|
<Uri>https://github.com/dotnet/runtime</Uri>
|
||||||
<Sha>7d39776332446d8a84f5d542c80d264fa1cadbe7</Sha>
|
<Sha>7d39776332446d8a84f5d542c80d264fa1cadbe7</Sha>
|
||||||
</Dependency>
|
</Dependency>
|
||||||
<!-- System.Security.AccessControl should only be referenced in Dependencies.props and RTMVersions.csproj. -->
|
<!-- System.Security.AccessControl should only be referenced in Dependencies.props and RepoTasks.csproj. -->
|
||||||
<Dependency Name="System.Security.AccessControl" Version="5.0.0-rc.2.20461.4">
|
<Dependency Name="System.Security.AccessControl" Version="5.0.0-rc.2.20461.4">
|
||||||
<Uri>https://github.com/dotnet/runtime</Uri>
|
<Uri>https://github.com/dotnet/runtime</Uri>
|
||||||
<Sha>7d39776332446d8a84f5d542c80d264fa1cadbe7</Sha>
|
<Sha>7d39776332446d8a84f5d542c80d264fa1cadbe7</Sha>
|
||||||
|
|
|
||||||
|
|
@ -118,7 +118,7 @@
|
||||||
<SystemReflectionMetadataPackageVersion>5.0.0-rc.2.20461.4</SystemReflectionMetadataPackageVersion>
|
<SystemReflectionMetadataPackageVersion>5.0.0-rc.2.20461.4</SystemReflectionMetadataPackageVersion>
|
||||||
<SystemResourcesExtensionsPackageVersion>5.0.0-rc.2.20461.4</SystemResourcesExtensionsPackageVersion>
|
<SystemResourcesExtensionsPackageVersion>5.0.0-rc.2.20461.4</SystemResourcesExtensionsPackageVersion>
|
||||||
<SystemRuntimeCompilerServicesUnsafePackageVersion>5.0.0-rc.2.20461.4</SystemRuntimeCompilerServicesUnsafePackageVersion>
|
<SystemRuntimeCompilerServicesUnsafePackageVersion>5.0.0-rc.2.20461.4</SystemRuntimeCompilerServicesUnsafePackageVersion>
|
||||||
<!-- System.Security.AccessControl should only be referenced in Dependencies.props and RTMVersions.csproj. -->
|
<!-- System.Security.AccessControl should only be referenced in Dependencies.props and RepoTasks.csproj. -->
|
||||||
<SystemSecurityAccessControlPackageVersion>5.0.0-rc.2.20461.4</SystemSecurityAccessControlPackageVersion>
|
<SystemSecurityAccessControlPackageVersion>5.0.0-rc.2.20461.4</SystemSecurityAccessControlPackageVersion>
|
||||||
<SystemSecurityCryptographyCngPackageVersion>5.0.0-rc.2.20461.4</SystemSecurityCryptographyCngPackageVersion>
|
<SystemSecurityCryptographyCngPackageVersion>5.0.0-rc.2.20461.4</SystemSecurityCryptographyCngPackageVersion>
|
||||||
<SystemSecurityCryptographyPkcsPackageVersion>5.0.0-rc.2.20461.4</SystemSecurityCryptographyPkcsPackageVersion>
|
<SystemSecurityCryptographyPkcsPackageVersion>5.0.0-rc.2.20461.4</SystemSecurityCryptographyPkcsPackageVersion>
|
||||||
|
|
@ -170,7 +170,7 @@
|
||||||
runtime packages for everything else. This is not an issue for assemblies available in Microsoft.NETCore.App.Ref or
|
runtime packages for everything else. This is not an issue for assemblies available in Microsoft.NETCore.App.Ref or
|
||||||
Microsoft.Extensions.Internal.Transport because it is next to impossible we would service those packages.
|
Microsoft.Extensions.Internal.Transport because it is next to impossible we would service those packages.
|
||||||
|
|
||||||
System.Security.AccessControl should only be referenced in Dependencies.props and RTMVersions.csproj. Because
|
System.Security.AccessControl should only be referenced in Dependencies.props and RepoTasks.csproj. Because
|
||||||
it's a transitive reference, we reship the ref/ assembly in Microsoft.AspNetCore.App.Ref. dotnet/runtime ships
|
it's a transitive reference, we reship the ref/ assembly in Microsoft.AspNetCore.App.Ref. dotnet/runtime ships
|
||||||
the implementation assemblies in Microsoft.NETCore.App.Runtime.* packages.
|
the implementation assemblies in Microsoft.NETCore.App.Runtime.* packages.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -46,16 +46,6 @@ namespace RunTests
|
||||||
description: "The version of the EF tool to use")
|
description: "The version of the EF tool to use")
|
||||||
{ Argument = new Argument<string>(), Required = true },
|
{ Argument = new Argument<string>(), Required = true },
|
||||||
|
|
||||||
new Option(
|
|
||||||
aliases: new string[] { "--aspnetruntime" },
|
|
||||||
description: "The path to the aspnet runtime nupkg to install")
|
|
||||||
{ Argument = new Argument<string>(), Required = true },
|
|
||||||
|
|
||||||
new Option(
|
|
||||||
aliases: new string[] { "--aspnetref" },
|
|
||||||
description: "The path to the aspnet ref nupkg to install")
|
|
||||||
{ Argument = new Argument<string>(), Required = true },
|
|
||||||
|
|
||||||
new Option(
|
new Option(
|
||||||
aliases: new string[] { "--helixTimeout" },
|
aliases: new string[] { "--helixTimeout" },
|
||||||
description: "The timeout duration of the Helix job")
|
description: "The timeout duration of the Helix job")
|
||||||
|
|
@ -63,34 +53,41 @@ namespace RunTests
|
||||||
};
|
};
|
||||||
|
|
||||||
var parseResult = command.Parse(args);
|
var parseResult = command.Parse(args);
|
||||||
var options = new RunTestsOptions();
|
var sharedFxVersion = parseResult.ValueForOption<string>("--runtime");
|
||||||
options.Target = parseResult.ValueForOption<string>("--target");
|
var options = new RunTestsOptions
|
||||||
options.RuntimeVersion = parseResult.ValueForOption<string>("--runtime");
|
{
|
||||||
options.HelixQueue = parseResult.ValueForOption<string>("--queue");
|
Architecture = parseResult.ValueForOption<string>("--arch"),
|
||||||
options.Architecture = parseResult.ValueForOption<string>("--arch");
|
EfVersion = parseResult.ValueForOption<string>("--ef"),
|
||||||
options.Quarantined = parseResult.ValueForOption<bool>("--quarantined");
|
HelixQueue = parseResult.ValueForOption<string>("--queue"),
|
||||||
options.EfVersion = parseResult.ValueForOption<string>("--ef");
|
Quarantined = parseResult.ValueForOption<bool>("--quarantined"),
|
||||||
options.AspNetRuntime = parseResult.ValueForOption<string>("--aspnetruntime");
|
RuntimeVersion = sharedFxVersion,
|
||||||
options.AspNetRef = parseResult.ValueForOption<string>("--aspnetref");
|
Target = parseResult.ValueForOption<string>("--target"),
|
||||||
options.Timeout = TimeSpan.Parse(parseResult.ValueForOption<string>("--helixTimeout"));
|
Timeout = TimeSpan.Parse(parseResult.ValueForOption<string>("--helixTimeout")),
|
||||||
options.HELIX_WORKITEM_ROOT = Environment.GetEnvironmentVariable("HELIX_WORKITEM_ROOT");
|
|
||||||
options.Path = Environment.GetEnvironmentVariable("PATH");
|
// When targeting pack builds, it has exactly the same version as the shared framework.
|
||||||
options.DotnetRoot = Environment.GetEnvironmentVariable("DOTNET_ROOT");
|
AspNetRef = $"Microsoft.AspNetCore.App.Ref.{sharedFxVersion}.nupkg",
|
||||||
|
AspNetRuntime = $"Microsoft.AspNetCore.App.Runtime.win-x64.{sharedFxVersion}.nupkg",
|
||||||
|
|
||||||
|
DotnetRoot = Environment.GetEnvironmentVariable("DOTNET_ROOT"),
|
||||||
|
HELIX_WORKITEM_ROOT = Environment.GetEnvironmentVariable("HELIX_WORKITEM_ROOT"),
|
||||||
|
Path = Environment.GetEnvironmentVariable("PATH"),
|
||||||
|
};
|
||||||
|
|
||||||
return options;
|
return options;
|
||||||
}
|
}
|
||||||
|
|
||||||
public string Target { get; set;}
|
public string Architecture { get; private set; }
|
||||||
public string SdkVersion { get; set;}
|
public string EfVersion { get; private set; }
|
||||||
public string RuntimeVersion { get; set;}
|
public string HelixQueue { get; private set; }
|
||||||
public string AspNetRuntime { get; set;}
|
public bool Quarantined { get; private set; }
|
||||||
public string AspNetRef { get; set;}
|
public string RuntimeVersion { get; private set; }
|
||||||
public string HelixQueue { get; set;}
|
public string Target { get; private set; }
|
||||||
public string Architecture { get; set;}
|
public TimeSpan Timeout { get; private set; }
|
||||||
public bool Quarantined { get; set;}
|
|
||||||
public string EfVersion { get; set;}
|
public string AspNetRef { get; private set; }
|
||||||
public string HELIX_WORKITEM_ROOT { get; set;}
|
public string AspNetRuntime { get; private set; }
|
||||||
public string DotnetRoot { get; set; }
|
public string HELIX_WORKITEM_ROOT { get; private set; }
|
||||||
|
public string DotnetRoot { get; private set; }
|
||||||
public string Path { get; set; }
|
public string Path { get; set; }
|
||||||
public TimeSpan Timeout { get; set; }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -10,12 +10,8 @@ set $queue=%5
|
||||||
set $arch=%6
|
set $arch=%6
|
||||||
set $quarantined=%7
|
set $quarantined=%7
|
||||||
set $ef=%8
|
set $ef=%8
|
||||||
set $aspnetruntime=%9
|
|
||||||
REM Batch only supports up to 9 arguments using the %# syntax, need to shift to get more
|
|
||||||
shift
|
|
||||||
set $aspnetref=%9
|
|
||||||
shift
|
|
||||||
set $helixTimeout=%9
|
set $helixTimeout=%9
|
||||||
|
REM Batch only supports up to 9 arguments using the %# syntax, need to shift to get more
|
||||||
shift
|
shift
|
||||||
set $feedCred=%9
|
set $feedCred=%9
|
||||||
|
|
||||||
|
|
@ -40,8 +36,8 @@ set exit_code=0
|
||||||
echo "Restore: dotnet restore RunTests\RunTests.csproj --ignore-failed-sources"
|
echo "Restore: dotnet restore RunTests\RunTests.csproj --ignore-failed-sources"
|
||||||
dotnet restore RunTests\RunTests.csproj --ignore-failed-sources
|
dotnet restore RunTests\RunTests.csproj --ignore-failed-sources
|
||||||
|
|
||||||
echo "Running tests: dotnet run --no-restore --project RunTests\RunTests.csproj -- --target %$target% --runtime %$aspRuntimeVersion% --queue %$queue% --arch %$arch% --quarantined %$quarantined% --ef %$ef% --aspnetruntime %$aspnetruntime% --aspnetref %$aspnetref% --helixTimeout %$helixTimeout%"
|
echo "Running tests: dotnet run --no-restore --project RunTests\RunTests.csproj -- --target %$target% --runtime %$aspRuntimeVersion% --queue %$queue% --arch %$arch% --quarantined %$quarantined% --ef %$ef% --helixTimeout %$helixTimeout%"
|
||||||
dotnet run --no-restore --project RunTests\RunTests.csproj -- --target %$target% --runtime %$aspRuntimeVersion% --queue %$queue% --arch %$arch% --quarantined %$quarantined% --ef %$ef% --aspnetruntime %$aspnetruntime% --aspnetref %$aspnetref% --helixTimeout %$helixTimeout%
|
dotnet run --no-restore --project RunTests\RunTests.csproj -- --target %$target% --runtime %$aspRuntimeVersion% --queue %$queue% --arch %$arch% --quarantined %$quarantined% --ef %$ef% --helixTimeout %$helixTimeout%
|
||||||
if errorlevel neq 0 (
|
if errorlevel neq 0 (
|
||||||
set exit_code=%errorlevel%
|
set exit_code=%errorlevel%
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -36,14 +36,14 @@ InstallDotNet $DOTNET_ROOT $dotnet_sdk_version "" "" true || {
|
||||||
Write-PipelineTelemetryError -Category 'InitializeToolset' -Message "dotnet-install.sh failed (exit code '$exit_code')." >&2
|
Write-PipelineTelemetryError -Category 'InitializeToolset' -Message "dotnet-install.sh failed (exit code '$exit_code')." >&2
|
||||||
ExitWithExitCode $exit_code
|
ExitWithExitCode $exit_code
|
||||||
}
|
}
|
||||||
if [[ -z "${11:-}" ]]; then
|
if [[ -z "${10:-}" ]]; then
|
||||||
InstallDotNet $DOTNET_ROOT $dotnet_runtime_version "" dotnet true || {
|
InstallDotNet $DOTNET_ROOT $dotnet_runtime_version "" dotnet true || {
|
||||||
exit_code=$?
|
exit_code=$?
|
||||||
Write-PipelineTelemetryError -Category 'InitializeToolset' -Message "dotnet-install.sh failed (exit code '$exit_code')." >&2
|
Write-PipelineTelemetryError -Category 'InitializeToolset' -Message "dotnet-install.sh failed (exit code '$exit_code')." >&2
|
||||||
ExitWithExitCode $exit_code
|
ExitWithExitCode $exit_code
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
InstallDotNet $DOTNET_ROOT $dotnet_runtime_version "" dotnet true https://dotnetclimsrc.blob.core.windows.net/dotnet ${11} || {
|
InstallDotNet $DOTNET_ROOT $dotnet_runtime_version "" dotnet true https://dotnetclimsrc.blob.core.windows.net/dotnet ${10} || {
|
||||||
exit_code=$?
|
exit_code=$?
|
||||||
Write-PipelineTelemetryError -Category 'InitializeToolset' -Message "dotnet-install.sh failed (exit code '$exit_code')." >&2
|
Write-PipelineTelemetryError -Category 'InitializeToolset' -Message "dotnet-install.sh failed (exit code '$exit_code')." >&2
|
||||||
ExitWithExitCode $exit_code
|
ExitWithExitCode $exit_code
|
||||||
|
|
@ -65,8 +65,8 @@ exit_code=0
|
||||||
echo "Restore: $DOTNET_ROOT/dotnet restore RunTests/RunTests.csproj --ignore-failed-sources"
|
echo "Restore: $DOTNET_ROOT/dotnet restore RunTests/RunTests.csproj --ignore-failed-sources"
|
||||||
$DOTNET_ROOT/dotnet restore RunTests/RunTests.csproj --ignore-failed-sources
|
$DOTNET_ROOT/dotnet restore RunTests/RunTests.csproj --ignore-failed-sources
|
||||||
|
|
||||||
echo "Running tests: $DOTNET_ROOT/dotnet run --no-restore --project RunTests/RunTests.csproj -- --target $1 --runtime $4 --queue $5 --arch $6 --quarantined $7 --ef $8 --aspnetruntime $9 --aspnetref ${10} --helixTimeout ${11}"
|
echo "Running tests: $DOTNET_ROOT/dotnet run --no-restore --project RunTests/RunTests.csproj -- --target $1 --runtime $4 --queue $5 --arch $6 --quarantined $7 --ef $8 --helixTimeout $9"
|
||||||
$DOTNET_ROOT/dotnet run --no-restore --project RunTests/RunTests.csproj -- --target $1 --runtime $4 --queue $5 --arch $6 --quarantined $7 --ef $8 --aspnetruntime $9 --aspnetref ${10} --helixTimeout ${11}
|
$DOTNET_ROOT/dotnet run --no-restore --project RunTests/RunTests.csproj -- --target $1 --runtime $4 --queue $5 --arch $6 --quarantined $7 --ef $8 --helixTimeout $9
|
||||||
exit_code=$?
|
exit_code=$?
|
||||||
echo "Finished tests...exit_code=$exit_code"
|
echo "Finished tests...exit_code=$exit_code"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -106,14 +106,8 @@ Usage: dotnet msbuild /t:Helix src/MyTestProject.csproj
|
||||||
<HelixContent Include="$(OutputPath)/Microsoft.VisualStudio.TestPlatform.Extension.Xunit.Xml.TestLogger.dll" />
|
<HelixContent Include="$(OutputPath)/Microsoft.VisualStudio.TestPlatform.Extension.Xunit.Xml.TestLogger.dll" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<!--
|
|
||||||
Could use _GetPackageVersionInfo target (defined in eng/targets/Packaging.targets and included in every C#
|
|
||||||
and F# project) instead of the $(SharedFxVersion) property but the property works everywhere except in site
|
|
||||||
extensions projects. Could also use $(TargetingPackVersion) but that has slightly more complicated semantics
|
|
||||||
and doesn't keep up when in servicing.
|
|
||||||
-->
|
|
||||||
<ItemGroup Condition=" '$(TestDependsOnAspNetRef)' == 'true' AND '$(IsTargetingPackBuilding)' == 'true' ">
|
<ItemGroup Condition=" '$(TestDependsOnAspNetRef)' == 'true' AND '$(IsTargetingPackBuilding)' == 'true' ">
|
||||||
<HelixContent Include="$(RepoRoot)artifacts\packages\Release\Shipping\Microsoft.AspNetCore.App.Ref.$(SharedFxVersion).nupkg" />
|
<HelixContent Include="$(RepoRoot)artifacts\packages\Release\Shipping\Microsoft.AspNetCore.App.Ref.$(TargetingPackVersion).nupkg" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup Condition=" '$(TestDependsOnAspNetRuntime)' == 'true' ">
|
<ItemGroup Condition=" '$(TestDependsOnAspNetRuntime)' == 'true' ">
|
||||||
|
|
@ -139,8 +133,12 @@ Usage: dotnet msbuild /t:Helix src/MyTestProject.csproj
|
||||||
<TestAssembly>$(TargetFileName)</TestAssembly>
|
<TestAssembly>$(TargetFileName)</TestAssembly>
|
||||||
<PreCommands>@(HelixPreCommand)</PreCommands>
|
<PreCommands>@(HelixPreCommand)</PreCommands>
|
||||||
<PostCommands>@(HelixPostCommand)</PostCommands>
|
<PostCommands>@(HelixPostCommand)</PostCommands>
|
||||||
<Command Condition="$(IsWindowsHelixQueue)">call runtests.cmd $(TargetFileName) $(NETCoreSdkVersion) $(MicrosoftNETCoreAppRuntimeVersion) $(SharedFxVersion) $(_HelixFriendlyNameTargetQueue) $(TargetArchitecture) $(RunQuarantinedTests) $(DotnetEfPackageVersion) Microsoft.AspNetCore.App.Runtime.win-x64.$(SharedFxVersion).nupkg Microsoft.AspNetCore.App.Ref.$(SharedFxVersion).nupkg $(HelixTimeout)</Command>
|
<!--
|
||||||
<Command Condition="!$(IsWindowsHelixQueue)">./runtests.sh $(TargetFileName) $(NETCoreSdkVersion) $(MicrosoftNETCoreAppRuntimeVersion) $(SharedFxVersion) $(_HelixFriendlyNameTargetQueue) $(TargetArchitecture) $(RunQuarantinedTests) $(DotnetEfPackageVersion) Microsoft.AspNetCore.App.Runtime.win-x64.$(SharedFxVersion).nupkg Microsoft.AspNetCore.App.Ref.$(SharedFxVersion).nupkg $(HelixTimeout)</Command>
|
When the targeting pack builds, it has exactly the same version as the shared framework. Passing
|
||||||
|
SharedFxVersion because that's needed even when the targeting pack isn't building.
|
||||||
|
-->
|
||||||
|
<Command Condition="$(IsWindowsHelixQueue)">call runtests.cmd $(TargetFileName) $(NETCoreSdkVersion) $(MicrosoftNETCoreAppRuntimeVersion) $(SharedFxVersion) $(_HelixFriendlyNameTargetQueue) $(TargetArchitecture) $(RunQuarantinedTests) $(DotnetEfPackageVersion) $(HelixTimeout) $(DotNetRuntimeSourceFeedKey)</Command>
|
||||||
|
<Command Condition="!$(IsWindowsHelixQueue)">./runtests.sh $(TargetFileName) $(NETCoreSdkVersion) $(MicrosoftNETCoreAppRuntimeVersion) $(SharedFxVersion) $(_HelixFriendlyNameTargetQueue) $(TargetArchitecture) $(RunQuarantinedTests) $(DotnetEfPackageVersion) $(HelixTimeout) $(DotNetRuntimeSourceFeedKey)</Command>
|
||||||
<Command Condition="$(HelixCommand) != ''">$(HelixCommand)</Command>
|
<Command Condition="$(HelixCommand) != ''">$(HelixCommand)</Command>
|
||||||
<Timeout>$(HelixTimeout)</Timeout>
|
<Timeout>$(HelixTimeout)</Timeout>
|
||||||
</HelixWorkItem>
|
</HelixWorkItem>
|
||||||
|
|
|
||||||
|
|
@ -70,20 +70,6 @@
|
||||||
<Output TaskParameter="TargetOutputs" ItemName="_TargetingPackDependencies" />
|
<Output TaskParameter="TargetOutputs" ItemName="_TargetingPackDependencies" />
|
||||||
</MSBuild>
|
</MSBuild>
|
||||||
|
|
||||||
<!-- This target is defined in eng/targets/Packaging.targets and included in every C# and F# project. -->
|
|
||||||
<MSBuild Projects="$(RepoRoot)src\Framework\App.Runtime\src\Microsoft.AspNetCore.App.Runtime.csproj"
|
|
||||||
Targets="_GetPackageVersionInfo"
|
|
||||||
SkipNonexistentProjects="false">
|
|
||||||
<Output TaskParameter="TargetOutputs" ItemName="_RuntimePackageVersionInfo" />
|
|
||||||
</MSBuild>
|
|
||||||
|
|
||||||
<!-- Runtime and Ref packs may have separate versions. -->
|
|
||||||
<MSBuild Projects="$(RepoRoot)src\Framework\App.Ref\src\Microsoft.AspNetCore.App.Ref.csproj"
|
|
||||||
Targets="_GetPackageVersionInfo"
|
|
||||||
SkipNonexistentProjects="false">
|
|
||||||
<Output TaskParameter="TargetOutputs" ItemName="_TargetingPackVersionInfo" />
|
|
||||||
</MSBuild>
|
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<AssemblyAttribute Include="Microsoft.AspNetCore.TestData">
|
<AssemblyAttribute Include="Microsoft.AspNetCore.TestData">
|
||||||
<_Parameter1>TargetingPackDependencies</_Parameter1>
|
<_Parameter1>TargetingPackDependencies</_Parameter1>
|
||||||
|
|
@ -119,12 +105,12 @@
|
||||||
|
|
||||||
<AssemblyAttribute Include="Microsoft.AspNetCore.TestData">
|
<AssemblyAttribute Include="Microsoft.AspNetCore.TestData">
|
||||||
<_Parameter1>RuntimePackageVersion</_Parameter1>
|
<_Parameter1>RuntimePackageVersion</_Parameter1>
|
||||||
<_Parameter2>@(_RuntimePackageVersionInfo->'%(PackageVersion)')</_Parameter2>
|
<_Parameter2>$(SharedFxVersion)</_Parameter2>
|
||||||
</AssemblyAttribute>
|
</AssemblyAttribute>
|
||||||
|
|
||||||
<AssemblyAttribute Include="Microsoft.AspNetCore.TestData">
|
<AssemblyAttribute Include="Microsoft.AspNetCore.TestData">
|
||||||
<_Parameter1>TargetingPackVersion</_Parameter1>
|
<_Parameter1>TargetingPackVersion</_Parameter1>
|
||||||
<_Parameter2>@(_TargetingPackVersionInfo->'%(PackageVersion)')</_Parameter2>
|
<_Parameter2>$(TargetingPackVersion)</_Parameter2>
|
||||||
</AssemblyAttribute>
|
</AssemblyAttribute>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
</Target>
|
</Target>
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,6 @@
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<RestoreAdditionalProjectSources>$(RestoreAdditionalProjectSources);$(ArtifactsShippingPackagesDir)</RestoreAdditionalProjectSources>
|
<RestoreAdditionalProjectSources>$(RestoreAdditionalProjectSources);$(ArtifactsShippingPackagesDir)</RestoreAdditionalProjectSources>
|
||||||
<MicrosoftAspNetCoreAppRefPackageVersion Condition="'$(IsTargetingPackBuilding)' != 'false'">$(TargetingPackVersion)</MicrosoftAspNetCoreAppRefPackageVersion>
|
|
||||||
<MicrosoftAspNetCoreAppRefPackageVersion Condition="'$(IsTargetingPackBuilding)' == 'false'">$(AspNetCoreBaselineVersion)</MicrosoftAspNetCoreAppRefPackageVersion>
|
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<!-- Use the shared framework that was produced -->
|
<!-- Use the shared framework that was produced -->
|
||||||
|
|
@ -18,7 +16,7 @@
|
||||||
RuntimePackNamePatterns="Microsoft.AspNetCore.App.Runtime.**RID**"
|
RuntimePackNamePatterns="Microsoft.AspNetCore.App.Runtime.**RID**"
|
||||||
DefaultRuntimeFrameworkVersion="$(SharedFxVersion)"
|
DefaultRuntimeFrameworkVersion="$(SharedFxVersion)"
|
||||||
LatestRuntimeFrameworkVersion="$(SharedFxVersion)"
|
LatestRuntimeFrameworkVersion="$(SharedFxVersion)"
|
||||||
TargetingPackVersion="$(MicrosoftAspNetCoreAppRefPackageVersion)"
|
TargetingPackVersion="$(TargetingPackVersion)"
|
||||||
RuntimePackRuntimeIdentifiers="$(SupportedRuntimeIdentifiers)" />
|
RuntimePackRuntimeIdentifiers="$(SupportedRuntimeIdentifiers)" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
</Project>
|
</Project>
|
||||||
|
|
|
||||||
|
|
@ -3,28 +3,6 @@
|
||||||
BeforeTargets="CoreCompile"
|
BeforeTargets="CoreCompile"
|
||||||
DependsOnTargets="PrepareForTest"
|
DependsOnTargets="PrepareForTest"
|
||||||
Condition="$(DesignTimeBuild) != true">
|
Condition="$(DesignTimeBuild) != true">
|
||||||
<!-- The version of the shared framework. This is used in tests to ensure they run against the shared framework version we just built. -->
|
|
||||||
<!-- If we aren't building the targeting pack, use the baseline version -->
|
|
||||||
<MSBuild Projects="$(RepoRoot)src\Framework\App.Ref\src\Microsoft.AspNetCore.App.Ref.csproj"
|
|
||||||
Targets="_GetPackageVersionInfo"
|
|
||||||
SkipNonexistentProjects="false"
|
|
||||||
Condition="'$(IsTargetingPackBuilding)' != 'false'">
|
|
||||||
<Output TaskParameter="TargetOutputs" ItemName="_TargetingPackVersionInfo" />
|
|
||||||
</MSBuild>
|
|
||||||
|
|
||||||
<!-- Targeting pack version should be the one we just built, if we're building it. Otherwise we use the baseline version -->
|
|
||||||
<PropertyGroup>
|
|
||||||
<MicrosoftAspNetCoreAppRefPackageVersion Condition="'$(IsTargetingPackBuilding)' != 'false'">%(_TargetingPackVersionInfo.PackageVersion)</MicrosoftAspNetCoreAppRefPackageVersion>
|
|
||||||
<MicrosoftAspNetCoreAppRefPackageVersion Condition="'$(IsTargetingPackBuilding)' == 'false'">$(TargetingPackVersionPrefix)</MicrosoftAspNetCoreAppRefPackageVersion>
|
|
||||||
</PropertyGroup>
|
|
||||||
|
|
||||||
<!-- Runtime and Ref packs may have separate versions. -->
|
|
||||||
<MSBuild Projects="$(RepoRoot)src\Framework\App.Runtime\src\Microsoft.AspNetCore.App.Runtime.csproj"
|
|
||||||
Targets="_GetPackageVersionInfo"
|
|
||||||
SkipNonexistentProjects="false">
|
|
||||||
<Output TaskParameter="TargetOutputs" ItemName="_RuntimePackageVersionInfo" />
|
|
||||||
</MSBuild>
|
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<PropsProperties>
|
<PropsProperties>
|
||||||
RestoreAdditionalProjectSources=$([MSBuild]::Escape("$(RestoreAdditionalProjectSources);$(ArtifactsShippingPackagesDir);$(ArtifactsNonShippingPackagesDir)"));
|
RestoreAdditionalProjectSources=$([MSBuild]::Escape("$(RestoreAdditionalProjectSources);$(ArtifactsShippingPackagesDir);$(ArtifactsNonShippingPackagesDir)"));
|
||||||
|
|
@ -33,8 +11,8 @@
|
||||||
MicrosoftNETCoreAppRefPackageVersion=$(MicrosoftNETCoreAppRefPackageVersion);
|
MicrosoftNETCoreAppRefPackageVersion=$(MicrosoftNETCoreAppRefPackageVersion);
|
||||||
MicrosoftNETCorePlatformsPackageVersion=$(MicrosoftNETCorePlatformsPackageVersion);
|
MicrosoftNETCorePlatformsPackageVersion=$(MicrosoftNETCorePlatformsPackageVersion);
|
||||||
MicrosoftNETSdkRazorPackageVersion=$(MicrosoftNETSdkRazorPackageVersion);
|
MicrosoftNETSdkRazorPackageVersion=$(MicrosoftNETSdkRazorPackageVersion);
|
||||||
MicrosoftAspNetCoreAppRefPackageVersion=$(MicrosoftAspNetCoreAppRefPackageVersion);
|
MicrosoftAspNetCoreAppRefPackageVersion=$(TargetingPackVersion);
|
||||||
MicrosoftAspNetCoreAppRuntimePackageVersion=@(_RuntimePackageVersionInfo->'%(PackageVersion)');
|
MicrosoftAspNetCoreAppRuntimePackageVersion=$(SharedFxVersion);
|
||||||
SupportedRuntimeIdentifiers=$(SupportedRuntimeIdentifiers.Trim());
|
SupportedRuntimeIdentifiers=$(SupportedRuntimeIdentifiers.Trim());
|
||||||
DefaultNetCoreTargetFramework=$(DefaultNetCoreTargetFramework);
|
DefaultNetCoreTargetFramework=$(DefaultNetCoreTargetFramework);
|
||||||
RepoRoot=$(RepoRoot);
|
RepoRoot=$(RepoRoot);
|
||||||
|
|
|
||||||
|
|
@ -3,28 +3,6 @@
|
||||||
BeforeTargets="CoreCompile"
|
BeforeTargets="CoreCompile"
|
||||||
DependsOnTargets="PrepareForTest"
|
DependsOnTargets="PrepareForTest"
|
||||||
Condition="$(DesignTimeBuild) != true">
|
Condition="$(DesignTimeBuild) != true">
|
||||||
<!-- The version of the shared framework. This is used in tests to ensure they run against the shared framework version we just built. -->
|
|
||||||
<!-- If we aren't building the targeting pack, use the baseline version -->
|
|
||||||
<MSBuild Projects="$(RepoRoot)src\Framework\App.Ref\src\Microsoft.AspNetCore.App.Ref.csproj"
|
|
||||||
Targets="_GetPackageVersionInfo"
|
|
||||||
SkipNonexistentProjects="false"
|
|
||||||
Condition="'$(IsTargetingPackBuilding)' != 'false'">
|
|
||||||
<Output TaskParameter="TargetOutputs" ItemName="_TargetingPackVersionInfo" />
|
|
||||||
</MSBuild>
|
|
||||||
|
|
||||||
<!-- Targeting pack version should be the one we just built, if we're building it. Otherwise we use the baseline version -->
|
|
||||||
<PropertyGroup>
|
|
||||||
<MicrosoftAspNetCoreAppRefPackageVersion Condition="'$(IsTargetingPackBuilding)' != 'false'">%(_TargetingPackVersionInfo.PackageVersion)</MicrosoftAspNetCoreAppRefPackageVersion>
|
|
||||||
<MicrosoftAspNetCoreAppRefPackageVersion Condition="'$(IsTargetingPackBuilding)' == 'false'">$(TargetingPackVersionPrefix)</MicrosoftAspNetCoreAppRefPackageVersion>
|
|
||||||
</PropertyGroup>
|
|
||||||
|
|
||||||
<!-- Runtime and Ref packs may have separate versions. -->
|
|
||||||
<MSBuild Projects="$(RepoRoot)src\Framework\App.Runtime\src\Microsoft.AspNetCore.App.Runtime.csproj"
|
|
||||||
Targets="_GetPackageVersionInfo"
|
|
||||||
SkipNonexistentProjects="false">
|
|
||||||
<Output TaskParameter="TargetOutputs" ItemName="_RuntimePackageVersionInfo" />
|
|
||||||
</MSBuild>
|
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<PropsProperties>
|
<PropsProperties>
|
||||||
RestoreAdditionalProjectSources=$([MSBuild]::Escape("$(RestoreAdditionalProjectSources);$(ArtifactsShippingPackagesDir);$(ArtifactsNonShippingPackagesDir)"));
|
RestoreAdditionalProjectSources=$([MSBuild]::Escape("$(RestoreAdditionalProjectSources);$(ArtifactsShippingPackagesDir);$(ArtifactsNonShippingPackagesDir)"));
|
||||||
|
|
@ -33,8 +11,8 @@
|
||||||
MicrosoftNETCoreAppRefPackageVersion=$(MicrosoftNETCoreAppRefPackageVersion);
|
MicrosoftNETCoreAppRefPackageVersion=$(MicrosoftNETCoreAppRefPackageVersion);
|
||||||
MicrosoftNETCorePlatformsPackageVersion=$(MicrosoftNETCorePlatformsPackageVersion);
|
MicrosoftNETCorePlatformsPackageVersion=$(MicrosoftNETCorePlatformsPackageVersion);
|
||||||
MicrosoftNETSdkRazorPackageVersion=$(MicrosoftNETSdkRazorPackageVersion);
|
MicrosoftNETSdkRazorPackageVersion=$(MicrosoftNETSdkRazorPackageVersion);
|
||||||
MicrosoftAspNetCoreAppRefPackageVersion=$(MicrosoftAspNetCoreAppRefPackageVersion);
|
MicrosoftAspNetCoreAppRefPackageVersion=$(TargetingPackVersion);
|
||||||
MicrosoftAspNetCoreAppRuntimePackageVersion=@(_RuntimePackageVersionInfo->'%(PackageVersion)');
|
MicrosoftAspNetCoreAppRuntimePackageVersion=$(SharedFxVersion);
|
||||||
SupportedRuntimeIdentifiers=$(SupportedRuntimeIdentifiers.Trim());
|
SupportedRuntimeIdentifiers=$(SupportedRuntimeIdentifiers.Trim());
|
||||||
DefaultNetCoreTargetFramework=$(DefaultNetCoreTargetFramework);
|
DefaultNetCoreTargetFramework=$(DefaultNetCoreTargetFramework);
|
||||||
RepoRoot=$(RepoRoot);
|
RepoRoot=$(RepoRoot);
|
||||||
|
|
|
||||||
|
|
@ -2,10 +2,6 @@
|
||||||
|
|
||||||
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory)..\, Directory.Build.targets))\Directory.Build.targets" />
|
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory)..\, Directory.Build.targets))\Directory.Build.targets" />
|
||||||
|
|
||||||
<PropertyGroup>
|
|
||||||
<MicrosoftAspNetCoreAppPackageVersion>$(PackageVersion)</MicrosoftAspNetCoreAppPackageVersion>
|
|
||||||
</PropertyGroup>
|
|
||||||
|
|
||||||
<Import Project="..\Sdk\SiteExtension.targets" />
|
<Import Project="..\Sdk\SiteExtension.targets" />
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
|
|
|
||||||
|
|
@ -85,7 +85,7 @@
|
||||||
HostingStartupPackageName=%(_HostingStartupPackageReference.Identity);
|
HostingStartupPackageName=%(_HostingStartupPackageReference.Identity);
|
||||||
HostingStartupPackageVersion=%(_HostingStartupPackageReference.Version);
|
HostingStartupPackageVersion=%(_HostingStartupPackageReference.Version);
|
||||||
RuntimeFrameworkVersion=$(HostingStartupRuntimeFrameworkVersion);
|
RuntimeFrameworkVersion=$(HostingStartupRuntimeFrameworkVersion);
|
||||||
MicrosoftAspNetCoreAppPackageVersion=$(MicrosoftAspNetCoreAppPackageVersion);
|
MicrosoftAspNetCoreAppPackageVersion=$(SharedFxVersion);
|
||||||
UseAppHost=false;
|
UseAppHost=false;
|
||||||
NoBuild=false;
|
NoBuild=false;
|
||||||
RestoreAdditionalProjectSources=$(_RsRestoreSources)" />
|
RestoreAdditionalProjectSources=$(_RsRestoreSources)" />
|
||||||
|
|
@ -97,7 +97,7 @@
|
||||||
HostingStartupPackageName=%(_HostingStartupPackageReference.Identity);
|
HostingStartupPackageName=%(_HostingStartupPackageReference.Identity);
|
||||||
HostingStartupPackageVersion=%(_HostingStartupPackageReference.Version);
|
HostingStartupPackageVersion=%(_HostingStartupPackageReference.Version);
|
||||||
RuntimeFrameworkVersion=$(HostingStartupRuntimeFrameworkVersion);
|
RuntimeFrameworkVersion=$(HostingStartupRuntimeFrameworkVersion);
|
||||||
MicrosoftAspNetCoreAppPackageVersion=$(MicrosoftAspNetCoreAppPackageVersion);
|
MicrosoftAspNetCoreAppPackageVersion=$(SharedFxVersion);
|
||||||
UseAppHost=false;
|
UseAppHost=false;
|
||||||
NoBuild=false;
|
NoBuild=false;
|
||||||
IncludeMainProjectInDepsFile=false" />
|
IncludeMainProjectInDepsFile=false" />
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue