Skip to content

Commit e3cb32c

Browse files
authored
[tests] Switch msbuild-mac to use package references. (dotnet#9245)
And don't specify the solution path anymore, because we can restore using just the csproj just fine now.
1 parent 43102c0 commit e3cb32c

File tree

3 files changed

+2
-18
lines changed

3 files changed

+2
-18
lines changed

tests/msbuild-mac/msbuild-mac.csproj

+2-6
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,8 @@
3333
<Reference Include="System" />
3434
<Reference Include="System.Core" />
3535
<Reference Include="System.Xml" />
36-
<Reference Include="nunit.framework">
37-
<HintPath>..\..\packages\NUnit.3.11.0\lib\net40\nunit.framework.dll</HintPath>
38-
</Reference>
36+
<PackageReference Include="NUnit" Version="3.12.0" />
37+
<PackageReference Include="NUnit.ConsoleRunner" Version="3.11.1" />
3938
</ItemGroup>
4039
<ItemGroup>
4140
<Folder Include="Resources\" />
@@ -75,9 +74,6 @@
7574
<Link>Cache.cs</Link>
7675
</Compile>
7776
</ItemGroup>
78-
<ItemGroup>
79-
<None Include="packages.config" />
80-
</ItemGroup>
8177
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
8278
<Import Project="CustomBuildActions.targets" />
8379
</Project>

tests/msbuild-mac/packages.config

-11
This file was deleted.

tests/xharness/Jenkins/MacTestTasksEnumerable.cs

-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ public IEnumerator<RunTestTask> GetEnumerator ()
8282
MSBuildTask build = new MSBuildTask (jenkins: jenkins, testProject: project, processManager: processManager);
8383
build.Platform = platform;
8484
build.CloneTestProject (jenkins.MainLog, processManager, project);
85-
build.SolutionPath = project.SolutionPath;
8685
build.ProjectConfiguration = config;
8786
build.ProjectPlatform = project.Platform;
8887
build.SpecifyPlatform = false;

0 commit comments

Comments
 (0)