Skip to content

Commit aa611b6

Browse files
author
sagi
committedAug 15, 2023
Update FormulaEvaluate to SDK-style
1 parent 6247147 commit aa611b6

File tree

6 files changed

+25
-245
lines changed

6 files changed

+25
-245
lines changed
 

‎VBA-to-.NET/FormulaEvaluateConvert/FormulaEvaluate/FormulaEvaluate-AddIn.dna

-23
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -1,135 +1,12 @@
1-
<?xml version="1.0" encoding="utf-8"?>
2-
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3-
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
4-
<PropertyGroup>
5-
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6-
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7-
<ProjectGuid>{2339F95A-6632-403F-9ED8-7CE80BB2CD04}</ProjectGuid>
8-
<OutputType>Library</OutputType>
9-
<RootNamespace>FormulaEvaluate</RootNamespace>
10-
<AssemblyName>FormulaEvaluate</AssemblyName>
11-
<FileAlignment>512</FileAlignment>
12-
<MyType>Windows</MyType>
13-
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
14-
<Deterministic>true</Deterministic>
15-
<NuGetPackageImportStamp>
16-
</NuGetPackageImportStamp>
17-
</PropertyGroup>
18-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
19-
<DebugSymbols>true</DebugSymbols>
20-
<DebugType>full</DebugType>
21-
<DefineDebug>true</DefineDebug>
22-
<DefineTrace>true</DefineTrace>
23-
<OutputPath>bin\Debug\</OutputPath>
24-
<DocumentationFile>FormulaEvaluate.xml</DocumentationFile>
25-
<NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
26-
</PropertyGroup>
27-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
28-
<DebugType>pdbonly</DebugType>
29-
<DefineDebug>false</DefineDebug>
30-
<DefineTrace>true</DefineTrace>
31-
<Optimize>true</Optimize>
32-
<OutputPath>bin\Release\</OutputPath>
33-
<DocumentationFile>FormulaEvaluate.xml</DocumentationFile>
34-
<NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
35-
</PropertyGroup>
36-
<PropertyGroup>
37-
<OptionExplicit>On</OptionExplicit>
38-
</PropertyGroup>
39-
<PropertyGroup>
40-
<OptionCompare>Binary</OptionCompare>
41-
</PropertyGroup>
42-
<PropertyGroup>
43-
<OptionStrict>Off</OptionStrict>
44-
</PropertyGroup>
45-
<PropertyGroup>
46-
<OptionInfer>On</OptionInfer>
47-
</PropertyGroup>
48-
<ItemGroup>
49-
<Reference Include="ExcelDna.Integration, Version=1.1.0.0, Culture=neutral, PublicKeyToken=f225e9659857edbe, processorArchitecture=MSIL">
50-
<HintPath>packages\ExcelDna.Integration.1.1.0\lib\ExcelDna.Integration.dll</HintPath>
51-
</Reference>
52-
<Reference Include="Microsoft.Office.Interop.Excel, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c, processorArchitecture=MSIL">
53-
<HintPath>packages\ExcelDna.Interop.14.0.1\lib\Microsoft.Office.Interop.Excel.dll</HintPath>
54-
<EmbedInteropTypes>False</EmbedInteropTypes>
55-
</Reference>
56-
<Reference Include="Microsoft.Vbe.Interop, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c, processorArchitecture=MSIL">
57-
<HintPath>packages\ExcelDna.Interop.14.0.1\lib\Microsoft.Vbe.Interop.dll</HintPath>
58-
<EmbedInteropTypes>False</EmbedInteropTypes>
59-
</Reference>
60-
<Reference Include="Office, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c, processorArchitecture=MSIL">
61-
<HintPath>packages\ExcelDna.Interop.14.0.1\lib\Office.dll</HintPath>
62-
<EmbedInteropTypes>False</EmbedInteropTypes>
63-
</Reference>
64-
<Reference Include="System" />
65-
<Reference Include="System.Data" />
66-
<Reference Include="System.Xml" />
67-
<Reference Include="System.Core" />
68-
<Reference Include="System.Xml.Linq" />
69-
<Reference Include="System.Data.DataSetExtensions" />
70-
<Reference Include="System.Net.Http" />
71-
</ItemGroup>
72-
<ItemGroup>
73-
<Import Include="Microsoft.VisualBasic" />
74-
<Import Include="System" />
75-
<Import Include="System.Collections" />
76-
<Import Include="System.Collections.Generic" />
77-
<Import Include="System.Data" />
78-
<Import Include="System.Diagnostics" />
79-
<Import Include="System.Linq" />
80-
<Import Include="System.Xml.Linq" />
81-
<Import Include="System.Threading.Tasks" />
82-
</ItemGroup>
83-
<ItemGroup>
84-
<Compile Include="clsMathParser.vb" />
85-
<Compile Include="mExcelHelpers.vb" />
86-
<Compile Include="mExcelMacros.vb" />
87-
<Compile Include="mFunHelpers.vb" />
88-
<Compile Include="mMathSpecFun.vb" />
89-
<Compile Include="My Project\AssemblyInfo.vb" />
90-
<Compile Include="My Project\Application.Designer.vb">
91-
<AutoGen>True</AutoGen>
92-
<DependentUpon>Application.myapp</DependentUpon>
93-
</Compile>
94-
<Compile Include="My Project\Resources.Designer.vb">
95-
<AutoGen>True</AutoGen>
96-
<DesignTime>True</DesignTime>
97-
<DependentUpon>Resources.resx</DependentUpon>
98-
</Compile>
99-
<Compile Include="My Project\Settings.Designer.vb">
100-
<AutoGen>True</AutoGen>
101-
<DependentUpon>Settings.settings</DependentUpon>
102-
<DesignTimeSharedInput>True</DesignTimeSharedInput>
103-
</Compile>
104-
</ItemGroup>
105-
<ItemGroup>
106-
<EmbeddedResource Include="My Project\Resources.resx">
107-
<Generator>VbMyResourcesResXFileCodeGenerator</Generator>
108-
<LastGenOutput>Resources.Designer.vb</LastGenOutput>
109-
<CustomToolNamespace>My.Resources</CustomToolNamespace>
110-
<SubType>Designer</SubType>
111-
</EmbeddedResource>
112-
</ItemGroup>
113-
<ItemGroup>
114-
<None Include="FormulaEvaluate-AddIn.dna" />
115-
<None Include="My Project\Application.myapp">
116-
<Generator>MyApplicationCodeGenerator</Generator>
117-
<LastGenOutput>Application.Designer.vb</LastGenOutput>
118-
</None>
119-
<None Include="My Project\Settings.settings">
120-
<Generator>SettingsSingleFileGenerator</Generator>
121-
<CustomToolNamespace>My</CustomToolNamespace>
122-
<LastGenOutput>Settings.Designer.vb</LastGenOutput>
123-
</None>
124-
<None Include="packages.config" />
125-
<None Include="Properties\ExcelDna.Build.props" />
126-
</ItemGroup>
127-
<Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.targets" />
128-
<Import Project="packages\ExcelDna.AddIn.1.1.1\build\ExcelDna.AddIn.targets" Condition="Exists('packages\ExcelDna.AddIn.1.1.1\build\ExcelDna.AddIn.targets')" />
129-
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
130-
<PropertyGroup>
131-
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
132-
</PropertyGroup>
133-
<Error Condition="!Exists('packages\ExcelDna.AddIn.1.1.1\build\ExcelDna.AddIn.targets')" Text="$([System.String]::Format('$(ErrorText)', 'packages\ExcelDna.AddIn.1.1.1\build\ExcelDna.AddIn.targets'))" />
134-
</Target>
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<TargetFrameworks>net472</TargetFrameworks>
5+
</PropertyGroup>
6+
7+
<ItemGroup>
8+
<PackageReference Include="ExcelDna.Addin" Version="*-*" />
9+
<PackageReference Include="ExcelDna.Interop" Version="15.0.1" />
10+
</ItemGroup>
11+
13512
</Project>

‎VBA-to-.NET/FormulaEvaluateConvert/FormulaEvaluate/My Project/AssemblyInfo.vb

+5-5
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ Imports System.Runtime.InteropServices
88

99
' Review the values of the assembly attributes
1010

11-
<Assembly: AssemblyTitle("FormulaEvaluate")>
11+
'<Assembly: AssemblyTitle("FormulaEvaluate")>
1212
<Assembly: AssemblyDescription("")>
13-
<Assembly: AssemblyCompany("")>
14-
<Assembly: AssemblyProduct("FormulaEvaluate")>
13+
'<Assembly: AssemblyCompany("")>
14+
'<Assembly: AssemblyProduct("FormulaEvaluate")>
1515
<Assembly: AssemblyCopyright("Copyright © 2021")>
1616
<Assembly: AssemblyTrademark("")>
1717

@@ -31,5 +31,5 @@ Imports System.Runtime.InteropServices
3131
' by using the '*' as shown below:
3232
' <Assembly: AssemblyVersion("1.0.*")>
3333

34-
<Assembly: AssemblyVersion("1.0.0.0")>
35-
<Assembly: AssemblyFileVersion("1.0.0.0")>
34+
'<Assembly: AssemblyVersion("1.0.0.0")>
35+
'<Assembly: AssemblyFileVersion("1.0.0.0")>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"profiles": {
3+
"Excel": {
4+
"commandName": "Executable",
5+
"executablePath": "C:\\Program Files\\Microsoft Office\\root\\Office16\\EXCEL.EXE",
6+
"commandLineArgs": "/x \"FormulaEvaluate-AddIn64.xll\""
7+
}
8+
}
9+
}

‎VBA-to-.NET/FormulaEvaluateConvert/FormulaEvaluate/Properties/ExcelDna.Build.props

-77
This file was deleted.

‎VBA-to-.NET/FormulaEvaluateConvert/FormulaEvaluate/packages.config

-6
This file was deleted.

0 commit comments

Comments
 (0)
Please sign in to comment.