|
33 | 33 | <Prefer32Bit>false</Prefer32Bit> |
34 | 34 | </PropertyGroup> |
35 | 35 | <ItemGroup> |
36 | | - <Reference Include="ExcelDna.Integration"> |
37 | | - <HintPath>packages\Excel-DNA.Lib.0.32.0\lib\ExcelDna.Integration.dll</HintPath> |
| 36 | + <Reference Include="ExcelDna.Integration, Version=0.34.6373.42344, Culture=neutral, processorArchitecture=MSIL"> |
| 37 | + <HintPath>packages\ExcelDna.Integration.0.34.6\lib\ExcelDna.Integration.dll</HintPath> |
38 | 38 | <Private>False</Private> |
39 | 39 | </Reference> |
40 | 40 | <Reference Include="System" /> |
|
52 | 52 | <Compile Include="Properties\AssemblyInfo.cs" /> |
53 | 53 | </ItemGroup> |
54 | 54 | <ItemGroup> |
55 | | - <Content Include="LimitedConcurrencyAsync-AddIn.dna"> |
56 | | - <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> |
57 | | - </Content> |
58 | 55 | <None Include="packages.config" /> |
| 56 | + <None Include="Properties\ExcelDna.Build.props" /> |
| 57 | + <None Include="LimitedConcurrencyAsync-AddIn.dna" /> |
59 | 58 | <None Include="README.md" /> |
60 | 59 | </ItemGroup> |
61 | 60 | <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> |
62 | 61 | <PropertyGroup> |
63 | | - <PostBuildEvent>xcopy "$(ProjectDir)packages\Excel-DNA.0.32.0\tools\ExcelDna.xll" "$(TargetDir)LimitedConcurrencyAsync-AddIn.xll*" /C /Y |
64 | | -xcopy "$(TargetDir)LimitedConcurrencyAsync-AddIn.dna*" "$(TargetDir)LimitedConcurrencyAsync-AddIn64.dna*" /C /Y |
65 | | -xcopy "$(ProjectDir)packages\Excel-DNA.0.32.0\tools\ExcelDna64.xll" "$(TargetDir)LimitedConcurrencyAsync-AddIn64.xll*" /C /Y |
66 | | -"$(ProjectDir)packages\Excel-DNA.0.32.0\tools\ExcelDnaPack.exe" "$(TargetDir)LimitedConcurrencyAsync-AddIn.dna" /Y |
67 | | -"$(ProjectDir)packages\Excel-DNA.0.32.0\tools\ExcelDnaPack.exe" "$(TargetDir)LimitedConcurrencyAsync-AddIn64.dna" /Y</PostBuildEvent> |
| 62 | + <PostBuildEvent> |
| 63 | + </PostBuildEvent> |
68 | 64 | </PropertyGroup> |
| 65 | + <Import Project="packages\ExcelDna.AddIn.0.34.6\tools\ExcelDna.AddIn.targets" Condition="Exists('packages\ExcelDna.AddIn.0.34.6\tools\ExcelDna.AddIn.targets')" /> |
| 66 | + <Target Name="EnsureExcelDnaTargetsImported" BeforeTargets="BeforeBuild" Condition="'$(ExcelDnaTargetsImported)' == ''"> |
| 67 | + <Error Condition="!Exists('packages\ExcelDna.AddIn.0.34.6\tools\ExcelDna.AddIn.targets') And ('$(RunExcelDnaBuild)' != '' And $(RunExcelDnaBuild))" Text="You are trying to build with ExcelDna, but the NuGet targets file that ExcelDna depends on is not available on this computer. This is probably because the ExcelDna package has not been committed to source control, or NuGet Package Restore is not enabled. Please enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=317567." HelpKeyword="BCLBUILD2001" /> |
| 68 | + <Error Condition="Exists('packages\ExcelDna.AddIn.0.34.6\tools\ExcelDna.AddIn.targets') And ('$(RunExcelDnaBuild)' != '' And $(RunExcelDnaBuild))" Text="ExcelDna cannot be run because NuGet packages were restored prior to the build running, and the targets file was unavailable when the build started. Please build the project again to include these packages in the build. You may also need to make sure that your build server does not delete packages prior to each build. For more information, see http://go.microsoft.com/fwlink/?LinkID=317568." HelpKeyword="BCLBUILD2002" /> |
| 69 | + </Target> |
69 | 70 | <!-- To modify your build process, add your task inside one of the targets below and uncomment it. |
70 | 71 | Other similar extension points exist, see Microsoft.Common.targets. |
71 | 72 | <Target Name="BeforeBuild"> |
|
0 commit comments