ConsoleIcon.csproj 3.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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>{6A1E8847-2290-462F-95D8-F2517C377130}</ProjectGuid>
  9. <OutputType>Exe</OutputType>
  10. <RootNamespace>ConsoleIcon</RootNamespace>
  11. <AssemblyName>ConsoleIcon</AssemblyName>
  12. <TargetFrameworkVersion>v4.0</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. <LangVersion>latest</LangVersion>
  28. </PropertyGroup>
  29. <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
  30. <PlatformTarget>AnyCPU</PlatformTarget>
  31. <DebugType>pdbonly</DebugType>
  32. <Optimize>true</Optimize>
  33. <OutputPath>bin\Release\</OutputPath>
  34. <DefineConstants>TRACE</DefineConstants>
  35. <ErrorReport>prompt</ErrorReport>
  36. <WarningLevel>4</WarningLevel>
  37. <LangVersion>latest</LangVersion>
  38. </PropertyGroup>
  39. <PropertyGroup>
  40. <RunPostBuildEvent>OnOutputUpdated</RunPostBuildEvent>
  41. </PropertyGroup>
  42. <ItemGroup>
  43. <Reference Include="System" />
  44. <Reference Include="System.Core" />
  45. <Reference Include="System.Drawing" />
  46. <Reference Include="System.Windows.Forms" />
  47. <Reference Include="System.Xml.Linq" />
  48. <Reference Include="System.Data.DataSetExtensions" />
  49. <Reference Include="Microsoft.CSharp" />
  50. <Reference Include="System.Data" />
  51. <Reference Include="System.Xml" />
  52. </ItemGroup>
  53. <ItemGroup>
  54. <Compile Include="Program.cs" />
  55. </ItemGroup>
  56. <ItemGroup>
  57. <Folder Include="Properties\" />
  58. </ItemGroup>
  59. <ItemGroup>
  60. <None Include="packages.config" />
  61. </ItemGroup>
  62. <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
  63. <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
  64. <PropertyGroup>
  65. <ErrorText>这台计算机上缺少此项目引用的 NuGet 程序包。使用“NuGet 程序包还原”可下载这些程序包。有关更多信息,请参见 http://go.microsoft.com/fwlink/?LinkID=322105。缺少的文件是 {0}。</ErrorText>
  66. </PropertyGroup>
  67. <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'))" />
  68. </Target>
  69. <PropertyGroup>
  70. <PostBuildEvent>if $(ConfigurationName) == Release if not exist "$(TargetDir)Packed" md "$(TargetDir)Packed"
  71. if $(ConfigurationName) == Release $(ILRepack) /ndebug "/out:$(TargetDir)Packed\$(TargetFileName)" "$(TargetPath)"
  72. if $(ConfigurationName) == Release if exist "$(TargetDir)Packed\$(TargetFileName).config" del "$(TargetDir)Packed\$(TargetFileName).config"</PostBuildEvent>
  73. </PropertyGroup>
  74. </Project>