SvdCli.csproj 4.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  3. <Import Project="C:\NuGetLocalRepo\ILRepack.2.0.18\build\ILRepack.props" Condition="Exists('C:\NuGetLocalRepo\ILRepack.2.0.18\build\ILRepack.props')" />
  4. <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
  5. <PropertyGroup>
  6. <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
  7. <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
  8. <ProjectGuid>{24CC0601-E903-4BA2-8918-036E4D43CA3F}</ProjectGuid>
  9. <OutputType>Exe</OutputType>
  10. <RootNamespace>SvdCli</RootNamespace>
  11. <AssemblyName>Svd</AssemblyName>
  12. <TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
  13. <FileAlignment>512</FileAlignment>
  14. <AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
  15. <Deterministic>true</Deterministic>
  16. <NuGetPackageImportStamp>
  17. </NuGetPackageImportStamp>
  18. </PropertyGroup>
  19. <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
  20. <PlatformTarget>AnyCPU</PlatformTarget>
  21. <DebugSymbols>true</DebugSymbols>
  22. <DebugType>full</DebugType>
  23. <Optimize>false</Optimize>
  24. <OutputPath>bin\Debug\</OutputPath>
  25. <DefineConstants>DEBUG;TRACE</DefineConstants>
  26. <ErrorReport>prompt</ErrorReport>
  27. <WarningLevel>4</WarningLevel>
  28. <Prefer32Bit>false</Prefer32Bit>
  29. </PropertyGroup>
  30. <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
  31. <PlatformTarget>AnyCPU</PlatformTarget>
  32. <DebugType>pdbonly</DebugType>
  33. <Optimize>true</Optimize>
  34. <OutputPath>bin\Release\</OutputPath>
  35. <DefineConstants>TRACE</DefineConstants>
  36. <ErrorReport>prompt</ErrorReport>
  37. <WarningLevel>4</WarningLevel>
  38. <Prefer32Bit>false</Prefer32Bit>
  39. </PropertyGroup>
  40. <ItemGroup>
  41. <Reference Include="System" />
  42. <Reference Include="System.Core" />
  43. <Reference Include="System.ServiceProcess" />
  44. <Reference Include="System.Xml.Linq" />
  45. <Reference Include="System.Data.DataSetExtensions" />
  46. <Reference Include="Microsoft.CSharp" />
  47. <Reference Include="System.Data" />
  48. <Reference Include="System.Net.Http" />
  49. <Reference Include="System.Xml" />
  50. <Reference Include="winspd-msil">
  51. <HintPath>C:\Program Files (x86)\WinSpd\bin\winspd-msil.dll</HintPath>
  52. </Reference>
  53. </ItemGroup>
  54. <ItemGroup>
  55. <Compile Include="CliProgram.cs" />
  56. <Compile Include="Properties\AssemblyInfo.cs" />
  57. <Compile Include="ServiceUtils\ServiceAccount.cs" />
  58. <Compile Include="ServiceUtils\ServiceHelper.cs" />
  59. <Compile Include="ServiceUtils\ServiceNotExistException.cs" />
  60. <Compile Include="ServiceUtils\ServiceStartType.cs" />
  61. <Compile Include="Storage\CapacityUnits.cs" />
  62. <Compile Include="Storage\IStorage.cs" />
  63. <Compile Include="Storage\RamStorage.cs" />
  64. <Compile Include="Storage\TrimDescriptor.cs" />
  65. <Compile Include="App\SvdService.cs" />
  66. <Compile Include="WindowsService\SvdServiceForWindows.cs">
  67. <SubType>Component</SubType>
  68. </Compile>
  69. <Compile Include="DriverAdapt\VirtualDrive.cs" />
  70. </ItemGroup>
  71. <ItemGroup>
  72. <None Include="App.config" />
  73. <None Include="packages.config" />
  74. </ItemGroup>
  75. <ItemGroup>
  76. <Content Include="ServiceUtils\SOURCE.txt" />
  77. </ItemGroup>
  78. <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
  79. <PropertyGroup>
  80. <PostBuildEvent>if $(ConfigurationName) == Release setlocal enabledelayedexpansion enableextensions
  81. if $(ConfigurationName) == Release set DLL_LIST=
  82. if $(ConfigurationName) == Release for %25%25x in ($(TargetDir)*.dll) do set DLL_LIST=!DLL_LIST! "%25%25x"
  83. if $(ConfigurationName) == Release echo dlls: !DLL_LIST!
  84. if $(ConfigurationName) == Release if not exist "$(TargetDir)Packed" md "$(TargetDir)Packed"
  85. if $(ConfigurationName) == Release $(ILRepack) /ndebug "/out:$(TargetDir)Packed\$(TargetFileName)" "$(TargetPath)" !DLL_LIST!
  86. if $(ConfigurationName) == Release if exist "$(TargetDir)Packed\$(TargetFileName).config" del "$(TargetDir)Packed\$(TargetFileName).config"</PostBuildEvent>
  87. </PropertyGroup>
  88. <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
  89. <PropertyGroup>
  90. <ErrorText>这台计算机上缺少此项目引用的 NuGet 程序包。使用“NuGet 程序包还原”可下载这些程序包。有关更多信息,请参见 http://go.microsoft.com/fwlink/?LinkID=322105。缺少的文件是 {0}。</ErrorText>
  91. </PropertyGroup>
  92. <Error Condition="!Exists('C:\NuGetLocalRepo\ILRepack.2.0.18\build\ILRepack.props')" Text="$([System.String]::Format('$(ErrorText)', 'C:\NuGetLocalRepo\ILRepack.2.0.18\build\ILRepack.props'))" />
  93. </Target>
  94. </Project>