SMBServer.csproj 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <Project Sdk="Microsoft.NET.Sdk.WindowsDesktop">
  2. <PropertyGroup>
  3. <OutputType>WinExe</OutputType>
  4. <TargetFrameworks>net20;net40;netcoreapp3.1</TargetFrameworks>
  5. <GenerateAssemblyInfo>false</GenerateAssemblyInfo>
  6. <AssemblyName>SMBServer</AssemblyName>
  7. <RootNamespace>SMBServer</RootNamespace>
  8. <UseWindowsForms>true</UseWindowsForms>
  9. </PropertyGroup>
  10. <ItemGroup Condition=" '$(TargetFramework)' == 'net20' ">
  11. <Reference Include="System.Windows.Forms" />
  12. </ItemGroup>
  13. <ItemGroup>
  14. <PackageReference Include="ILRepack" Version="2.0.18" />
  15. </ItemGroup>
  16. <ItemGroup>
  17. <ProjectReference Include="..\SMBLibrary.Win32\SMBLibrary.Win32.csproj" />
  18. <ProjectReference Include="..\SMBLibrary\SMBLibrary.csproj" />
  19. </ItemGroup>
  20. <ItemGroup Condition="'$(Configuration)' != 'Release'">
  21. <ProjectReference Include="..\Utilities\Utilities.csproj" />
  22. </ItemGroup>
  23. <ItemGroup>
  24. <None Update="Settings.xml">
  25. <CopyToOutputDirectory>Always</CopyToOutputDirectory>
  26. </None>
  27. </ItemGroup>
  28. <Target Name="PostBuild" AfterTargets="PostBuildEvent">
  29. <Exec Command="if $(ConfigurationName) == Release if not exist &quot;$(TargetDir)Packed&quot; md &quot;$(TargetDir)Packed&quot;&#xD;&#xA;&#xD;&#xA;if $(ConfigurationName) == Release setlocal enabledelayedexpansion enableextensions&#xD;&#xA;if $(ConfigurationName) == Release set DLL_LIST=&#xD;&#xA;if $(ConfigurationName) == Release for %25%25x in ($(TargetDir)*.dll) do set DLL_LIST=!DLL_LIST! &quot;%25%25x&quot;&#xD;&#xA;if $(ConfigurationName) == Release echo dlls: !DLL_LIST!&#xD;&#xA;&#xD;&#xA;if $(ConfigurationName) == Release $(ILRepack) /ndebug &quot;/out:$(TargetDir)Packed\$(TargetFileName)&quot; &quot;$(TargetPath)&quot; !DLL_LIST!&#xD;&#xA;&#xD;&#xA;" />
  30. </Target>
  31. </Project>