forked from microsoft/CsWinRT
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Project COM interop APIs (microsoft#830)
* add COM interop API projections and tests * revising tests * Added cswinrt support for interop interfaces * remove UAC check on IPrinting3DManagerInterop * clarified wording * updated to latest cppwinrt to disable mdmerge validation * Removed Printing3DManager, as not in universal contract * minor tweaks * typo * fix incorrect merge conflict * add comment on unit tests * restored cswinrt nuget package reference to resolve NETSDK1130 errors * add COM interop wrappers * fully automate COM interop support for Windows SDK projection * PR feedback Co-authored-by: Scott Jones <[email protected]>
- Loading branch information
1 parent
fa038af
commit 0a35e01
Showing
27 changed files
with
1,150 additions
and
362 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,39 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFrameworks>netstandard2.0;net5.0</TargetFrameworks> | ||
<Platforms>x64;x86</Platforms> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="System.Numerics.Vectors" Version="4.5.0" /> | ||
<ProjectReference Include="..\..\WinRT.Runtime\WinRT.Runtime.csproj" /> | ||
<ProjectReference Include="..\..\cswinrt\cswinrt.vcxproj" /> | ||
</ItemGroup> | ||
|
||
<PropertyGroup> | ||
<CsWinRTFilters> | ||
-include Windows | ||
# Exclude Windows.UI, Windows.UI.Text, Windows.UI.Xaml per Microsoft.Windows.SDK.WinUI.Contracts NuGet | ||
-include Windows.UI.Popups | ||
-exclude Windows.UI.Colors | ||
-exclude Windows.UI.IColors | ||
-exclude Windows.UI.ColorHelper | ||
-exclude Windows.UI.IColorHelper | ||
#-exclude Windows.UI.Text (must include Windows.UI.Text to work around WinUI nuget issues) | ||
-exclude Windows.UI.Xaml | ||
-exclude Windows.ApplicationModel.Store.Preview | ||
# Allow Windows.UI.Text, Windows.UI.Xaml types used in other namespaces | ||
-include Windows.UI.Text.FontStretch | ||
-include Windows.UI.Text.FontStyle | ||
-include Windows.UI.Text.FontWeight | ||
-include Windows.UI.Text.UnderlineType | ||
-include Windows.UI.Xaml.Media.Animation.ConditionallyIndependentlyAnimatableAttribute | ||
</CsWinRTFilters> | ||
</PropertyGroup> | ||
|
||
</Project> | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFrameworks>netstandard2.0;net5.0</TargetFrameworks> | ||
<Platforms>x64;x86</Platforms> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="System.Numerics.Vectors" Version="4.5.0" /> | ||
<ProjectReference Include="..\..\WinRT.Runtime\WinRT.Runtime.csproj" /> | ||
<ProjectReference Include="..\..\cswinrt\cswinrt.vcxproj" /> | ||
</ItemGroup> | ||
|
||
<PropertyGroup> | ||
<CsWinRTFilters> | ||
-include Windows | ||
# Exclude Windows.UI, Windows.UI.Text, Windows.UI.Xaml per Microsoft.Windows.SDK.WinUI.Contracts NuGet | ||
-include Windows.UI.Popups | ||
-exclude Windows.UI.Colors | ||
-exclude Windows.UI.IColors | ||
-exclude Windows.UI.ColorHelper | ||
-exclude Windows.UI.IColorHelper | ||
#-exclude Windows.UI.Text (must include Windows.UI.Text to work around WinUI nuget issues) | ||
-exclude Windows.UI.Xaml | ||
-exclude Windows.ApplicationModel.Store.Preview | ||
# Allow Windows.UI.Text, Windows.UI.Xaml types used in other namespaces | ||
-include Windows.UI.Text.FontStretch | ||
-include Windows.UI.Text.FontStyle | ||
-include Windows.UI.Text.FontWeight | ||
-include Windows.UI.Text.UnderlineType | ||
-include Windows.UI.Xaml.Media.Animation.ConditionallyIndependentlyAnimatableAttribute | ||
</CsWinRTFilters> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup> | ||
<DefineConstants>TRACE;MANUAL_IUNKNOWN,UAC_VERSION_13</DefineConstants> | ||
</PropertyGroup> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,15 @@ | ||
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" > | ||
|
||
<Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)../'))" /> | ||
<Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)../'))" /> | ||
|
||
<!--Only need the WinUI winmd files for compiling idl, so stub out Xaml targets--> | ||
<Target Name="MarkupCompilePass1" /> | ||
<Target Name="MarkupCompilePass2" /> | ||
<Target Name="Prep_ComputeProcessXamlFiles" /> | ||
<PropertyGroup> | ||
<!--Avoid UniversalApiContract type not found error--> | ||
<CppWinRTMergeNoValidate>true</CppWinRTMergeNoValidate> | ||
</PropertyGroup> | ||
|
||
<!--Only need the WinUI winmd files for compiling idl, so stub out Xaml targets--> | ||
<Target Name="MarkupCompilePass1" /> | ||
<Target Name="MarkupCompilePass2" /> | ||
<Target Name="Prep_ComputeProcessXamlFiles" /> | ||
|
||
</Project> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<packages> | ||
<package id="Microsoft.Windows.CppWinRT" version="2.0.200615.7" targetFramework="native" /> | ||
<package id="Microsoft.WinUI" version="3.0.0-preview1.200515.3" targetFramework="native" /> | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<packages> | ||
<package id="Microsoft.Windows.CppWinRT" version="2.0.210504.3" targetFramework="native" /> | ||
<package id="Microsoft.WinUI" version="3.0.0-preview1.200515.3" targetFramework="native" /> | ||
</packages> |
Oops, something went wrong.