123456789101112131415161718192021222324252627282930313233343536373839 |
- <Project Sdk="Microsoft.NET.Sdk.WindowsDesktop">
- <PropertyGroup>
- <OutputType>WinExe</OutputType>
- <TargetFrameworks>net20;net40;netcoreapp3.1</TargetFrameworks>
- <GenerateAssemblyInfo>false</GenerateAssemblyInfo>
- <AssemblyName>SMBServer</AssemblyName>
- <RootNamespace>SMBServer</RootNamespace>
- <UseWindowsForms>true</UseWindowsForms>
- </PropertyGroup>
- <ItemGroup Condition=" '$(TargetFramework)' == 'net20' ">
- <Reference Include="System.Windows.Forms" />
- </ItemGroup>
- <ItemGroup>
- <PackageReference Include="ILRepack" Version="2.0.18" />
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\SMBLibrary.Win32\SMBLibrary.Win32.csproj" />
- <ProjectReference Include="..\SMBLibrary\SMBLibrary.csproj" />
- </ItemGroup>
- <ItemGroup Condition="'$(Configuration)' != 'Release'">
- <ProjectReference Include="..\Utilities\Utilities.csproj" />
- </ItemGroup>
- <ItemGroup>
- <None Update="Settings.xml">
- <CopyToOutputDirectory>Always</CopyToOutputDirectory>
- </None>
- </ItemGroup>
- <Target Name="PostBuild" AfterTargets="PostBuildEvent">
- <Exec Command="if $(ConfigurationName) == Release if not exist "$(TargetDir)Packed" md "$(TargetDir)Packed"

if $(ConfigurationName) == Release setlocal enabledelayedexpansion enableextensions
if $(ConfigurationName) == Release set DLL_LIST=
if $(ConfigurationName) == Release for %25%25x in ($(TargetDir)*.dll) do set DLL_LIST=!DLL_LIST! "%25%25x"
if $(ConfigurationName) == Release echo dlls: !DLL_LIST!

if $(ConfigurationName) == Release $(ILRepack) /ndebug "/out:$(TargetDir)Packed\$(TargetFileName)" "$(TargetPath)" !DLL_LIST!

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