-
Notifications
You must be signed in to change notification settings - Fork 26
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
1 parent
f656e8e
commit ed3e8b6
Showing
16 changed files
with
213 additions
and
55 deletions.
There are no files selected for viewing
File renamed without changes.
31 changes: 31 additions & 0 deletions
31
...m)/Avalonia/SimpleVideoCapture/SimpleVideoCaptureA.Linux/SimpleVideoCaptureA.Linux.csproj
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,31 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<PropertyGroup> | ||
<!--If you are willing to use Windows/MacOS native APIs you will need to create 3 projects. | ||
One for Windows with net7.0-windows TFM, one for MacOS with net7.0-macos and one with net7.0 TFM for Linux.--> | ||
<Nullable>disable</Nullable> | ||
<BuiltInComInteropSupport>true</BuiltInComInteropSupport> | ||
<ApplicationManifest>app.manifest</ApplicationManifest> | ||
<!-- <ApplicationId>com.visioforge.simplevideocaptureax</ApplicationId>--> | ||
|
||
<TargetFramework>net7.0</TargetFramework> | ||
<OutputType>WinExe</OutputType> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> | ||
<CreatePackage>false</CreatePackage> | ||
<UseSGen>false</UseSGen> | ||
<WarningLevel>4</WarningLevel> | ||
<LinkMode>None</LinkMode> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> | ||
<CreatePackage>false</CreatePackage> | ||
<UseSGen>false</UseSGen> | ||
<LinkMode>None</LinkMode> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<PackageReference Include="Avalonia.Desktop" Version="$(AvaloniaVersion)" /> | ||
<!-- <PackageReference Include="VisioForge.CrossPlatform.Core.macOS" Version="15.7.1" />--> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<ProjectReference Include="..\SimpleVideoCaptureA\SimpleVideoCaptureA.csproj" /> | ||
</ItemGroup> | ||
</Project> |
6 changes: 6 additions & 0 deletions
6
...alonia/SimpleVideoCapture/SimpleVideoCaptureA.Linux/SimpleVideoCaptureA.Linux.csproj.user
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,6 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<PropertyGroup> | ||
<_LastSelectedProfileId>C:\Projects\_Projects\MediaFrameworkDotNet\_SETUP\FILES\Demos\Video Capture SDK X %28crossplatform%29\Avalonia\SimpleVideoCapture\SimpleVideoCaptureA.Linux\Properties\PublishProfiles\FolderProfile.pubxml</_LastSelectedProfileId> | ||
</PropertyGroup> | ||
</Project> |
File renamed without changes.
File renamed without changes.
File renamed without changes.
24 changes: 24 additions & 0 deletions
24
...re SDK X (crossplatform)/Avalonia/SimpleVideoCapture/SimpleVideoCaptureA.MacOS/Program.cs
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,24 @@ | ||
using System; | ||
|
||
using Avalonia; | ||
using Avalonia.ReactiveUI; | ||
|
||
namespace SimpleVideoCaptureA.Desktop; | ||
|
||
class Program | ||
{ | ||
// Initialization code. Don't use any Avalonia, third-party APIs or any | ||
// SynchronizationContext-reliant code before AppMain is called: things aren't initialized | ||
// yet and stuff might break. | ||
[STAThread] | ||
public static void Main(string[] args) => BuildAvaloniaApp() | ||
.StartWithClassicDesktopLifetime(args); | ||
|
||
// Avalonia configuration, don't remove; also used by visual designer. | ||
public static AppBuilder BuildAvaloniaApp() | ||
=> AppBuilder.Configure<App>() | ||
.UsePlatformDetect() | ||
.WithInterFont() | ||
.LogToTrace() | ||
.UseReactiveUI(); | ||
} |
31 changes: 31 additions & 0 deletions
31
...m)/Avalonia/SimpleVideoCapture/SimpleVideoCaptureA.MacOS/SimpleVideoCaptureA.MacOS.csproj
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,31 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<PropertyGroup> | ||
<!--If you are willing to use Windows/MacOS native APIs you will need to create 3 projects. | ||
One for Windows with net7.0-windows TFM, one for MacOS with net7.0-macos and one with net7.0 TFM for Linux.--> | ||
<Nullable>disable</Nullable> | ||
<BuiltInComInteropSupport>true</BuiltInComInteropSupport> | ||
<ApplicationManifest>app.manifest</ApplicationManifest> | ||
<!-- <ApplicationId>com.visioforge.simplevideocaptureax</ApplicationId>--> | ||
<TargetFramework>net7.0-macos10.14</TargetFramework> | ||
<OutputType>Exe</OutputType> | ||
<RuntimeIdentifiers>osx-arm64</RuntimeIdentifiers> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> | ||
<CreatePackage>false</CreatePackage> | ||
<UseSGen>false</UseSGen> | ||
<WarningLevel>4</WarningLevel> | ||
<LinkMode>None</LinkMode> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> | ||
<CreatePackage>false</CreatePackage> | ||
<UseSGen>false</UseSGen> | ||
<LinkMode>None</LinkMode> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<PackageReference Include="Avalonia.Desktop" Version="$(AvaloniaVersion)" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<ProjectReference Include="..\SimpleVideoCaptureA\SimpleVideoCaptureA.csproj" /> | ||
</ItemGroup> | ||
</Project> |
File renamed without changes.
18 changes: 18 additions & 0 deletions
18
... SDK X (crossplatform)/Avalonia/SimpleVideoCapture/SimpleVideoCaptureA.MacOS/app.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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1"> | ||
<!-- This manifest is used on Windows only. | ||
Don't remove it as it might cause problems with window transparency and embeded controls. | ||
For more details visit https://learn.microsoft.com/en-us/windows/win32/sbscs/application-manifests --> | ||
<assemblyIdentity version="1.0.0.0" name="AvaloniaTest.Desktop"/> | ||
|
||
<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1"> | ||
<application> | ||
<!-- A list of the Windows versions that this application has been tested on | ||
and is designed to work with. Uncomment the appropriate elements | ||
and Windows will automatically select the most compatible environment. --> | ||
|
||
<!-- Windows 10 --> | ||
<supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}" /> | ||
</application> | ||
</compatibility> | ||
</assembly> |
24 changes: 24 additions & 0 deletions
24
... SDK X (crossplatform)/Avalonia/SimpleVideoCapture/SimpleVideoCaptureA.Windows/Program.cs
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,24 @@ | ||
using System; | ||
|
||
using Avalonia; | ||
using Avalonia.ReactiveUI; | ||
|
||
namespace SimpleVideoCaptureA.Desktop; | ||
|
||
class Program | ||
{ | ||
// Initialization code. Don't use any Avalonia, third-party APIs or any | ||
// SynchronizationContext-reliant code before AppMain is called: things aren't initialized | ||
// yet and stuff might break. | ||
[STAThread] | ||
public static void Main(string[] args) => BuildAvaloniaApp() | ||
.StartWithClassicDesktopLifetime(args); | ||
|
||
// Avalonia configuration, don't remove; also used by visual designer. | ||
public static AppBuilder BuildAvaloniaApp() | ||
=> AppBuilder.Configure<App>() | ||
.UsePlatformDetect() | ||
.WithInterFont() | ||
.LogToTrace() | ||
.UseReactiveUI(); | ||
} |
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
9 changes: 9 additions & 0 deletions
9
...ia/SimpleVideoCapture/SimpleVideoCaptureA.Windows/SimpleVideoCaptureA.Windows.csproj.user
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,9 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<PropertyGroup Condition=" '$(RunConfiguration)' == 'Default' "> | ||
<EnvironmentVariables> | ||
<Variable name="DYLD_PRINT_LIBRARIES" value="0" xmlns="" /> | ||
<Variable name="DYLD_LIBRARY_PATH" value="/opt/homebrew/lib/:/opt/homebrew/lib/gio/modules/:$DYLD_LIBRARY_PATH" xmlns="" /> | ||
</EnvironmentVariables> | ||
</PropertyGroup> | ||
</Project> |
18 changes: 18 additions & 0 deletions
18
...DK X (crossplatform)/Avalonia/SimpleVideoCapture/SimpleVideoCaptureA.Windows/app.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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1"> | ||
<!-- This manifest is used on Windows only. | ||
Don't remove it as it might cause problems with window transparency and embeded controls. | ||
For more details visit https://learn.microsoft.com/en-us/windows/win32/sbscs/application-manifests --> | ||
<assemblyIdentity version="1.0.0.0" name="AvaloniaTest.Desktop"/> | ||
|
||
<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1"> | ||
<application> | ||
<!-- A list of the Windows versions that this application has been tested on | ||
and is designed to work with. Uncomment the appropriate elements | ||
and Windows will automatically select the most compatible environment. --> | ||
|
||
<!-- Windows 10 --> | ||
<supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}" /> | ||
</application> | ||
</compatibility> | ||
</assembly> |
68 changes: 30 additions & 38 deletions
68
...crossplatform)/Avalonia/SimpleVideoCapture/SimpleVideoCaptureA/SimpleVideoCaptureA.csproj
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,40 +1,32 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<PropertyGroup> | ||
<Nullable>disable</Nullable> | ||
<LangVersion>latest</LangVersion> | ||
</PropertyGroup> | ||
<PropertyGroup Condition="$([MSBuild]::IsOsPlatform('MacOS'))"> | ||
<TargetFramework>net7.0-macos10.14</TargetFramework> | ||
<!-- <RuntimeIdentifiers>osx-arm64</RuntimeIdentifiers>--> | ||
</PropertyGroup> | ||
<PropertyGroup Condition="$([MSBuild]::IsOsPlatform('Windows'))"> | ||
<TargetFramework>net7.0-windows</TargetFramework> | ||
<RuntimeIdentifiers>win7-x64</RuntimeIdentifiers> | ||
</PropertyGroup> | ||
<PropertyGroup Condition="$([MSBuild]::IsOsPlatform('Linux'))"> | ||
<TargetFramework>net7.0</TargetFramework> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> | ||
<CreatePackage>false</CreatePackage> | ||
<UseSGen>false</UseSGen> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> | ||
<CreatePackage>false</CreatePackage> | ||
<UseSGen>false</UseSGen> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<AvaloniaResource Include="Assets\**" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<PackageReference Include="Avalonia" Version="$(AvaloniaVersion)" /> | ||
<PackageReference Include="Avalonia.Themes.Fluent" Version="$(AvaloniaVersion)" /> | ||
<PackageReference Include="Avalonia.Fonts.Inter" Version="$(AvaloniaVersion)" /> | ||
<PackageReference Include="Avalonia.ReactiveUI" Version="$(AvaloniaVersion)" /> | ||
<!--Condition below is needed to remove Avalonia.Diagnostics package from build output in Release configuration.--> | ||
<PackageReference Condition="'$(Configuration)' == 'Debug'" Include="Avalonia.Diagnostics" Version="$(AvaloniaVersion)" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<PackageReference Include="VisioForge.DotNet.VideoCapture" Version="15.8.43" /> | ||
<PackageReference Include="VisioForge.DotNet.Core.UI.Avalonia" Version="15.8.43" /> | ||
</ItemGroup> | ||
<PropertyGroup> | ||
<Nullable>disable</Nullable> | ||
<LangVersion>latest</LangVersion> | ||
|
||
<TargetFrameworks>net7.0-windows;net7.0-macos10.14;net7.0</TargetFrameworks> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> | ||
<CreatePackage>false</CreatePackage> | ||
<UseSGen>false</UseSGen> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> | ||
<CreatePackage>false</CreatePackage> | ||
<UseSGen>false</UseSGen> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<AvaloniaResource Include="Assets\**" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<PackageReference Include="Avalonia" Version="$(AvaloniaVersion)" /> | ||
<PackageReference Include="Avalonia.Themes.Fluent" Version="$(AvaloniaVersion)" /> | ||
<PackageReference Include="Avalonia.Fonts.Inter" Version="$(AvaloniaVersion)" /> | ||
<PackageReference Include="Avalonia.ReactiveUI" Version="$(AvaloniaVersion)" /> | ||
<!--Condition below is needed to remove Avalonia.Diagnostics package from build output in Release configuration.--> | ||
<PackageReference Condition="'$(Configuration)' == 'Debug'" Include="Avalonia.Diagnostics" Version="$(AvaloniaVersion)" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<PackageReference Include="VisioForge.DotNet.VideoCapture" Version="15.8.43" /> | ||
<PackageReference Include="VisioForge.DotNet.Core.UI.Avalonia" Version="15.8.43" /> | ||
</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