winsw.csproj 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  3. <PropertyGroup>
  4. <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
  5. <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
  6. <ProductVersion>9.0.21022</ProductVersion>
  7. <SchemaVersion>2.0</SchemaVersion>
  8. <ProjectGuid>{0DE77F55-ADE5-43C1-999A-0BC81153B039}</ProjectGuid>
  9. <OutputType>Exe</OutputType>
  10. <AppDesignerFolder>Properties</AppDesignerFolder>
  11. <RootNamespace>winsw</RootNamespace>
  12. <AssemblyName>WindowsService</AssemblyName>
  13. <TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
  14. <FileAlignment>512</FileAlignment>
  15. <StartupObject>
  16. </StartupObject>
  17. <SignManifests>false</SignManifests>
  18. <SignAssembly>true</SignAssembly>
  19. <AssemblyOriginatorKeyFile>..\..\..\winsw_cert.pfx</AssemblyOriginatorKeyFile>
  20. <FileUpgradeFlags>
  21. </FileUpgradeFlags>
  22. <UpgradeBackupLocation>
  23. </UpgradeBackupLocation>
  24. <OldToolsVersion>3.5</OldToolsVersion>
  25. <PublishUrl>publish\</PublishUrl>
  26. <Install>true</Install>
  27. <InstallFrom>Disk</InstallFrom>
  28. <UpdateEnabled>false</UpdateEnabled>
  29. <UpdateMode>Foreground</UpdateMode>
  30. <UpdateInterval>7</UpdateInterval>
  31. <UpdateIntervalUnits>Days</UpdateIntervalUnits>
  32. <UpdatePeriodically>false</UpdatePeriodically>
  33. <UpdateRequired>false</UpdateRequired>
  34. <MapFileExtensions>true</MapFileExtensions>
  35. <ApplicationRevision>0</ApplicationRevision>
  36. <ApplicationVersion>1.0.0.%2a</ApplicationVersion>
  37. <IsWebBootstrapper>false</IsWebBootstrapper>
  38. <UseApplicationTrust>false</UseApplicationTrust>
  39. <BootstrapperEnabled>true</BootstrapperEnabled>
  40. <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir>
  41. <RestorePackages>true</RestorePackages>
  42. </PropertyGroup>
  43. <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
  44. <DebugSymbols>true</DebugSymbols>
  45. <DebugType>full</DebugType>
  46. <Optimize>false</Optimize>
  47. <OutputPath>bin\Debug\</OutputPath>
  48. <DefineConstants>TRACE;DEBUG</DefineConstants>
  49. <ErrorReport>prompt</ErrorReport>
  50. <WarningLevel>4</WarningLevel>
  51. <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
  52. </PropertyGroup>
  53. <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
  54. <DebugType>pdbonly</DebugType>
  55. <Optimize>true</Optimize>
  56. <OutputPath>bin\Release\</OutputPath>
  57. <DefineConstants>TRACE</DefineConstants>
  58. <ErrorReport>prompt</ErrorReport>
  59. <WarningLevel>4</WarningLevel>
  60. <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
  61. <DocumentationFile>
  62. </DocumentationFile>
  63. </PropertyGroup>
  64. <ItemGroup>
  65. <Reference Include="System" />
  66. <Reference Include="System.Drawing" />
  67. <Reference Include="System.Management" />
  68. <Reference Include="System.Data" />
  69. <Reference Include="System.ServiceProcess" />
  70. <Reference Include="System.Windows.Forms" />
  71. <Reference Include="System.Xml" />
  72. </ItemGroup>
  73. <ItemGroup>
  74. <Compile Include="Main.cs">
  75. <SubType>Component</SubType>
  76. </Compile>
  77. <Compile Include="Properties\AssemblyInfo.cs" />
  78. <Compile Include="SigIntHelper.cs" />
  79. </ItemGroup>
  80. <ItemGroup>
  81. <Content Include="manifest.xml" />
  82. <Content Include="pom.xml">
  83. <SubType>Designer</SubType>
  84. </Content>
  85. <Content Include="winsw.xml">
  86. <SubType>Designer</SubType>
  87. </Content>
  88. </ItemGroup>
  89. <ItemGroup>
  90. <None Include="..\..\..\winsw_cert.pfx" />
  91. </ItemGroup>
  92. <ItemGroup>
  93. <BootstrapperPackage Include="Microsoft.Net.Client.3.5">
  94. <Visible>False</Visible>
  95. <ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName>
  96. <Install>false</Install>
  97. </BootstrapperPackage>
  98. <BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
  99. <Visible>False</Visible>
  100. <ProductName>.NET Framework 3.5 SP1</ProductName>
  101. <Install>true</Install>
  102. </BootstrapperPackage>
  103. </ItemGroup>
  104. <ItemGroup>
  105. <ProjectReference Include="..\..\Plugins\SharedDirectoryMapper\SharedDirectoryMapper.csproj">
  106. <Project>{ca5c71db-c5a8-4c27-bf83-8e6daed9d6b5}</Project>
  107. <Name>SharedDirectoryMapper</Name>
  108. </ProjectReference>
  109. <ProjectReference Include="..\WinSWCore\WinSWCore.csproj">
  110. <Project>{9d0c63e2-b6ff-4a85-bd36-b3e5d7f27d06}</Project>
  111. <Name>WinSWCore</Name>
  112. </ProjectReference>
  113. </ItemGroup>
  114. <ItemGroup />
  115. <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
  116. <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
  117. Other similar extension points exist, see Microsoft.Common.targets.
  118. <Target Name="BeforeBuild">
  119. </Target>
  120. <Target Name="AfterBuild">
  121. </Target>
  122. -->
  123. <PropertyGroup>
  124. <PostBuildEvent>
  125. </PostBuildEvent>
  126. </PropertyGroup>
  127. <Import Project="$(SolutionDir)\.nuget\NuGet.targets" Condition="Exists('$(SolutionDir)\.nuget\NuGet.targets')" />
  128. <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
  129. <PropertyGroup>
  130. <ErrorText>This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
  131. </PropertyGroup>
  132. <Error Condition="!Exists('$(SolutionDir)\.nuget\NuGet.targets')" Text="$([System.String]::Format('$(ErrorText)', '$(SolutionDir)\.nuget\NuGet.targets'))" />
  133. </Target>
  134. <!-- Merge plugins into winsw.exe -->
  135. <UsingTask TaskName="ILMerge.MSBuild.Tasks.ILMerge" AssemblyFile="$(SolutionDir)\packages\ILMerge.MSBuild.Tasks.1.0.0.3\tools\ILMerge.MSBuild.Tasks.dll" />
  136. <Target Name="AfterBuild">
  137. <ItemGroup>
  138. <MergeAsm Include="$(OutputPath)$(TargetFileName)" />
  139. <MergeAsm Include="$(OutputPath)WinSWCore.dll" />
  140. <MergeAsm Include="$(OutputPath)SharedDirectoryMapper.dll" />
  141. </ItemGroup>
  142. <PropertyGroup>
  143. <MergedAssembly>$(ProjectDir)$(OutDir)winsw.exe</MergedAssembly>
  144. </PropertyGroup>
  145. <Message Text="ILMerge @(MergeAsm) -&gt; $(MergedAssembly)" Importance="high" />
  146. <ILMerge InputAssemblies="@(MergeAsm)" OutputFile="$(MergedAssembly)" TargetKind="SameAsPrimaryAssembly" />
  147. </Target>
  148. </Project>