Fix imports issue with test project
This commit is contained in:
parent
346f6347c5
commit
6101c31ba8
4 changed files with 25 additions and 7 deletions
|
@ -1,2 +1,7 @@
|
||||||
<Project>
|
<Project>
|
||||||
|
<!-- See https://aka.ms/dotnet/msbuild/customize for more details on customizing your build -->
|
||||||
|
<PropertyGroup>
|
||||||
|
|
||||||
|
|
||||||
|
</PropertyGroup>
|
||||||
</Project>
|
</Project>
|
||||||
|
|
|
@ -18,10 +18,10 @@ public class Config : IDisposable
|
||||||
public Config(IMessageSink sink)
|
public Config(IMessageSink sink)
|
||||||
{
|
{
|
||||||
_sink = sink;
|
_sink = sink;
|
||||||
UbBuildVersion = (string)AppContext.GetData(BuildVersionSwitch);
|
UbBuildVersion = (string)(AppContext.GetData(BuildVersionSwitch) ?? throw new InvalidOperationException("Unified Build version must be specified"));
|
||||||
TargetRid = (string)AppContext.GetData(TargetRidSwitch);
|
TargetRid = (string)(AppContext.GetData(TargetRidSwitch) ?? throw new InvalidOperationException("Target RID must be specified"));
|
||||||
PortableRid = (string)AppContext.GetData(PortableRidSwitch);
|
PortableRid = (string)(AppContext.GetData(PortableRidSwitch) ?? throw new InvalidOperationException("Portable RID must be specified"));
|
||||||
UbSdkArchivePath = (string)AppContext.GetData(UbSdkArchivePathSwitch);
|
UbSdkArchivePath = (string)(AppContext.GetData(UbSdkArchivePathSwitch) ?? throw new InvalidOperationException("Unified Build SDK archive path must be specified"));
|
||||||
TargetArchitecture = TargetRid.Split('-')[1];
|
TargetArchitecture = TargetRid.Split('-')[1];
|
||||||
MsftSdkArchivePath = AppContext.GetData(MsftSdkArchivePathSwitch) as string ?? DownloadMsftSdkArchive().Result;
|
MsftSdkArchivePath = AppContext.GetData(MsftSdkArchivePathSwitch) as string ?? DownloadMsftSdkArchive().Result;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
<Import Project="Sdk.props" Sdk="Microsoft.DotNet.Arcade.Sdk" />
|
<Import Project="Sdk.props" Sdk="Microsoft.DotNet.Arcade.Sdk" />
|
||||||
<Import Project="../../Directory.Build.props" />
|
|
||||||
<Import Project="../../Directory.Build.targets" />
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>$(NetCurrent)</TargetFramework>
|
<TargetFramework>$(NetCurrent)</TargetFramework>
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
|
@ -36,5 +36,4 @@
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
</Target>
|
</Target>
|
||||||
|
|
||||||
<Import Project="Sdk.targets" Sdk="Microsoft.DotNet.Arcade.Sdk" />
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|
|
@ -0,0 +1,14 @@
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace Microsoft.DotNet.UnifiedBuild.Tests
|
||||||
|
{
|
||||||
|
internal enum SdkKind
|
||||||
|
{
|
||||||
|
Microsoft,
|
||||||
|
UnifiedBuild
|
||||||
|
}
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue