Browse Source

Trying to work around MSBuild Community Tasks always using AnyCPU-version of NUnit.

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@5055 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
Daniel Grunwald 16 years ago
parent
commit
2c343922df
  1. 14
      src/Automated.proj

14
src/Automated.proj

@ -13,6 +13,7 @@
<MSBuildCommunityTasksPath>$(MSBuildProjectDirectory)\Tools\MSBuildCommunityTasks</MSBuildCommunityTasksPath> <MSBuildCommunityTasksPath>$(MSBuildProjectDirectory)\Tools\MSBuildCommunityTasks</MSBuildCommunityTasksPath>
<ArtefactPrefix>SharpDevelop_3.1.1.</ArtefactPrefix> <ArtefactPrefix>SharpDevelop_3.1.1.</ArtefactPrefix>
<NUnitToolPath>$(MSBuildProjectDirectory)\Tools\NUnit</NUnitToolPath> <NUnitToolPath>$(MSBuildProjectDirectory)\Tools\NUnit</NUnitToolPath>
<NUnitTempToolPath>$(SharpDevelopBin)\Tools\x86NUnit</NUnitTempToolPath>
<ProfilerSrc>$(SharpDevelopSrc)\AddIns\Misc\Profiler</ProfilerSrc> <ProfilerSrc>$(SharpDevelopSrc)\AddIns\Misc\Profiler</ProfilerSrc>
<!-- we cannot use <MSBuild> to build a solution because --> <!-- we cannot use <MSBuild> to build a solution because -->
@ -83,11 +84,22 @@
<Output TaskParameter="Include" ItemName="UnitTestAssemblies"/> <Output TaskParameter="Include" ItemName="UnitTestAssemblies"/>
</CreateItem> </CreateItem>
<!-- HACK: we cannot make the NUnit task run the x86 version; so instead we make a copy
of NUnit and rename nunit-console-x86 to nunit-console
-->
<CreateItem Include="$(NUnitToolPath)\lib\*.dll">
<Output TaskParameter="Include" ItemName="NUnitLibFiles"/>
</CreateItem>
<Copy SourceFiles="@(NUnitLibFiles)" DestinationFolder="$(NUnitTempToolPath)\lib"/>
<Copy SourceFiles="$(NUnitToolPath)\nunit.framework.dll" DestinationFolder="$(NUnitTempToolPath)"/>
<Copy SourceFiles="$(NUnitToolPath)\nunit-console-x86.exe" DestinationFiles="$(NUnitTempToolPath)\nunit-console.exe"/>
<Copy SourceFiles="$(NUnitToolPath)\nunit-console-x86.exe.config" DestinationFiles="$(NUnitTempToolPath)\nunit-console.exe.config"/>
<!-- the %() portion is important; otherwise a single NUnit-console process is used for all tests --> <!-- the %() portion is important; otherwise a single NUnit-console process is used for all tests -->
<NUnit Assemblies="@(UnitTestAssemblies)" <NUnit Assemblies="@(UnitTestAssemblies)"
OutputXmlFile="$(TestReportsDir)\%(UnitTestAssemblies.FileName).xml" OutputXmlFile="$(TestReportsDir)\%(UnitTestAssemblies.FileName).xml"
WorkingDirectory="$(SharpDevelopBin)\UnitTests" WorkingDirectory="$(SharpDevelopBin)\UnitTests"
ToolPath="$(NUnitToolPath)"/> ToolPath="$(NUnitTempToolPath)"/>
</Target> </Target>
<!-- Yes, apparently we really need two identical clean tasks. MSBuild won't run the same task twice. --> <!-- Yes, apparently we really need two identical clean tasks. MSBuild won't run the same task twice. -->

Loading…
Cancel
Save