<Project Sdk="Microsoft.NET.Sdk">
|
|
<!--<PropertyGroup>
|
<OutputType>WinExe</OutputType>
|
<TargetFramework>net8.0-windows7.0</TargetFramework>
|
<Nullable>enable</Nullable>
|
<LangVersion>10.0</LangVersion>
|
<ImplicitUsings>enable</ImplicitUsings>
|
<UseWPF>true</UseWPF>
|
<SupportedOSPlatformVersion>7.0</SupportedOSPlatformVersion>
|
</PropertyGroup>-->
|
|
<PropertyGroup>
|
<OutputType>Library</OutputType>
|
<TargetFramework>net472</TargetFramework>
|
<Nullable>enable</Nullable>
|
<LangVersion>10.0</LangVersion>
|
<ImplicitUsings>enable</ImplicitUsings>
|
<UseWPF>true</UseWPF>
|
<Platforms>AnyCPU;x64</Platforms>
|
<SupportedOSPlatformVersion>7.0</SupportedOSPlatformVersion>
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
<AssemblyVersion>1.0.2.3</AssemblyVersion>
|
<FileVersion>1.0.2.3</FileVersion>
|
<ApplicationIcon>Ico.ico</ApplicationIcon>
|
</PropertyGroup>
|
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
|
<NoWarn>1701;1702;1573;0067;CS0660</NoWarn>
|
</PropertyGroup>
|
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
<NoWarn>1701;1702;1573;0067;CS0660</NoWarn>
|
</PropertyGroup>
|
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
|
<NoWarn>1701;1702;1573;0067;CS0660</NoWarn>
|
</PropertyGroup>
|
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
<NoWarn>1701;1702;1573;0067;CS0660</NoWarn>
|
</PropertyGroup>
|
|
<ItemGroup>
|
<None Remove="Ico.ico" />
|
</ItemGroup>
|
|
<ItemGroup>
|
<Content Include="Ico.ico" />
|
</ItemGroup>
|
|
<ItemGroup>
|
<Resource Include="Ico.ico" />
|
<Resource Include="iconfont.ttf">
|
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
|
</Resource>
|
</ItemGroup>
|
|
|
<ItemGroup>
|
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.4.0" />
|
<PackageReference Include="ConsoleTables" Version="2.4.2" />
|
<PackageReference Include="gong-wpf-dragdrop" Version="4.0.0" />
|
<PackageReference Include="Microsoft.Xaml.Behaviors.Wpf" Version="1.1.135" />
|
<PackageReference Include="Newtonsoft.Json" Version="13.0.4" />
|
<PackageReference Include="Panuon.WPF.UI" Version="1.3.0.2" />
|
<PackageReference Include="Scriban" Version="7.1.0" />
|
<PackageReference Include="System.Management" Version="10.0.4" />
|
</ItemGroup>
|
|
<ItemGroup>
|
<ProjectReference Include="..\DynamicExpresso\src\DynamicExpresso.Core\DynamicExpresso.Core.csproj" />
|
<ProjectReference Include="..\OpenTap\BasicSteps\Tap.Plugins.BasicSteps.csproj" />
|
<ProjectReference Include="..\opentap\Engine\Tap.Engine.csproj" />
|
<ProjectReference Include="..\Plugin\AddInPlugin\AddInPlugin.csproj" />
|
<ProjectReference Include="..\UILib\UILib.csproj" />
|
<ProjectReference Include="..\UtilLib\UtilLib.csproj" />
|
</ItemGroup>
|
|
<ItemGroup>
|
<Reference Include="LabViewRunner">
|
<HintPath>..\..\..\..\Users\chrry\Desktop\builds\Untitled Project 1\My Interop Assembly\LabViewRunner.dll</HintPath>
|
</Reference>
|
<Reference Include="NationalInstruments.LabVIEW.Interop">
|
<HintPath>..\..\..\..\Program Files\National Instruments\Shared\LabVIEW Run-Time\2020\NationalInstruments.LabVIEW.Interop.dll</HintPath>
|
</Reference>
|
<Reference Include="NationalInstruments.LabVIEW.RefnumTypes">
|
<HintPath>..\..\..\..\Program Files\National Instruments\Shared\LabVIEW Run-Time\2020\NationalInstruments.LabVIEW.RefnumTypes.dll</HintPath>
|
</Reference>
|
<Reference Include="System.Windows.Forms" />
|
</ItemGroup>
|
|
<ItemGroup>
|
<Compile Update="UI\RunVariableControl.xaml.cs">
|
<SubType>Code</SubType>
|
</Compile>
|
<Compile Update="UI\VariableTextBox.xaml.cs">
|
<SubType>Code</SubType>
|
</Compile>
|
<Compile Update="UI\VariableReadOnlyTree.xaml.cs">
|
<SubType>Code</SubType>
|
</Compile>
|
</ItemGroup>
|
|
<ItemGroup>
|
<None Update="Lang\en-US\UI.json">
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
</None>
|
<None Update="Lang\zh-CN\UI.json">
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
</None>
|
</ItemGroup>
|
|
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
|
<Exec Command="setlocal enabledelayedexpansion

set "source_folder=$(TargetDir)"
set "destination_folder=$(TargetDir)3rds"
set "libs_folder=$(TargetDir)Libs"
set "tap_folder=$(TargetDir)OpenTap"
set "report_folder=$(TargetDir)Report"
set "settings_folder=$(TargetDir)Settings"

IF "$(ConfigurationName)"=="Release" del /s /q "%25source_folder%25\*.pdb"

rmdir /S /Q "%25destination_folder%25"
mkdir "%25destination_folder%25"

mkdir "%25libs_folder%25" 

move /y "%25source_folder%25UILib.dll" "%25libs_folder%25\UILib.dll"
move /y "%25source_folder%25UtilLib.dll" "%25libs_folder%25\UtilLib.dll"
move /y "%25source_folder%25ViHelper.dll" "%25libs_folder%25\ViHelper.dll"
move /y "%25source_folder%25LabViewRunner.dll" "%25libs_folder%25\LabViewRunner.dll"
move /y "%25source_folder%25AddInPlugin.dll" "%25libs_folder%25\AddInPlugin.dll"
move /y "%25source_folder%25OpenTap.dll" "%25libs_folder%25\OpenTap.dll"
move /y "%25source_folder%25OpenTap.Plugins.BasicSteps.dll" "%25libs_folder%25\OpenTap.Plugins.BasicSteps.dll"



mkdir "%25report_folder%25"
mkdir "%25settings_folder%25"



for /d %25%25D in ("%25source_folder%25\*") do (
 if /I not "%25%25~nxD"=="Settings" if /I not "%25%25~nxD"=="Config" if /I not "%25%25~nxD"=="Lang" if /I not "%25%25~nxD"=="Libs" if /I not "%25%25~nxD"=="Log" if /I not "%25%25~nxD"=="Plugin" if /I not "%25%25~nxD"=="OpenTap" if /I not "%25%25~nxD"=="Report" (
 move /Y "%25%25D" "%25destination_folder%25"
 )
)

for %25%25F in ("%25source_folder%25\*") do (
 if /I not "%25%25~nxF"=="$(TargetFileName)" if /I not "%25%25~nxF"=="$(TargetFileName).config" if /I not "%25%25~nxF"=="$(TargetName).pdb" (
 move /Y "%25%25F" "%25destination_folder%25"
 )
)

" />
|
</Target>
|
|
</Project>
|