|
8 | 8 | <AssemblyName>Rubberduck.Deployment.Build</AssemblyName>
|
9 | 9 | </PropertyGroup>
|
10 | 10 | <Import Project="..\RubberduckBaseMetaProject.csproj" />
|
11 |
| - <UsingTask |
12 |
| - TaskName="GetMSBuildBitness" |
13 |
| - TaskFactory="CodeTaskFactory" |
14 |
| - AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.Core.dll" > |
| 11 | + <UsingTask TaskName="GetMSBuildBitness" TaskFactory="CodeTaskFactory" AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.Core.dll"> |
15 | 12 | <ParameterGroup>
|
16 | 13 | <Bitness ParameterType="System.String" Output="true" />
|
17 | 14 | </ParameterGroup>
|
|
42 | 39 | <HintPath>VisualStudioSetup\Microsoft.VisualStudio.Setup.Configuration.Interop.dll</HintPath>
|
43 | 40 | </Reference>
|
44 | 41 | </ItemGroup>
|
45 |
| - <Target Name="PreBuildTask" BeforeTargets="PreBuildEvent"> |
| 42 | + <Target Name="BeforeBuild"> |
46 | 43 | <GetMSBuildBitness>
|
47 | 44 | <Output PropertyName="MSBuildBitness" TaskParameter="Bitness" />
|
48 | 45 | </GetMSBuildBitness>
|
| 46 | + <Message Text="Resolved MSBuild Bitness: $(MSBuildBitness)" Importance="high" /> |
| 47 | + <ItemGroup> |
| 48 | + <Reference Remove="olewoo" /> |
| 49 | + <Reference Remove="olewoo_interop" /> |
| 50 | + </ItemGroup> |
| 51 | + <ItemGroup Condition="'x64'=='$(MSBuildBitness)'"> |
| 52 | + <Reference Include="OleWoo\x64\olewoo.dll" /> |
| 53 | + <Reference Include="OleWoo\x64\olewoo_interop.dll" /> |
| 54 | + </ItemGroup> |
| 55 | + <ItemGroup Condition="'x32'=='$(MSBuildBitness)'"> |
| 56 | + <Reference Include="OleWoo\x32\olewoo.dll" /> |
| 57 | + <Reference Include="OleWoo\x32\olewoo_interop.dll" /> |
| 58 | + </ItemGroup> |
49 | 59 | </Target>
|
50 |
| - <ItemGroup> |
51 |
| - <Reference Include="olewoo"> |
52 |
| - <HintPath>OleWoo\$(MSBuildBitness)\olewoo.dll</HintPath> |
53 |
| - </Reference> |
54 |
| - <Reference Include="olewoo_interop"> |
55 |
| - <HintPath>OleWoo\$(MSBuildBitness)\olewoo_interop.dll</HintPath> |
56 |
| - </Reference> |
57 |
| - </ItemGroup> |
58 | 60 | <ItemGroup>
|
59 | 61 | <Folder Include="OleWoo\x64\" />
|
60 | 62 | <Folder Include="OleWoo\x32\" />
|
|
0 commit comments