-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLumixPlugin.csproj
67 lines (67 loc) · 3.25 KB
/
LumixPlugin.csproj
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0-windows</TargetFramework>
<OutputType>Library</OutputType>
<RootNamespace>Roberthasson.NINA.Lumixcamera</RootNamespace>
<AssemblyName>Roberthasson.NINA.Lumixcamera</AssemblyName>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<UseWPF>true</UseWPF>
<ImportWindowsDesktopTargets>true</ImportWindowsDesktopTargets>
<EnableWindowsTargeting>true</EnableWindowsTargeting>
</PropertyGroup>
<ItemGroup>
<None Remove="Library\LMX_func_api.h" />
<None Remove="Library\LMX_lib_def.h" />
<None Remove="Library\LMX_lib_dev_common.h" />
<None Remove="Library\lmx_lib_plat.h" />
<None Remove="Library\Lmx_lib_type.h" />
<None Remove="Library\LumixDriver.i" />
<None Remove="Library\LumixDriver_wrap.c" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="ClangSharp.PInvokeGenerator" Version="18.1.0" />
<PackageReference Include="NINA.Plugin" Version="3.0.0.2017-beta" />
<PackageReference Include="System.Memory" Version="4.5.5" />
<PackageReference Include="System.Runtime.CompilerServices.Unsafe" Version="6.0.0" />
</ItemGroup>
<ItemGroup>
<Compile Update="Properties\Resources.Designer.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<Compile Update="Properties\Settings.Designer.cs">
<DesignTimeSharedInput>True</DesignTimeSharedInput>
<AutoGen>True</AutoGen>
<DependentUpon>Settings.Settings</DependentUpon>
</Compile>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Update="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<None Update="Library\Lmxptpif.dll">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="Library\Lmxptpif.lib">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="LumixcameraDrivers\Lmxptpif.dll">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Properties\Settings.Settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
</ItemGroup>
<PropertyGroup>
<ImplicitUsings>disable</ImplicitUsings>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
</PropertyGroup>
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
<Exec Command="
if not exist "%25localappdata%25\NINA\Plugins\3.0.0" (
 echo "Creating $(PlatformName) Plugins folder"
 mkdir "%25localappdata%25\NINA\Plugins\3.0.0"
)
if not exist "%25localappdata%25\NINA\Plugins\3.0.0\$(TargetName)" (
 echo "Creating $(PlatformName) Plugins $(TargetName) folder"
 mkdir "%25localappdata%25\NINA\Plugins\3.0.0\$(TargetName)"
)

echo "Copying $(PlatformName) $(TargetFileName)"
xcopy "$(TargetPath)" "%25localappdata%25\NINA\Plugins\3.0.0\$(TargetName)" /h/i/c/k/e/r/y
 " />
</Target>
</Project>