diff options
Diffstat (limited to 'ExcelAddIn.csproj')
-rw-r--r-- | ExcelAddIn.csproj | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/ExcelAddIn.csproj b/ExcelAddIn.csproj new file mode 100644 index 0000000..57c5362 --- /dev/null +++ b/ExcelAddIn.csproj @@ -0,0 +1,24 @@ +<Project Sdk="Microsoft.NET.Sdk"> + + <PropertyGroup> + <TargetFramework>net6.0-windows</TargetFramework> + <ImplicitUsings>enable</ImplicitUsings> + <Nullable>disable</Nullable> + </PropertyGroup> + + <ItemGroup> + <PackageReference Include="ExcelDna.AddIn" Version="1.6.0" /> + <PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="7.0.0" /> + <PackageReference Include="Microsoft.Extensions.Http" Version="7.0.0" /> + </ItemGroup> + + <Target Name="PackedReferences" AfterTargets="AfterBuild" BeforeTargets="ExcelDnaBuild"> + <ItemGroup> + <References Include="$(OutDir)*.dll" Exclude="$(OutDir)$(TargetFileName)" /> + </ItemGroup> + <PropertyGroup> + <ExcelAddInInclude>@(References)</ExcelAddInInclude> + </PropertyGroup> + </Target> + +</Project>
\ No newline at end of file |