-
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.
- Loading branch information
Showing
12 changed files
with
207 additions
and
21 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,5 @@ obj | |
packages/ | ||
*.user | ||
**/*.assets.cache | ||
Generated Files | ||
Generated Files | ||
*.nupkg |
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<OutputType>WinExe</OutputType> | ||
<TargetFramework>net6.0-windows10.0.22621.0</TargetFramework> | ||
<TargetPlatformMinVersion>10.0.17763.0</TargetPlatformMinVersion> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
<SelfContained>true</SelfContained> | ||
<CsWinRTComponent>true</CsWinRTComponent> | ||
<Platforms>x64</Platforms> | ||
<RuntimeIdentifier>win10-x64</RuntimeIdentifier> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup> | ||
<RestoreSources> | ||
https://api.nuget.org/v3/index.json; | ||
../SDKCsProjection/nuget | ||
</RestoreSources> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="SDKCsProjection" Version="0.0.1" /> | ||
<PackageReference Include="Microsoft.Windows.CsWinRT" Version="2.0.3" /> | ||
</ItemGroup> | ||
|
||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
using ABI.Windows.Foundation; | ||
using ABI.WinRT.Interop; | ||
using AppExtensionCSharp; | ||
using Windows.ApplicationModel.Core; | ||
using Windows.Foundation; | ||
using Windows.Graphics.Capture; | ||
using WinRT.Interop; | ||
|
||
internal static class Program | ||
{ | ||
public static void Main() | ||
{ | ||
CoreApplication.RunWithActivationFactories(new ActivationFactoryGetter()); | ||
} | ||
} | ||
|
||
internal class ActivationFactoryGetter : IGetActivationFactory | ||
{ | ||
public object GetActivationFactory(string activatableClassId) | ||
{ | ||
return WinRT.Module.GetActivationFactory(activatableClassId); | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace AppExtensionCSharp | ||
{ | ||
public sealed class WidgetProvider : SDK.IWidgetProvider | ||
{ | ||
public WidgetProvider() { } | ||
|
||
public string SayHello() | ||
{ | ||
return "Greeting from C# Extension!"; | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<Project> | ||
<PropertyGroup> | ||
<BuildOutDir>$([MSBuild]::NormalizeDirectory('$(SolutionDir)', '_build', '$(Platform)', '$(Configuration)'))</BuildOutDir> | ||
<OutDir>$([MSBuild]::NormalizeDirectory('$(BuildOutDir)', '$(MSBuildProjectName)', 'bin'))</OutDir> | ||
<IntDir>$([MSBuild]::NormalizeDirectory('$(BuildOutDir)', '$(MSBuildProjectName)', 'obj'))</IntDir> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>net6.0-windows10.0.22621.0</TargetFramework> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
<Nullable>enable</Nullable> | ||
<Platform>AnyCPU</Platform> | ||
<ResolveAssemblyWarnOrErrorOnTargetArchitectureMismatch>None</ResolveAssemblyWarnOrErrorOnTargetArchitectureMismatch> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Microsoft.Windows.CsWinRT" Version="2.0.3" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\SDK\SDK.vcxproj" /> | ||
</ItemGroup> | ||
|
||
<PropertyGroup> | ||
<CsWinRTIncludes>SDK</CsWinRTIncludes> | ||
<CsWinRTGeneratedFilesDir>$(OutDir)</CsWinRTGeneratedFilesDir> | ||
<GeneratedNugetDir>.\nuget\</GeneratedNugetDir> | ||
<NuspecFile>$(GeneratedNugetDir)SDKCsProjection.nuspec</NuspecFile> | ||
<OutputPath>$(GeneratedNugetDir)</OutputPath> | ||
<GeneratePackageOnBuild>true</GeneratePackageOnBuild> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<package xmlns="http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd"> | ||
<metadata> | ||
<id>SDKCsProjection</id> | ||
<version>0.0.1</version> | ||
<authors>Roxk</authors> | ||
<description>SDK Projection</description> | ||
<dependencies> | ||
<group targetFramework="net6.0-windows10.0.22621.0" /> | ||
</dependencies> | ||
</metadata> | ||
<files> | ||
<file src="..\..\_build\AnyCPU\Release\SDKCsProjection\bin\SDKCsProjection.dll" target="lib\net6.0-windows10.0.22621.0\SDKCsProjection.dll" /> | ||
<file src="..\..\x64\Release\SDK\SDK.dll" target="runtimes\win10-x64\native\SDK.dll" /> | ||
</files> | ||
</package> |