Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions tests/xharness/Harness.cs
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ string MlaunchPath {
public bool INCLUDE_XAMARIN_LEGACY { get; }
public string SYSTEM_MONO { get; set; }
public string DOTNET_DIR { get; set; }
public string DotNetTfm { get; set; }

// Run

Expand Down Expand Up @@ -284,6 +285,7 @@ public Harness (IResultParser resultParser, HarnessAction action, HarnessConfigu
SYSTEM_MONO = config ["SYSTEM_MONO"];
DOTNET_DIR = config ["DOTNET_DIR"];
INCLUDE_XAMARIN_LEGACY = config.ContainsKey ("INCLUDE_XAMARIN_LEGACY") && !string.IsNullOrEmpty (config ["INCLUDE_XAMARIN_LEGACY"]);
DotNetTfm = config ["DOTNET_TFM"];

if (string.IsNullOrEmpty (SdkRoot))
SdkRoot = config ["XCODE_DEVELOPER_ROOT"] ?? configuration.SdkRoot;
Expand Down
1 change: 1 addition & 0 deletions tests/xharness/IHarness.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ public interface IHarness {
bool UseGroupedApps { get; }
string VSDropsUri { get; }
bool DisableWatchOSOnWrench { get; }
string DotNetTfm { get; }

#endregion

Expand Down
2 changes: 1 addition & 1 deletion tests/xharness/Targets/Target.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public abstract class Target {

public const string FSharpGuid = "{F2A71F9B-5D33-465A-A702-920D77279786}";
public const string CSharpGuid = "{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}";
public const string DotNetTfm = "net7.0";
public string DotNetTfm => Harness.DotNetTfm;

public string LanguageGuid { get { return IsFSharp ? FSharpGuid : CSharpGuid; } }

Expand Down