TurnoffMonitorOnLock.csproj 4.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  3. <Import Project="..\packages\ILRepack.2.0.15\build\ILRepack.props" Condition="Exists('..\packages\ILRepack.2.0.15\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>{DCCAC287-A269-4AAD-B71D-48DCBD7BC907}</ProjectGuid>
  9. <OutputType>WinExe</OutputType>
  10. <RootNamespace>TurnoffMonitorOnLock</RootNamespace>
  11. <AssemblyName>TurnoffMonitorOnLock</AssemblyName>
  12. <TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
  13. <FileAlignment>512</FileAlignment>
  14. <AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
  15. <NuGetPackageImportStamp>
  16. </NuGetPackageImportStamp>
  17. <TargetFrameworkProfile />
  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. </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. </PropertyGroup>
  38. <PropertyGroup>
  39. <ApplicationIcon>Icon.ico</ApplicationIcon>
  40. </PropertyGroup>
  41. <PropertyGroup>
  42. <RunPostBuildEvent>OnOutputUpdated</RunPostBuildEvent>
  43. </PropertyGroup>
  44. <ItemGroup>
  45. <Reference Include="System" />
  46. <Reference Include="System.Data" />
  47. <Reference Include="System.Deployment" />
  48. <Reference Include="System.Drawing" />
  49. <Reference Include="System.Windows.Forms" />
  50. <Reference Include="System.Xml" />
  51. </ItemGroup>
  52. <ItemGroup>
  53. <Compile Include="IconExtract\IconExtractor.cs" />
  54. <Compile Include="MainForm.cs">
  55. <SubType>Form</SubType>
  56. </Compile>
  57. <Compile Include="MainForm.Designer.cs">
  58. <DependentUpon>MainForm.cs</DependentUpon>
  59. </Compile>
  60. <Compile Include="IconExtract\NativeMethods.cs" />
  61. <Compile Include="MonitorPowerApi\MonitorPower.cs" />
  62. <Compile Include="MonitorPowerApi\MonitorState.cs" />
  63. <Compile Include="Program.cs" />
  64. <EmbeddedResource Include="MainForm.resx">
  65. <DependentUpon>MainForm.cs</DependentUpon>
  66. </EmbeddedResource>
  67. <None Include="packages.config" />
  68. </ItemGroup>
  69. <ItemGroup>
  70. <Content Include="Icon.ico" />
  71. </ItemGroup>
  72. <ItemGroup>
  73. <Folder Include="Properties\" />
  74. </ItemGroup>
  75. <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
  76. <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
  77. <PropertyGroup>
  78. <ErrorText>这台计算机上缺少此项目引用的 NuGet 程序包。使用“NuGet 程序包还原”可下载这些程序包。有关更多信息,请参见 http://go.microsoft.com/fwlink/?LinkID=322105。缺少的文件是 {0}。</ErrorText>
  79. </PropertyGroup>
  80. <Error Condition="!Exists('..\packages\ILRepack.2.0.15\build\ILRepack.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\ILRepack.2.0.15\build\ILRepack.props'))" />
  81. </Target>
  82. <PropertyGroup>
  83. <PostBuildEvent>if $(ConfigurationName) == Release if not exist $(TargetDir)Packed md $(TargetDir)Packed
  84. if $(ConfigurationName) == Release $(ILRepack) /ndebug /out:$(TargetDir)Packed\$(TargetFileName) $(TargetPath)</PostBuildEvent>
  85. </PropertyGroup>
  86. </Project>