-
Notifications
You must be signed in to change notification settings - Fork 636
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support embedded interop types #13813
Changes from all commits
e111360
1ce7ad6
18dffd7
db0dcf8
1ab6a48
e5a1107
18dd45c
27fc856
534190c
2c778e6
4b46443
585aeef
cab284e
0f5c01c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> | ||
<DocumentationFile>..\..\..\bin\AnyCPU\Debug\en-US\FFITarget.xml</DocumentationFile> | ||
</PropertyGroup> | ||
<ItemGroup Condition=" '$(TargetFramework)' == 'net48' "> | ||
<ItemGroup Condition=" '$(TargetFramework)' == 'net48'"> | ||
<PackageReference Include="NUnitTestAdapter" Version="2.3.0" ExcludeAssets="all" /> | ||
<Reference Include="System" /> | ||
<Reference Include="System.Core" /> | ||
|
@@ -22,9 +22,17 @@ | |
<Reference Include="Microsoft.CSharp" /> | ||
<Reference Include="System.Data" /> | ||
<Reference Include="System.Xml" /> | ||
<Reference Include="$(PkgMicrosoft_Office_Interop_Excel)\lib\net20\Microsoft.Office.Interop.Excel.dll"> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. should this reference be wrapped in a condition for now? (I mean the one below) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. will this make it to the bin folder? I think we purposefully removed it at some point. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. totally forgot about test dlls. Will work on removing them There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. done |
||
<EmbedInteropTypes>True</EmbedInteropTypes> | ||
<WrapperTool>tlbimp</WrapperTool> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. what is this? |
||
<Private>False</Private> | ||
</Reference> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.3.2" /> | ||
<PackageReference Include="Microsoft.Office.Interop.Excel" Version="15.0.4795.1000" GeneratePathProperty="true"> | ||
<ExcludeAssets>all</ExcludeAssets> | ||
</PackageReference> | ||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.3.2" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<ProjectReference Include="..\..\..\src\DynamoCore\DynamoCore.csproj"> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
using System; | ||
|
||
namespace EmbeddedInterop | ||
{ | ||
/// <summary> | ||
/// Tests for basic functional testing of FFI implementations | ||
/// </summary> | ||
public class EmbeddedInteropTestClass | ||
{ | ||
public static Microsoft.Office.Interop.Excel.XlPivotLineType GetExcelInteropType() | ||
{ | ||
return Microsoft.Office.Interop.Excel.XlPivotLineType.xlPivotLineBlank; | ||
} | ||
|
||
public static bool TestExcelInteropType(Microsoft.Office.Interop.Excel.XlPivotLineType arg1) | ||
{ | ||
if (arg1 == Microsoft.Office.Interop.Excel.XlPivotLineType.xlPivotLineBlank) | ||
return true; | ||
|
||
return false; | ||
} | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<PropertyGroup> | ||
<TargetFramework>netstandard2.0</TargetFramework> | ||
<OutputType>Library</OutputType> | ||
<AppDesignerFolder>Properties</AppDesignerFolder> | ||
<RootNamespace>EmbeddedInterop</RootNamespace> | ||
<AssemblyName>EmbeddedInterop</AssemblyName> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<PackageReference Include="Microsoft.Office.Interop.Excel" Version="15.0.4795.1000" GeneratePathProperty="true"> | ||
<ExcludeAssets>all</ExcludeAssets> | ||
</PackageReference> | ||
<Reference Include="$(PkgMicrosoft_Office_Interop_Excel)\lib\net20\Microsoft.Office.Interop.Excel.dll"> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. so is there anything in this binary except for the office types? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. no, just office types and a wrapping class |
||
<EmbedInteropTypes>True</EmbedInteropTypes> | ||
<WrapperTool>tlbimp</WrapperTool> | ||
<Private>False</Private> | ||
</Reference> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.3.2" /> | ||
</ItemGroup> | ||
</Project> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this comment entirely accurate anymore?