ConnectionStat.csproj 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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>{158AC9F8-3798-4F08-8028-3F261180BB0B}</ProjectGuid>
  9. <OutputType>Exe</OutputType>
  10. <RootNamespace>ConnectionStat</RootNamespace>
  11. <AssemblyName>ConnectionStat</AssemblyName>
  12. <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
  13. <FileAlignment>512</FileAlignment>
  14. <Deterministic>true</Deterministic>
  15. <NuGetPackageImportStamp>
  16. </NuGetPackageImportStamp>
  17. </PropertyGroup>
  18. <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
  19. <PlatformTarget>AnyCPU</PlatformTarget>
  20. <DebugSymbols>true</DebugSymbols>
  21. <DebugType>full</DebugType>
  22. <Optimize>false</Optimize>
  23. <OutputPath>bin\Debug\</OutputPath>
  24. <DefineConstants>DEBUG;TRACE</DefineConstants>
  25. <ErrorReport>prompt</ErrorReport>
  26. <WarningLevel>4</WarningLevel>
  27. </PropertyGroup>
  28. <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
  29. <PlatformTarget>AnyCPU</PlatformTarget>
  30. <DebugType>pdbonly</DebugType>
  31. <Optimize>true</Optimize>
  32. <OutputPath>bin\Release\</OutputPath>
  33. <DefineConstants>TRACE</DefineConstants>
  34. <ErrorReport>prompt</ErrorReport>
  35. <WarningLevel>4</WarningLevel>
  36. </PropertyGroup>
  37. <PropertyGroup>
  38. <RunPostBuildEvent>OnOutputUpdated</RunPostBuildEvent>
  39. </PropertyGroup>
  40. <ItemGroup>
  41. <Reference Include="System" />
  42. </ItemGroup>
  43. <ItemGroup>
  44. <Compile Include="Program.cs" />
  45. </ItemGroup>
  46. <ItemGroup>
  47. <Folder Include="Properties\" />
  48. </ItemGroup>
  49. <ItemGroup>
  50. <None Include="packages.config" />
  51. </ItemGroup>
  52. <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
  53. <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
  54. <PropertyGroup>
  55. <ErrorText>这台计算机上缺少此项目引用的 NuGet 程序包。使用“NuGet 程序包还原”可下载这些程序包。有关更多信息,请参见 http://go.microsoft.com/fwlink/?LinkID=322105。缺少的文件是 {0}。</ErrorText>
  56. </PropertyGroup>
  57. <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'))" />
  58. </Target>
  59. <PropertyGroup>
  60. <PostBuildEvent>if $(ConfigurationName) == Release if not exist "$(TargetDir)Packed" md "$(TargetDir)Packed"
  61. if $(ConfigurationName) == Release $(ILRepack) /ndebug "/out:$(TargetDir)Packed\$(TargetFileName)" "$(TargetPath)"
  62. if $(ConfigurationName) == Release if exist "$(TargetDir)Packed\$(TargetFileName).config" del "$(TargetDir)Packed\$(TargetFileName).config"</PostBuildEvent>
  63. </PropertyGroup>
  64. </Project>