Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Authoring support for C# built-in types to WinRT types (#631)
* Initial custom type mapping support and bug fixes. * Bug fixes. * Custom type mappings and various fixes. * Fix file paths. * Fix merge. * PR feedback. * PR feedback. * PR feedback. * Disable test temporarily.
- Loading branch information
1 parent
b89f261
commit 69e9264
Showing
14 changed files
with
4,496 additions
and
3,267 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
54 changes: 37 additions & 17 deletions
54
src/Authoring/AuthoringConsumptionTest/AuthoringConsumptionTest.exe.manifest
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,18 +1,38 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1"> | ||
<assemblyIdentity version="1.0.0.0" name="CppTestApp"/> | ||
<file name="WinRT.Host.dll"> | ||
<activatableClass | ||
name="AuthoringSample.BasicClass" | ||
threadingModel="both" | ||
xmlns="urn:schemas-microsoft-com:winrt.v1" /> | ||
<activatableClass | ||
name="AuthoringSample.CustomWWW" | ||
threadingModel="both" | ||
xmlns="urn:schemas-microsoft-com:winrt.v1" /> | ||
<activatableClass | ||
name="AuthoringSample.TestClass" | ||
threadingModel="both" | ||
xmlns="urn:schemas-microsoft-com:winrt.v1" /> | ||
</file> | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1"> | ||
<assemblyIdentity version="1.0.0.0" name="CppTestApp"/> | ||
<file name="WinRT.Host.dll"> | ||
<activatableClass | ||
name="AuthoringSample.BasicClass" | ||
threadingModel="both" | ||
xmlns="urn:schemas-microsoft-com:winrt.v1" /> | ||
<activatableClass | ||
name="AuthoringSample.CustomDictionary" | ||
threadingModel="both" | ||
xmlns="urn:schemas-microsoft-com:winrt.v1" /> | ||
<activatableClass | ||
name="AuthoringSample.CustomReadOnlyDictionary" | ||
threadingModel="both" | ||
xmlns="urn:schemas-microsoft-com:winrt.v1" /> | ||
<activatableClass | ||
name="AuthoringSample.CustomVector" | ||
threadingModel="both" | ||
xmlns="urn:schemas-microsoft-com:winrt.v1" /> | ||
<activatableClass | ||
name="AuthoringSample.CustomVectorView" | ||
threadingModel="both" | ||
xmlns="urn:schemas-microsoft-com:winrt.v1" /> | ||
<activatableClass | ||
name="AuthoringSample.CustomWWW" | ||
threadingModel="both" | ||
xmlns="urn:schemas-microsoft-com:winrt.v1" /> | ||
<activatableClass | ||
name="AuthoringSample.DisposableClass" | ||
threadingModel="both" | ||
xmlns="urn:schemas-microsoft-com:winrt.v1" /> | ||
<activatableClass | ||
name="AuthoringSample.TestClass" | ||
threadingModel="both" | ||
xmlns="urn:schemas-microsoft-com:winrt.v1" /> | ||
</file> | ||
</assembly> |
310 changes: 155 additions & 155 deletions
310
src/Authoring/AuthoringConsumptionTest/AuthoringConsumptionTest.vcxproj
Large diffs are not rendered by default.
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
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.googletest.v140.windesktop.msvcstl.static.rt-dyn" version="1.8.1.3" targetFramework="native" /> | ||
<package id="Microsoft.Windows.CppWinRT" version="2.0.200703.9" targetFramework="native" /> | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<packages> | ||
<package id="Microsoft.googletest.v140.windesktop.msvcstl.static.rt-dyn" version="1.8.1.3" targetFramework="native" /> | ||
<package id="Microsoft.Windows.CppWinRT" version="2.0.201113.7" targetFramework="native" /> | ||
</packages> |
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,28 +1,23 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>net5.0</TargetFramework> | ||
<Platforms>x64;x86</Platforms> | ||
<LangVersion>preview</LangVersion> | ||
<AssemblyVersion>1.0.0.0</AssemblyVersion> | ||
<CsWinRTEnableLogging>true</CsWinRTEnableLogging> | ||
<CsWinRTComponent>true</CsWinRTComponent> | ||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks> | ||
<GeneratedFilesDir Condition="'$(GeneratedFilesDir)'==''">$([MSBuild]::NormalizeDirectory('$(MSBuildProjectDirectory)', '$(IntermediateOutputPath)', 'Generated Files'))</GeneratedFilesDir> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<CompilerVisibleProperty Include="AssemblyName" /> | ||
<CompilerVisibleProperty Include="AssemblyVersion" /> | ||
<CompilerVisibleProperty Include="CsWinRTComponent" /> | ||
<CompilerVisibleProperty Include="CsWinRTEnableLogging" /> | ||
<CompilerVisibleProperty Include="GeneratedFilesDir" /> | ||
<CompilerVisibleProperty Include="CsWinRTExe" /> | ||
|
||
<ProjectReference Include="..\..\Projections\Windows\Windows.csproj" /> | ||
<ProjectReference Include="..\WinRT.SourceGenerator\WinRT.SourceGenerator.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" /> | ||
<ProjectReference Include="..\..\cswinrt\cswinrt.vcxproj" /> | ||
<ProjectReference Include="..\..\WinRT.Runtime\WinRT.Runtime.csproj" /> | ||
</ItemGroup> | ||
|
||
</Project> | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>net5.0</TargetFramework> | ||
<Platforms>x64;x86</Platforms> | ||
<LangVersion>preview</LangVersion> | ||
<AssemblyVersion>1.0.0.0</AssemblyVersion> | ||
<CsWinRTEnableLogging>true</CsWinRTEnableLogging> | ||
<CsWinRTComponent>true</CsWinRTComponent> | ||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks> | ||
<GeneratedFilesDir Condition="'$(GeneratedFilesDir)'==''">$([MSBuild]::NormalizeDirectory('$(MSBuildProjectDirectory)', '$(IntermediateOutputPath)', 'Generated Files'))</GeneratedFilesDir> | ||
<!-- Enable to diagnose generation issues --> | ||
<!-- <CsWinRTKeepGeneratedSources>true</CsWinRTKeepGeneratedSources> --> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\..\Projections\Windows\Windows.csproj" /> | ||
<ProjectReference Include="..\WinRT.SourceGenerator\WinRT.SourceGenerator.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" /> | ||
<ProjectReference Include="..\..\cswinrt\cswinrt.vcxproj" /> | ||
<ProjectReference Include="..\..\WinRT.Runtime\WinRT.Runtime.csproj" /> | ||
</ItemGroup> | ||
|
||
</Project> |
Oops, something went wrong.