Script for automating a large assortment of AME related actions
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

266 lines
19 KiB

9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  3. <Import Project="packages\Costura.Fody.5.7.0\build\Costura.Fody.props" Condition="Exists('packages\Costura.Fody.5.7.0\build\Costura.Fody.props')" />
  4. <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
  5. <PropertyGroup>
  6. <ApplicationManifest>app.manifest</ApplicationManifest>
  7. <ApplicationIcon>amecs.ico</ApplicationIcon>
  8. <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
  9. </PropertyGroup>
  10. <PropertyGroup>
  11. <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
  12. <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
  13. <ProjectGuid>{BD020697-9E9B-4A46-8804-BC47F0FC2806}</ProjectGuid>
  14. <OutputType>Exe</OutputType>
  15. <AppDesignerFolder>Properties</AppDesignerFolder>
  16. <RootNamespace>amecs</RootNamespace>
  17. <AssemblyName>amecs</AssemblyName>
  18. <TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
  19. <FileAlignment>512</FileAlignment>
  20. <AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
  21. <LangVersion>8</LangVersion>
  22. </PropertyGroup>
  23. <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
  24. <PlatformTarget>x64</PlatformTarget>
  25. <DebugSymbols>true</DebugSymbols>
  26. <DebugType>embedded</DebugType>
  27. <Optimize>false</Optimize>
  28. <OutputPath>bin\Debug\</OutputPath>
  29. <DefineConstants>DEBUG;TRACE</DefineConstants>
  30. <ErrorReport>prompt</ErrorReport>
  31. <WarningLevel>4</WarningLevel>
  32. <Prefer32bit>false</Prefer32bit>
  33. </PropertyGroup>
  34. <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
  35. <PlatformTarget>x64</PlatformTarget>
  36. <DebugType>embedded</DebugType>
  37. <Optimize>true</Optimize>
  38. <OutputPath>bin\Release\</OutputPath>
  39. <DefineConstants>RELEASE;TRACE</DefineConstants>
  40. <ErrorReport>prompt</ErrorReport>
  41. <WarningLevel>4</WarningLevel>
  42. <Prefer32bit>false</Prefer32bit>
  43. </PropertyGroup>
  44. <ItemGroup>
  45. <Reference Include="Costura, Version=5.7.0.0, Culture=neutral, processorArchitecture=MSIL">
  46. <HintPath>packages\Costura.Fody.5.7.0\lib\netstandard1.0\Costura.dll</HintPath>
  47. </Reference>
  48. <Reference Include="JetBrains.Annotations, Version=4242.42.42.42, Culture=neutral, PublicKeyToken=1010a0d8d6380325, processorArchitecture=MSIL">
  49. <HintPath>packages\JetBrains.Annotations.2023.3.0\lib\net20\JetBrains.Annotations.dll</HintPath>
  50. </Reference>
  51. <Reference Include="Microsoft.CSharp" />
  52. <Reference Include="Microsoft.Dism, Version=1.0.0.0, Culture=neutral, PublicKeyToken=5bba90053b345501, processorArchitecture=MSIL">
  53. <HintPath>packages\Microsoft.Dism.3.1.0\lib\net40\Microsoft.Dism.dll</HintPath>
  54. </Reference>
  55. <Reference Include="Microsoft.Win32.Primitives, Version=4.0.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
  56. <HintPath>packages\Microsoft.Win32.Primitives.4.3.0\lib\net46\Microsoft.Win32.Primitives.dll</HintPath>
  57. </Reference>
  58. <Reference Include="mscorlib" />
  59. <Reference Include="System" />
  60. <Reference Include="System.AppContext, Version=4.1.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
  61. <HintPath>packages\System.AppContext.4.3.0\lib\net463\System.AppContext.dll</HintPath>
  62. </Reference>
  63. <Reference Include="System.Buffers, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
  64. <HintPath>packages\System.Buffers.4.5.1\lib\net461\System.Buffers.dll</HintPath>
  65. </Reference>
  66. <Reference Include="System.CodeDom, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
  67. <HintPath>packages\System.CodeDom.8.0.0\lib\net462\System.CodeDom.dll</HintPath>
  68. </Reference>
  69. <Reference Include="System.ComponentModel.Composition" />
  70. <Reference Include="System.Configuration" />
  71. <Reference Include="System.Console, Version=4.0.1.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
  72. <HintPath>packages\System.Console.4.3.1\lib\net46\System.Console.dll</HintPath>
  73. </Reference>
  74. <Reference Include="System.Core" />
  75. <Reference Include="System.Data" />
  76. <Reference Include="System.Data.OracleClient" />
  77. <Reference Include="System.Diagnostics.DiagnosticSource, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
  78. <HintPath>packages\System.Diagnostics.DiagnosticSource.8.0.0\lib\net462\System.Diagnostics.DiagnosticSource.dll</HintPath>
  79. </Reference>
  80. <Reference Include="System.Diagnostics.Tracing, Version=4.1.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
  81. <HintPath>packages\System.Diagnostics.Tracing.4.3.0\lib\net462\System.Diagnostics.Tracing.dll</HintPath>
  82. </Reference>
  83. <Reference Include="System.DirectoryServices" />
  84. <Reference Include="System.DirectoryServices.AccountManagement" />
  85. <Reference Include="System.Drawing" />
  86. <Reference Include="System.Drawing.Primitives, Version=4.0.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
  87. <HintPath>packages\System.Drawing.Primitives.4.3.0\lib\net45\System.Drawing.Primitives.dll</HintPath>
  88. </Reference>
  89. <Reference Include="System.Globalization.Calendars, Version=4.0.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
  90. <HintPath>packages\System.Globalization.Calendars.4.3.0\lib\net46\System.Globalization.Calendars.dll</HintPath>
  91. </Reference>
  92. <Reference Include="System.IO, Version=4.1.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
  93. <HintPath>packages\System.IO.4.3.0\lib\net462\System.IO.dll</HintPath>
  94. </Reference>
  95. <Reference Include="System.IO.Compression, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL">
  96. <HintPath>packages\System.IO.Compression.4.3.0\lib\net46\System.IO.Compression.dll</HintPath>
  97. </Reference>
  98. <Reference Include="System.IO.Compression.FileSystem" />
  99. <Reference Include="System.IO.Compression.ZipFile, Version=4.0.2.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL">
  100. <HintPath>packages\System.IO.Compression.ZipFile.4.3.0\lib\net46\System.IO.Compression.ZipFile.dll</HintPath>
  101. </Reference>
  102. <Reference Include="System.IO.FileSystem, Version=4.0.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
  103. <HintPath>packages\System.IO.FileSystem.4.3.0\lib\net46\System.IO.FileSystem.dll</HintPath>
  104. </Reference>
  105. <Reference Include="System.IO.FileSystem.AccessControl, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
  106. <HintPath>packages\System.IO.FileSystem.AccessControl.5.0.0\lib\net461\System.IO.FileSystem.AccessControl.dll</HintPath>
  107. <Private>False</Private>
  108. </Reference>
  109. <Reference Include="System.IO.FileSystem.Primitives, Version=4.0.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
  110. <HintPath>packages\System.IO.FileSystem.Primitives.4.3.0\lib\net46\System.IO.FileSystem.Primitives.dll</HintPath>
  111. </Reference>
  112. <Reference Include="System.Linq, Version=4.1.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
  113. <HintPath>packages\System.Linq.4.3.0\lib\net463\System.Linq.dll</HintPath>
  114. </Reference>
  115. <Reference Include="System.Linq.Expressions, Version=4.1.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
  116. <HintPath>packages\System.Linq.Expressions.4.3.0\lib\net463\System.Linq.Expressions.dll</HintPath>
  117. </Reference>
  118. <Reference Include="System.Management" />
  119. <Reference Include="System.Memory, Version=4.0.1.2, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
  120. <HintPath>packages\System.Memory.4.5.5\lib\net461\System.Memory.dll</HintPath>
  121. </Reference>
  122. <Reference Include="System.Net" />
  123. <Reference Include="System.Net.Http, Version=4.1.1.3, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
  124. <HintPath>packages\System.Net.Http.4.3.4\lib\net46\System.Net.Http.dll</HintPath>
  125. </Reference>
  126. <Reference Include="System.Net.Sockets, Version=4.1.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
  127. <HintPath>packages\System.Net.Sockets.4.3.0\lib\net46\System.Net.Sockets.dll</HintPath>
  128. </Reference>
  129. <Reference Include="System.Numerics" />
  130. <Reference Include="System.Numerics.Vectors, Version=4.1.4.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
  131. <HintPath>packages\System.Numerics.Vectors.4.5.0\lib\net46\System.Numerics.Vectors.dll</HintPath>
  132. </Reference>
  133. <Reference Include="System.Reflection, Version=4.1.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
  134. <HintPath>packages\System.Reflection.4.3.0\lib\net462\System.Reflection.dll</HintPath>
  135. </Reference>
  136. <Reference Include="System.Runtime, Version=4.1.1.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
  137. <HintPath>packages\System.Runtime.4.3.1\lib\net462\System.Runtime.dll</HintPath>
  138. </Reference>
  139. <Reference Include="System.Runtime.CompilerServices.Unsafe, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
  140. <HintPath>packages\System.Runtime.CompilerServices.Unsafe.6.0.0\lib\net461\System.Runtime.CompilerServices.Unsafe.dll</HintPath>
  141. </Reference>
  142. <Reference Include="System.Runtime.Extensions, Version=4.1.1.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
  143. <HintPath>packages\System.Runtime.Extensions.4.3.1\lib\net462\System.Runtime.Extensions.dll</HintPath>
  144. </Reference>
  145. <Reference Include="System.Runtime.InteropServices, Version=4.1.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
  146. <HintPath>packages\System.Runtime.InteropServices.4.3.0\lib\net463\System.Runtime.InteropServices.dll</HintPath>
  147. </Reference>
  148. <Reference Include="System.Runtime.InteropServices.RuntimeInformation, Version=4.0.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
  149. <HintPath>packages\System.Runtime.InteropServices.RuntimeInformation.4.3.0\lib\net45\System.Runtime.InteropServices.RuntimeInformation.dll</HintPath>
  150. </Reference>
  151. <Reference Include="System.Security" />
  152. <Reference Include="System.Security.AccessControl, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
  153. <HintPath>packages\System.Security.AccessControl.6.0.0\lib\net461\System.Security.AccessControl.dll</HintPath>
  154. <Private>False</Private>
  155. </Reference>
  156. <Reference Include="System.Security.Cryptography.Algorithms, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
  157. <HintPath>packages\System.Security.Cryptography.Algorithms.4.3.1\lib\net463\System.Security.Cryptography.Algorithms.dll</HintPath>
  158. </Reference>
  159. <Reference Include="System.Security.Cryptography.Encoding, Version=4.0.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
  160. <HintPath>packages\System.Security.Cryptography.Encoding.4.3.0\lib\net46\System.Security.Cryptography.Encoding.dll</HintPath>
  161. </Reference>
  162. <Reference Include="System.Security.Cryptography.Primitives, Version=4.0.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
  163. <HintPath>packages\System.Security.Cryptography.Primitives.4.3.0\lib\net46\System.Security.Cryptography.Primitives.dll</HintPath>
  164. </Reference>
  165. <Reference Include="System.Security.Cryptography.X509Certificates, Version=4.1.1.2, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
  166. <HintPath>packages\System.Security.Cryptography.X509Certificates.4.3.2\lib\net461\System.Security.Cryptography.X509Certificates.dll</HintPath>
  167. </Reference>
  168. <Reference Include="System.Security.Permissions, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
  169. <HintPath>packages\System.Security.Permissions.8.0.0\lib\net462\System.Security.Permissions.dll</HintPath>
  170. </Reference>
  171. <Reference Include="System.Security.Principal.Windows, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
  172. <HintPath>packages\System.Security.Principal.Windows.5.0.0\lib\net461\System.Security.Principal.Windows.dll</HintPath>
  173. <Private>False</Private>
  174. </Reference>
  175. <Reference Include="System.ServiceProcess" />
  176. <Reference Include="System.Text.RegularExpressions, Version=4.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
  177. <HintPath>packages\System.Text.RegularExpressions.4.3.1\lib\net463\System.Text.RegularExpressions.dll</HintPath>
  178. </Reference>
  179. <Reference Include="System.Transactions" />
  180. <Reference Include="System.Windows.Forms" />
  181. <Reference Include="System.Xml" />
  182. <Reference Include="System.Xml.Linq" />
  183. <Reference Include="System.Xml.ReaderWriter, Version=4.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
  184. <HintPath>packages\System.Xml.ReaderWriter.4.3.1\lib\net46\System.Xml.ReaderWriter.dll</HintPath>
  185. </Reference>
  186. <Reference Include="WindowsBase" />
  187. </ItemGroup>
  188. <ItemGroup>
  189. <Compile Include="Actions\.NET.cs" />
  190. <Compile Include="Actions\AutoLogon.cs" />
  191. <Compile Include="Actions\Deameliorate.cs" />
  192. <Compile Include="Actions\Elevation.cs" />
  193. <Compile Include="Actions\Languages.cs" />
  194. <Compile Include="Actions\Lockscreen.cs" />
  195. <Compile Include="Actions\Profile.cs" />
  196. <Compile Include="Actions\UsernameRequirement.cs" />
  197. <Compile Include="Actions\UserPass.cs" />
  198. <Compile Include="Actions\Users.cs" />
  199. <Compile Include="amecs.cs" />
  200. <Compile Include="Ameliorated.ConsoleUtils\ConsoleTUI\ConsoleTUI.cs" />
  201. <Compile Include="Ameliorated.ConsoleUtils\ConsoleTUI\Frame.cs" />
  202. <Compile Include="Ameliorated.ConsoleUtils\ConsoleTUI\FrameWriteMethods.cs" />
  203. <Compile Include="Ameliorated.ConsoleUtils\ConsoleTUI\Menu.cs" />
  204. <Compile Include="Ameliorated.ConsoleUtils\ConsoleTUI\MouseInterface.cs" />
  205. <Compile Include="Ameliorated.ConsoleUtils\ConsoleTUI\Prompt.cs" />
  206. <Compile Include="Ameliorated.ConsoleUtils\ConsoleUtils.cs" />
  207. <Compile Include="Ameliorated.ConsoleUtils\Extensions.cs" />
  208. <Compile Include="Ameliorated.ConsoleUtils\ParentProcess.cs" />
  209. <Compile Include="Ameliorated.ConsoleUtils\Payload.cs" />
  210. <Compile Include="Extra\Extra.cs" />
  211. <Compile Include="Extra\NVCP.cs" />
  212. <Compile Include="Extra\WSH.cs" />
  213. <Compile Include="Globals.cs" />
  214. <Compile Include="Misc\FolderPicker.cs" />
  215. <Compile Include="Misc\SelectWindowsImage.cs" />
  216. <Compile Include="NSudo.cs" />
  217. <Compile Include="Program.cs" />
  218. <Compile Include="Properties\AssemblyInfo.cs" />
  219. <Compile Include="Registry.cs" />
  220. </ItemGroup>
  221. <ItemGroup>
  222. <None Include="amecs.ico" />
  223. <None Include="amecs.png" />
  224. <None Include="App.config" />
  225. <None Include="packages.config" />
  226. </ItemGroup>
  227. <ItemGroup>
  228. <Folder Include="Menus" />
  229. <Folder Include="NSudo" />
  230. </ItemGroup>
  231. <ItemGroup>
  232. <Content Include="app.manifest" />
  233. </ItemGroup>
  234. <ItemGroup>
  235. <COMReference Include="IWshRuntimeLibrary">
  236. <Guid>{F935DC20-1CF0-11D0-ADB9-00C04FD58A0B}</Guid>
  237. <VersionMajor>1</VersionMajor>
  238. <VersionMinor>0</VersionMinor>
  239. <Lcid>0</Lcid>
  240. <WrapperTool>tlbimp</WrapperTool>
  241. <Isolated>False</Isolated>
  242. <EmbedInteropTypes>True</EmbedInteropTypes>
  243. </COMReference>
  244. </ItemGroup>
  245. <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
  246. <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
  247. <PropertyGroup>
  248. <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>
  249. </PropertyGroup>
  250. <Error Condition="!Exists('packages\Costura.Fody.5.7.0\build\Costura.Fody.props')" Text="$([System.String]::Format('$(ErrorText)', 'packages\Costura.Fody.5.7.0\build\Costura.Fody.props'))" />
  251. <Error Condition="!Exists('packages\Costura.Fody.5.7.0\build\Costura.Fody.targets')" Text="$([System.String]::Format('$(ErrorText)', 'packages\Costura.Fody.5.7.0\build\Costura.Fody.targets'))" />
  252. <Error Condition="!Exists('packages\Fody.6.8.0\build\Fody.targets')" Text="$([System.String]::Format('$(ErrorText)', 'packages\Fody.6.8.0\build\Fody.targets'))" />
  253. <Error Condition="!Exists('packages\NETStandard.Library.2.0.3\build\netstandard2.0\NETStandard.Library.targets')" Text="$([System.String]::Format('$(ErrorText)', 'packages\NETStandard.Library.2.0.3\build\netstandard2.0\NETStandard.Library.targets'))" />
  254. </Target>
  255. <Import Project="packages\Costura.Fody.5.7.0\build\Costura.Fody.targets" Condition="Exists('packages\Costura.Fody.5.7.0\build\Costura.Fody.targets')" />
  256. <Import Project="packages\Fody.6.8.0\build\Fody.targets" Condition="Exists('packages\Fody.6.8.0\build\Fody.targets')" />
  257. <Import Project="packages\NETStandard.Library.2.0.3\build\netstandard2.0\NETStandard.Library.targets" Condition="Exists('packages\NETStandard.Library.2.0.3\build\netstandard2.0\NETStandard.Library.targets')" />
  258. <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
  259. Other similar extension points exist, see Microsoft.Common.targets.
  260. <Target Name="BeforeBuild">
  261. </Target>
  262. <Target Name="AfterBuild">
  263. </Target>
  264. -->
  265. </Project>